diff --git a/manifest.json b/manifest.json index c0e2d06..f81b895 100644 --- a/manifest.json +++ b/manifest.json @@ -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协议的代理 } diff --git a/pages/index/index.vue b/pages/index/index.vue index 4aa6d1e..2142389 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -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();