支付宝兼容,排队预约修改,订单逻辑修改
This commit is contained in:
@@ -86,22 +86,16 @@
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this.init_fn()
|
||||
this.loginwxuserInfo()
|
||||
if (uni.cache.get('shopId') ) {
|
||||
this.getShopInfo();
|
||||
this.shopInfo = uni.cache.get('shopUserInfo')
|
||||
this.getShopExtend();
|
||||
} else{
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 下面初始数据
|
||||
init_fn() {
|
||||
|
||||
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* 获取背景图
|
||||
*/
|
||||
@@ -154,23 +148,6 @@
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取店铺信息
|
||||
*/
|
||||
async getShopInfo() {
|
||||
let res = await this.api.shopUserInfo({
|
||||
"shopId": uni.cache.get('shopId'),
|
||||
"userId": uni.cache.get('userInfo').id,
|
||||
})
|
||||
if (res.code == 0) {
|
||||
this.shopInfo = res.data
|
||||
}
|
||||
if ( res.data.isVip == 0 ) {
|
||||
this.memberOpen = true;
|
||||
return;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 查看二维码
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user