| | |
| | | </template> |
| | | |
| | | <script> |
| | | import uniLoadMore from "@/components/uni-load-more/uni-load-more.vue"; |
| | | import { getOrderList, cancelOrder, confirmReceipt } from "@/api/order.js"; |
| | | import '@/components/uview-components/uview-ui'; |
| | | import { getOrderXcxList, cancelOrder, confirmReceipt } from "@/api/order.js"; |
| | | import { getClearReason } from "@/api/after-sale.js"; |
| | | import LiLiWXPay from "@/js_sdk/lili-pay/wx-pay.js"; |
| | | export default { |
| | | components: { |
| | | uniLoadMore, |
| | | }, |
| | | |
| | | data() { |
| | | return { |
| | | lightColor: this.$lightColor, |
| | |
| | | */ |
| | | pay(val) { |
| | | if (val.sn) { |
| | | // #ifdef MP-WEIXIN |
| | | new LiLiWXPay({ |
| | | sn: val.sn, |
| | | price: val.flowPrice, |
| | | orderType: "ORDER", |
| | | }).pay(); |
| | | // #endif |
| | | // #ifndef MP-WEIXIN |
| | | uni.navigateTo({ |
| | | url: "/pages/cart/payment/payOrder?order_sn=" + val.sn, |
| | | }); |
| | | // #endif |
| | | } |
| | | }, |
| | | |
| | |
| | | loadData(index) { |
| | | this.params.pageNumber = this.navList[index].pageNumber; |
| | | // this.params.tag = this.orderStatus[index].orderStatus; |
| | | getOrderList(this.params).then((res) => { |
| | | getOrderXcxList(this.params).then((res) => { |
| | | uni.stopPullDownRefresh(); |
| | | if (!res.data.success) { |
| | | this.navList[index].loadStatus = "noMore"; |