Commit 042f185e by 李伟康

commit

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