| | |
| | | </template> |
| | | |
| | | <script> |
| | | import UEmpty from '@/uview-components/uview-ui/components/u-empty/u-empty.vue'; |
| | | import UImage from '@/uview-components/uview-ui/components/u-image/u-image.vue'; |
| | | import UPopup from '@/uview-components/uview-ui/components/u-popup/u-popup.vue'; |
| | | import URadioGroup from '@/uview-components/uview-ui/components/u-radio-group/u-radio-group.vue'; |
| | | import URadio from '@/uview-components/uview-ui/components/u-radio/u-radio.vue'; |
| | | import UButton from '@/uview-components/uview-ui/components/u-button/u-button.vue'; |
| | | import UToast from '@/uview-components/uview-ui/components/u-toast/u-toast.vue'; |
| | | import UModal from '@/uview-components/uview-ui/components/u-modal/u-modal.vue'; |
| | | 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,UEmpty,UImage,UPopup,URadioGroup,URadio,UButton,UToast,UModal |
| | | }, |
| | | |
| | | 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"; |