Commit 63287d3c authored by youjie's avatar youjie

优化请求

parent d96f63fa
...@@ -424,7 +424,9 @@ ...@@ -424,7 +424,9 @@
}; };
this.showAuth = true; this.showAuth = true;
} }
// #ifdef MP-AG
this.getSale() this.getSale()
// #endif
}, },
mounted() { mounted() {
uni.getStorage({ uni.getStorage({
......
...@@ -244,7 +244,9 @@ ...@@ -244,7 +244,9 @@
}, },
created() { created() {
this.b2bUser = uni.getStorageSync("b2b_user"); this.b2bUser = uni.getStorageSync("b2b_user");
// #ifdef MP-AG
this.getSale() this.getSale()
// #endif
}, },
mounted() { mounted() {
uni.getStorage({ uni.getStorage({
......
...@@ -555,7 +555,9 @@ ...@@ -555,7 +555,9 @@
}; };
this.showAuth = true; this.showAuth = true;
} }
// #ifdef MP-AG
this.getSale() this.getSale()
// #endif
}, },
mounted() { mounted() {
uni.getStorage({ uni.getStorage({
......
...@@ -1351,7 +1351,9 @@ ...@@ -1351,7 +1351,9 @@
this.b2bUser = uni.getStorageSync("b2b_user"); this.b2bUser = uni.getStorageSync("b2b_user");
this.customer = this.b2bUser this.customer = this.b2bUser
this.getDetails(); this.getDetails();
// #ifdef MP-AG
this.getSale() this.getSale()
// #endif
let basedata = uni.getStorageSync("basedata"); let basedata = uni.getStorageSync("basedata");
//判断后台是否开启自动授权 //判断后台是否开启自动授权
if (basedata && basedata.mall && basedata.mall.setting && basedata.mall.setting && basedata.mall.setting.is_show_auth == if (basedata && basedata.mall && basedata.mall.setting && basedata.mall.setting && basedata.mall.setting.is_show_auth ==
......
...@@ -400,7 +400,9 @@ ...@@ -400,7 +400,9 @@
} }
}) })
} }
// #ifdef MP-AG
this.getSale() this.getSale()
// #endif
this.getDetails(); this.getDetails();
let that = this; let that = this;
......
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