Commit 0cc12cb3 by zhangzhen

细节优化

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