|
@@ -8,35 +8,35 @@
|
|
:loadingType="5"
|
|
:loadingType="5"
|
|
/>
|
|
/>
|
|
<template v-else>
|
|
<template v-else>
|
|
- <!-- 地址选择 -->
|
|
|
|
|
|
+ <!-- 地址信息 -->
|
|
<cm-address-temp ref="orderAddress" v-if="skeletonShow" :addressData="addressData" />
|
|
<cm-address-temp ref="orderAddress" v-if="skeletonShow" :addressData="addressData" />
|
|
- <!-- 商品 -->
|
|
|
|
- <cm-goods-temp ref="goods" v-if="skeletonShow" :list="orderInfo.orderProductList" :orderInfo="orderInfo" />
|
|
|
|
|
|
+ <!-- 商品信息 -->
|
|
|
|
+ <cm-goods-temp ref="goods" v-if="skeletonShow" :list="orderInfo.orderProductList" :orderInfo="orderInfo" />
|
|
<!-- 订单信息 -->
|
|
<!-- 订单信息 -->
|
|
<cm-order-temp ref="information" v-if="skeletonShow" :information="orderInfo" />
|
|
<cm-order-temp ref="information" v-if="skeletonShow" :information="orderInfo" />
|
|
<!-- 发票信息 -->
|
|
<!-- 发票信息 -->
|
|
<cm-invice-temp ref="invoice" v-if="skeletonShow" :orderInvoice="orderInvoice" />
|
|
<cm-invice-temp ref="invoice" v-if="skeletonShow" :orderInvoice="orderInvoice" />
|
|
- <!-- 支付记录 -->
|
|
|
|
|
|
+ <!-- 支付信息 -->
|
|
<cm-payment-temp
|
|
<cm-payment-temp
|
|
ref="payment"
|
|
ref="payment"
|
|
v-if="skeletonShow"
|
|
v-if="skeletonShow"
|
|
:discernReceiptList="discernReceiptList"
|
|
:discernReceiptList="discernReceiptList"
|
|
:receiptAmount="receiptAmount"
|
|
:receiptAmount="receiptAmount"
|
|
/>
|
|
/>
|
|
- <!-- 退款记录 -->
|
|
|
|
|
|
+ <!-- 退款信息 -->
|
|
<cm-refund-temp
|
|
<cm-refund-temp
|
|
ref="refund"
|
|
ref="refund"
|
|
v-if="skeletonShow"
|
|
v-if="skeletonShow"
|
|
:returnedPurchaseList="returnedPurchaseList"
|
|
:returnedPurchaseList="returnedPurchaseList"
|
|
:returnedPurchaseFee="returnedPurchaseFee"
|
|
:returnedPurchaseFee="returnedPurchaseFee"
|
|
/>
|
|
/>
|
|
- <!-- 支付凭证记录 -->
|
|
|
|
|
|
+ <!-- 凭证信息 -->
|
|
<cm-voucher-temp
|
|
<cm-voucher-temp
|
|
ref="voucher"
|
|
ref="voucher"
|
|
v-if="skeletonShow && voucherList && voucherList.length > 0"
|
|
v-if="skeletonShow && voucherList && voucherList.length > 0"
|
|
:list="voucherList"
|
|
:list="voucherList"
|
|
/>
|
|
/>
|
|
- <!-- 底部button -->
|
|
|
|
|
|
+ <!-- 底部按钮 -->
|
|
<view class="button-content" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
|
|
<view class="button-content" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
|
|
<view class="btn btn-query" v-if="btnState.isQuery" @click.stop="queryLogistics">查看物流</view>
|
|
<view class="btn btn-query" v-if="btnState.isQuery" @click.stop="queryLogistics">查看物流</view>
|
|
<view class="btn btn-cancel" v-if="btnState.isPay" @click.stop="btnConfirmPay">立即支付</view>
|
|
<view class="btn btn-cancel" v-if="btnState.isPay" @click.stop="btnConfirmPay">立即支付</view>
|
|
@@ -62,7 +62,7 @@ export default {
|
|
cmInviceTemp,
|
|
cmInviceTemp,
|
|
cmPaymentTemp,
|
|
cmPaymentTemp,
|
|
cmRefundTemp,
|
|
cmRefundTemp,
|
|
- cmVoucherTemp,
|
|
|
|
|
|
+ cmVoucherTemp
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -101,8 +101,11 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
async initOrderDetaileData() {
|
|
async initOrderDetaileData() {
|
|
- try{
|
|
|
|
- const res = await this.OrderService.QueryOrderDetails({ shopOrderId: this.shopOrderId, userId: this.userId })
|
|
|
|
|
|
+ try {
|
|
|
|
+ const res = await this.OrderService.QueryOrderDetails({
|
|
|
|
+ shopOrderId: this.shopOrderId,
|
|
|
|
+ userId: this.userId
|
|
|
|
+ })
|
|
const data = res.data
|
|
const data = res.data
|
|
this.skeletonShow = true
|
|
this.skeletonShow = true
|
|
this.status = data.shopOrder.status
|
|
this.status = data.shopOrder.status
|
|
@@ -111,7 +114,7 @@ export default {
|
|
this.orderInvoice = data.orderInvoice
|
|
this.orderInvoice = data.orderInvoice
|
|
this.returnedPurchaseList = data.returnedPurchaseList
|
|
this.returnedPurchaseList = data.returnedPurchaseList
|
|
this.discernReceiptList = data.discernReceiptList
|
|
this.discernReceiptList = data.discernReceiptList
|
|
- this.receiptAmount = data.order.receiptAmount
|
|
|
|
|
|
+ this.receiptAmount = data.shopOrder.receiptAmount
|
|
this.returnedPurchaseFee = data.shopOrder.returnedPurchaseFee
|
|
this.returnedPurchaseFee = data.shopOrder.returnedPurchaseFee
|
|
this.voucherList = data.voucher
|
|
this.voucherList = data.voucher
|
|
this.mapStateArr.forEach(el => {
|
|
this.mapStateArr.forEach(el => {
|
|
@@ -121,8 +124,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|
|
-
|
|
|
|
- }catch(error){
|
|
|
|
|
|
+ } catch (error) {
|
|
this.$util.msg(error.msg, 2000)
|
|
this.$util.msg(error.msg, 2000)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -141,13 +143,13 @@ export default {
|
|
},
|
|
},
|
|
//监听根据付款状态做操作
|
|
//监听根据付款状态做操作
|
|
async getOrderPaymentValidation() {
|
|
async getOrderPaymentValidation() {
|
|
- try{
|
|
|
|
|
|
+ try {
|
|
const res = await this.OrderService.OrderPaymentValidation({ shopOrderId: this.shopOrderId })
|
|
const res = await this.OrderService.OrderPaymentValidation({ shopOrderId: this.shopOrderId })
|
|
this.$api.navigateTo(`/pages/user/order/order-pay-list?shopOrderId=${res.data.shopOrderId}`)
|
|
this.$api.navigateTo(`/pages/user/order/order-pay-list?shopOrderId=${res.data.shopOrderId}`)
|
|
- }catch(error){
|
|
|
|
|
|
+ } catch (error) {
|
|
this.$util.msg(error.msg, 2000)
|
|
this.$util.msg(error.msg, 2000)
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
onShow() {}
|
|
onShow() {}
|
|
}
|
|
}
|