|
|
|
@ -92,7 +92,7 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { getOrderCountByStatus, getUserOrderList, userTakeOrder } from "@/api/auth"; |
|
|
|
|
import { getOrderCountByStatus, getUserOrderList, userTakeOrder, userRemoveOrder } from "@/api/auth"; |
|
|
|
|
import { getSpecialTemplateIds, getInitData, aliPayApp, aliPayWap } from "@/api/special"; |
|
|
|
|
import PayDialog from "@/components/PayDialog/index.vue"; |
|
|
|
|
|
|
|
|
@ -373,10 +373,19 @@ |
|
|
|
|
if (!confirm) return; |
|
|
|
|
uni.showLoading({ mask: true }); |
|
|
|
|
try { |
|
|
|
|
await userRemoveOrder(this.id); |
|
|
|
|
await userRemoveOrder(id); |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
this.$util.showMsg(title + "成功!"); |
|
|
|
|
this.orderList = { |
|
|
|
|
first: 0, |
|
|
|
|
limit: 8, |
|
|
|
|
list: [], |
|
|
|
|
loaded: false, |
|
|
|
|
top: 0, |
|
|
|
|
}; |
|
|
|
|
this.getOrderList(); |
|
|
|
|
} catch (err) { |
|
|
|
|
console.log(err); |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
this.$util.showMsg(err.msg); |
|
|
|
|
} |
|
|
|
|