From 50d3879ec88b30b7d5a0ae4aab569b62a8873b1d Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Mon, 25 Jan 2021 09:58:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- pages/index/index.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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();