|
|
@@ -159,7 +159,13 @@ export default {
|
|
|
this.init()
|
|
|
},
|
|
|
onShow () {
|
|
|
-
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ // 只让 ios 加载,安卓不加载(如果这边安卓加载,可能会发生请求二次 /shop/all)
|
|
|
+ let type = uni.getSystemInfoSync().platform
|
|
|
+ if(type == 'ios'){
|
|
|
+ this.init()
|
|
|
+ }
|
|
|
+ // #endif
|
|
|
},
|
|
|
onLoad(){
|
|
|
// #ifdef APP-PLUS
|
|
|
@@ -177,18 +183,6 @@ export default {
|
|
|
},
|
|
|
showAllShop () {
|
|
|
this.$refs.shopSelectComponent.dropdownShow = true;
|
|
|
-
|
|
|
- // this.$refs.shopSelectComponent.shopList = []
|
|
|
- // shopAll().then(res=>{
|
|
|
- // if(res.code == 1){
|
|
|
- // if (!this.$util.isEmpty(res.data)){
|
|
|
- // res.data.forEach((i) => {
|
|
|
- // this.$refs.shopSelectComponent.shopList.push({id:i.id,name:i.shopName})
|
|
|
- // })
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
-
|
|
|
},
|
|
|
async init () {
|
|
|
const { data } = await mainMy();
|