Commit 2935055b authored by zhengke's avatar zhengke

修改

parent 0f3d412e
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
// #endif // #endif
this.init();
let set = uni.getStorageSync("basedata") ? let set = uni.getStorageSync("basedata") ?
uni.getStorageSync("basedata").mall.setting : uni.getStorageSync("basedata").mall.setting :
{}; {};
...@@ -365,14 +365,17 @@ ...@@ -365,14 +365,17 @@
1; 1;
this.setting = set; this.setting = set;
this.isShowBack(); this.isShowBack();
if(this.setting.IsOpenReserve && this.setting.IsOpenReserve==1){ // if(this.setting.IsOpenReserve && this.setting.IsOpenReserve==1){
this.getstore() // this.getstore()
} // }
// this.init();
this.getIsOpenReserve();
uni.showNavigationBarLoading(); uni.showNavigationBarLoading();
}, },
created() {}, created() {
},
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
onShareTimeline() { onShareTimeline() {
setTimeout(() => { setTimeout(() => {
...@@ -447,17 +450,30 @@ ...@@ -447,17 +450,30 @@
uni.hideNavigationBarLoading(); uni.hideNavigationBarLoading();
}, 500); }, 500);
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.init(); this.init();
let set = uni.getStorageSync("basedata") ?
uni.getStorageSync("basedata").mall.setting :
{};
if(set.IsOpenReserve && set.IsOpenReserve==1){
this.getstore()
}
}, },
methods: { methods: {
//获取IsOpenReserve
getIsOpenReserve(){
this.request2({
url: "/api/Mall/GetAppConfig",
data: {},
},
(res) => {
console.log(res,'res')
if (res.resultCode == 1) {
if(res.data.IsOpenReserve==1){
this.getstore();
}else{
this.init();
}
}else{
this.init();
}
}
);
},
getphonenumber(e) { getphonenumber(e) {
console.log(e) console.log(e)
uni.checkSession({ //检查登录状态是否过期 uni.checkSession({ //检查登录状态是否过期
......
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