Commit c03574a8 by zhangzhen

细节优化

parent 8fc700ff
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
// }) // })
// } // }
uni.removeStorageSync('storeId')
uni.getSystemInfo({ uni.getSystemInfo({
success: (e) => { success: (e) => {
Vue.prototype.screenHeight = e.screenHeight; Vue.prototype.screenHeight = e.screenHeight;
......
const CONFIG = { const CONFIG = {
// 开发环境配置 // 开发环境配置
development: { development: {
assetsPath: 'http://10.24.5.140:8211/static', // 静态资源路径 assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
// assetsPath: 'http://10.24.5.140:8211/static', // 静态资源路径
baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址 baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
hostUrl: 'https://www.coujio.com/prod-api', // H5地址(前端运行地址) hostUrl: 'https://www.coujio.com/prod-api', // H5地址(前端运行地址)
// baseUrl: 'http://192.168.1.189:8883/front', // 后台接口请求地址 // baseUrl: 'http://192.168.1.189:8883/front', // 后台接口请求地址
......
...@@ -253,9 +253,9 @@ ...@@ -253,9 +253,9 @@
} else{ } else{
this.$refs.popup.open() this.$refs.popup.open()
} }
uni.removeStorage({ // uni.removeStorage({
key: 'storeId' // key: 'storeId'
}) // })
this.onGetListStore() this.onGetListStore()
} }
}) })
...@@ -270,7 +270,11 @@ ...@@ -270,7 +270,11 @@
if (res.data.code == 200 && res.data.data.length) { if (res.data.code == 200 && res.data.data.length) {
this.storeList = res.data.data; this.storeList = res.data.data;
let obj = {} let obj = {}
if(uni.getStorageSync("storeId")){
obj = this.storeList.find(item=>item.id === uni.getStorageSync("storeId"))
}else{
obj = res.data.data[0]; obj = res.data.data[0];
}
new Promise((resolve,reject)=>{ new Promise((resolve,reject)=>{
that.storeInfo = { that.storeInfo = {
...obj, ...obj,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment