From 655ad55d3fd0bb2ebec85a5c1fc1167729e87343 Mon Sep 17 00:00:00 2001 From: caolc <572275724@qq.com> Date: Wed, 7 Dec 2022 17:41:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E8=A7=A3=E6=9E=90bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BagStation/pages/stationDetail/stationDetail.vue | 4 ++-- pages/tabbar/home/home.vue | 2 +- pages/tabbar/station/stationList.vue | 2 +- utils/request.js | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BagStation/pages/stationDetail/stationDetail.vue b/BagStation/pages/stationDetail/stationDetail.vue index c0be0a3..9975373 100644 --- a/BagStation/pages/stationDetail/stationDetail.vue +++ b/BagStation/pages/stationDetail/stationDetail.vue @@ -189,9 +189,9 @@ onLoad(option) { if(!option.item){ let siteInfos = uni.getStorageSync('siteInfo') - var oilItem = JSON.parse(siteInfos) + var oilItem = JSON.parse(decodeURIComponent(siteInfos)) }else{ - var oilItem = JSON.parse(option.item) + var oilItem = JSON.parse(decodeURIComponent(option.item)) } uni.setStorageSync('oilItem',oilItem) this.getSiteInfo(oilItem.siteId) diff --git a/pages/tabbar/home/home.vue b/pages/tabbar/home/home.vue index 8fa1dd6..6244aa4 100644 --- a/pages/tabbar/home/home.vue +++ b/pages/tabbar/home/home.vue @@ -550,7 +550,7 @@ } }, toDetail(item) { - let itemS = JSON.stringify(item) + let itemS = encodeURIComponent(JSON.stringify(item)) console.log(itemS) if (uni.getStorageSync('user')) { uni.navigateTo({ diff --git a/pages/tabbar/station/stationList.vue b/pages/tabbar/station/stationList.vue index ae05760..46c6f71 100644 --- a/pages/tabbar/station/stationList.vue +++ b/pages/tabbar/station/stationList.vue @@ -388,7 +388,7 @@ }, toDetail(item) { - let itemS = JSON.stringify(item) + let itemS = encodeURIComponent(JSON.stringify(item)) if (uni.getStorageSync('user')) { uni.navigateTo({ url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`, diff --git a/utils/request.js b/utils/request.js index 91d109e..f204573 100644 --- a/utils/request.js +++ b/utils/request.js @@ -7,8 +7,8 @@ const env = 'production'/* */ const testUrl = 'http://192.168.0.45:38080' // const productUrl = 'http://121.196.213.68/adminapi' //预生产 -// const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new -const productUrl = 'http://uat.xingoil.com/adminapi' // 生产,加密 new +const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new +// const productUrl = 'http://uat.xingoil.com/adminapi' // 生产,加密 new const service = axios.create({ baseURL: env == 'production' ? productUrl : testUrl, // baseURL: testUrl,