Commit 042f185e by 李伟康

commit

1 parent 42113f94
......@@ -137,15 +137,16 @@ export default {
submit () {
let { verficationCode } = this.getParams()
this.showLoading()
this.$route.params.isGoods = true
shopmallApi
.verficationGoods(verficationCode)
.then(res => {
this.hideLoading()
if (res)
if (res) {
this.$route.params.isGoods = true
this.showToast('已核销', () => {
this.$router.back()
})
}
})
}
}
......
......@@ -161,15 +161,16 @@ export default {
methods: {
submit () {
let { detail: { discountType } } = this
this.$route.params.discountType = discountType
let { verficationCode } = this
this.showLoading()
couponApi.verificationCode({ verficationCode }).then(res => {
this.hideLoading()
if (res)
if (res) {
this.$route.params.discountType = discountType
this.showToast('已核销', () => {
this.$router.back()
})
}
})
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!