Commit b840b741 by 李伟康

commit 提交

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