Commit 0cc12cb3 by zhangzhen

细节优化

parent b811d8ec
......@@ -119,7 +119,8 @@
orderPage:false,
popStoreList:[],
qrCode:'',
loginStatus: uni.getStorageSync('loginStatus') == 'login'? true: false
loginStatus: uni.getStorageSync('loginStatus') == 'login'? true: false,
submitStatus:true
};
},
filters:{
......@@ -153,6 +154,10 @@
this.$refs.loginPop.open();
return
}
if(!this.submitStatus) return;
this.submitStatus = false;
let that = this;
if(!this.code){
uni.showToast({
......@@ -187,9 +192,11 @@
this.onExchangeCoupon(this.qrCode,this.storeId)
}else{
this.$refs.popupStoreList.open();
this.submitStatus = true;
}
}else{
this.submitStatus = true;
uni.showToast({
icon:"none",
title:res.data.msg
......@@ -198,7 +205,7 @@
})
},
onStoreChage(val){
console.log(val,90909)
let info = this.popStoreList.find(item=>item.id === val)
if(info.status ==1){
this.$refs.popupStoreList.close();
......@@ -228,6 +235,7 @@
icon:"success",
title:"核验成功",
success: () => {
this.submitStatus = true;
setTimeout(()=>{
if(that.orderPage){
that.eventChannel.emit('acceptData', {data: true});
......@@ -248,6 +256,7 @@
}
})
}else{
this.submitStatus = true;
uni.showToast({
icon:"none",
title:res.data.msg,
......
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