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