Commit c03574a8 by zhangzhen

细节优化

parent 8fc700ff
......@@ -26,6 +26,8 @@
// })
// }
uni.removeStorageSync('storeId')
uni.getSystemInfo({
success: (e) => {
Vue.prototype.screenHeight = e.screenHeight;
......
const CONFIG = {
// 开发环境配置
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', // 后台接口请求地址
hostUrl: 'https://www.coujio.com/prod-api', // H5地址(前端运行地址)
// baseUrl: 'http://192.168.1.189:8883/front', // 后台接口请求地址
......
......@@ -253,9 +253,9 @@
} else{
this.$refs.popup.open()
}
uni.removeStorage({
key: 'storeId'
})
// uni.removeStorage({
// key: 'storeId'
// })
this.onGetListStore()
}
})
......@@ -270,7 +270,11 @@
if (res.data.code == 200 && res.data.data.length) {
this.storeList = res.data.data;
let obj = {}
if(uni.getStorageSync("storeId")){
obj = this.storeList.find(item=>item.id === uni.getStorageSync("storeId"))
}else{
obj = res.data.data[0];
}
new Promise((resolve,reject)=>{
that.storeInfo = {
...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