Commit b840b741 by 李伟康

commit 提交

1 parent 25fd83fb
......@@ -147,7 +147,7 @@
</MessageBox>
<MessageBox
ref="couponTips"
content="该门店礼券已使用完,请联系管理员配置。"
:content="couponErrorTips"
:showCancelBtn="false"
confirmBtnText="知道了"
></MessageBox>
......@@ -247,7 +247,8 @@ export default {
carInfo: {},
QRURL: '',
showDetail: false
}
},
couponErrorTips: ''
}
},
watch: {
......@@ -308,7 +309,7 @@ export default {
else if (item2) this.chooseCoupon(item) //次选填入「精品」类型
else this.chooseCoupon(arr[0]) // 无此两种类型情况默认带入任意类型礼券
}
} else this.$refs.couponTips.open()
}
this.couponList = arr
},
inputCustomer () {
......@@ -380,11 +381,10 @@ export default {
else throw '生成小程序码失败,请重试!'
} else throw message
} catch (error) {
console.log(error)
uni.showToast({
title: error,
icon: 'none',
})
if (error) {
this.couponErrorTips = error
this.$refs.couponTips.open()
}
}
},
async validate () {
......
......@@ -257,6 +257,7 @@ export default {
this.pageNum = 1
this.dateIndex = index
this.getReceptionList()
this.getReceptionStatistics(0)
},
pageonReachBottom () {
let { pageNum, total, nothing, pageSize } = this
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!