积分兑换

This commit is contained in:
liuye
2022-11-30 13:49:53 +08:00
parent 46ba72a119
commit bbfe484604
3 changed files with 29 additions and 14 deletions

View File

@@ -74,19 +74,22 @@ export default {
})
},
submit() {
this.$http.post(`/app/appintegralmerchandiseorder/addOrUpdate`, {
merchandiseId: this.id,
merchandiseNumber: this.number,
remark: this.remark
}).then((res) => {
if (res.code == 0) {
this.$u.toast('提交成功')
uni.$emit('updateList')
setTimeout(() => {
uni.navigateBack({delta: 2})
}, 600)
}
this.$confirm('是否确认提交订单?').then(() => {
this.$http.post(`/app/appintegralmerchandiseorder/addOrUpdate`, {
merchandiseId: this.id,
merchandiseNumber: this.number,
remark: this.remark
}).then((res) => {
if (res.code == 0) {
this.$u.toast('提交成功')
uni.$emit('updateList')
setTimeout(() => {
uni.navigateBack({delta: 2})
}, 600)
}
})
})
},
},
}