mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-24 05:46:09 +08:00
优化首页图片不显示问题
This commit is contained in:
parent
30b45eb034
commit
50d3879ec8
@ -81,7 +81,7 @@
|
|||||||
"disableHostCheck" : true,
|
"disableHostCheck" : true,
|
||||||
"proxy" : {
|
"proxy" : {
|
||||||
"/app" : {
|
"/app" : {
|
||||||
"target" : "https://app.demo.winqi.cn", //目标接口域名http://192.168.1.16:8012
|
"target" : "https://property.bdwyshbh.cn/", //目标接口域名http://192.168.1.16:8012
|
||||||
"changeOrigin" : true, //是否跨域
|
"changeOrigin" : true, //是否跨域
|
||||||
"secure" : true // 设置支持https协议的代理
|
"secure" : true // 设置支持https协议的代理
|
||||||
}
|
}
|
||||||
|
|||||||
@ -107,11 +107,16 @@
|
|||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
let _advertPhotos = res.data;
|
let _advertPhotos = res.data;
|
||||||
let _aPhotos = [];
|
let _aPhotos = [];
|
||||||
|
let _urlPath = '';
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
|
_urlPath = _that.java110Constant.url.hcBaseUrl
|
||||||
|
// #endif
|
||||||
_advertPhotos.forEach(function(_item) {
|
_advertPhotos.forEach(function(_item) {
|
||||||
_item.type = "image";
|
_item.type = "image";
|
||||||
_item.url = _that.java110Constant.url.hcBaseUrl + _item.url + "&time=" + new Date();
|
_item.url = _urlPath + _item.url + "&time=" + new Date();
|
||||||
_aPhotos.push(_item);
|
_aPhotos.push(_item);
|
||||||
});
|
});
|
||||||
|
|
||||||
_that.swiperList = _aPhotos;
|
_that.swiperList = _aPhotos;
|
||||||
console.log(_that.swiperList);
|
console.log(_that.swiperList);
|
||||||
_that._loadActivitys();
|
_that._loadActivitys();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user