优化首页图片不显示问题

This commit is contained in:
java110 2021-01-25 09:58:43 +08:00
parent 30b45eb034
commit 50d3879ec8
2 changed files with 7 additions and 2 deletions

View File

@ -81,7 +81,7 @@
"disableHostCheck" : true,
"proxy" : {
"/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, //
"secure" : true // https
}

View File

@ -107,11 +107,16 @@
if (res.statusCode == 200) {
let _advertPhotos = res.data;
let _aPhotos = [];
let _urlPath = '';
// #ifdef MP-WEIXIN
_urlPath = _that.java110Constant.url.hcBaseUrl
// #endif
_advertPhotos.forEach(function(_item) {
_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);
});
_that.swiperList = _aPhotos;
console.log(_that.swiperList);
_that._loadActivitys();