diff --git a/src/mods/conv/score/AppOrderList/AppOrderList.vue b/src/mods/conv/score/AppOrderList/AppOrderList.vue index af29ab6..da7fd1c 100644 --- a/src/mods/conv/score/AppOrderList/AppOrderList.vue +++ b/src/mods/conv/score/AppOrderList/AppOrderList.vue @@ -16,9 +16,12 @@ @@ -71,6 +74,16 @@ export default { }) }, + confirm(id) { + this.$loading() + this.$instance.post(`/app/appvillagerintegralshoporder/finishOrder?orderId=${id}`).then(res => { + if (res.code === 0) { + this.$toast('确认成功') + this.reset() + } + }) + }, + getTotal(arr) { let total = 0 arr.forEach(item => { @@ -159,11 +172,7 @@ export default { } .order-item__footer { - display: flex; - align-items: center; - justify-content: space-between; - height: 112px; - padding: 024px; + padding: 24px; span { color: #3078E1; font-size: 28px; diff --git a/src/mods/conv/score/AppOrderList/orderInfo.vue b/src/mods/conv/score/AppOrderList/orderInfo.vue index 7dd5fec..3f7d44f 100644 --- a/src/mods/conv/score/AppOrderList/orderInfo.vue +++ b/src/mods/conv/score/AppOrderList/orderInfo.vue @@ -33,6 +33,11 @@
取消订单 +
+
+ 确认兑换 +
+

商品兑换后,如不确认兑换,系统将于72小时后自动确认,如有疑问请联系客服。

@@ -89,7 +94,17 @@ export default { this.getInfo() } }) - } + }, + confirm() { + this.$loading() + this.$instance.post(`/app/appvillagerintegralshoporder/finishOrder?orderId=${this.id}`).then(res => { + if (res.code === 0) { + this.$toast('确认成功') + uni.$emit('update') + this.getInfo() + } + }) + }, } }