小程序字符串解析bug修复

pull/3/head
caolc 2 years ago
parent fdd6d6e171
commit 655ad55d3f
  1. 4
      BagStation/pages/stationDetail/stationDetail.vue
  2. 2
      pages/tabbar/home/home.vue
  3. 2
      pages/tabbar/station/stationList.vue
  4. 4
      utils/request.js

@ -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)

@ -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({

@ -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}`,

@ -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,

Loading…
Cancel
Save