|
@@ -242,15 +242,20 @@
|
|
|
}
|
|
|
},
|
|
|
async bookticket(item){
|
|
|
- let retailId = null;
|
|
|
+ let retailValid = null;
|
|
|
try {
|
|
|
- const res = await uni.getStorage({ key: 'retailId' });
|
|
|
- retailId = res.data;
|
|
|
+ const res = await this.$u.api.checkRetail();
|
|
|
+ retailValid = res.data.retailValid;//是否处于分销 1-是 0-否
|
|
|
} catch (error) {
|
|
|
-
|
|
|
+ console.log('error',error)
|
|
|
+ // if(error.code==401){
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ return
|
|
|
}
|
|
|
// console.log('bookticket',item);
|
|
|
- if(retailId){
|
|
|
+ // console.log('retailValid',retailValid)
|
|
|
+ if(retailValid===1){
|
|
|
uni.$u.route('pages/ticketlist',{id:item.id})
|
|
|
}else{
|
|
|
// https://blog.csdn.net/qq_42961150/article/details/121136346
|