|
@@ -93,10 +93,18 @@
|
|
|
<text class="goods-total">¥{{ (orderInfo.totalMoney - (orderInfo.expressMoney || 0)).toFixed(2)
|
|
<text class="goods-total">¥{{ (orderInfo.totalMoney - (orderInfo.expressMoney || 0)).toFixed(2)
|
|
|
}}</text>
|
|
}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="row">
|
|
|
|
|
- <text>优惠金额</text>
|
|
|
|
|
- <text class="discount">-¥{{ orderInfo.discountMoney || '0.00' }}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <template v-if="orderInfo.discountList && orderInfo.discountList.length > 0">
|
|
|
|
|
+ <view class="row" v-for="(discount, index) in orderInfo.discountList" :key="'discount_' + index">
|
|
|
|
|
+ <text>{{ discount.discountActivityMsg || '优惠金额' }}</text>
|
|
|
|
|
+ <text class="discount">-¥{{ discount.discountMoney || '0.00' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else>
|
|
|
|
|
+ <view class="row">
|
|
|
|
|
+ <text>优惠金额</text>
|
|
|
|
|
+ <text class="discount">-¥{{ orderInfo.discountMoney || '0.00' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </template>
|
|
|
<view class="divider"></view>
|
|
<view class="divider"></view>
|
|
|
<view class="real-pay-row">
|
|
<view class="real-pay-row">
|
|
|
<text>实付款 ({{ orderInfo.payType == 1 ? '余额支付' : '微信支付' }})</text>
|
|
<text>实付款 ({{ orderInfo.payType == 1 ? '余额支付' : '微信支付' }})</text>
|
|
@@ -141,6 +149,11 @@
|
|
|
<!-- 极速退款弹窗 -->
|
|
<!-- 极速退款弹窗 -->
|
|
|
<fast-refund-dialog ref="refundDialog" @refresh="loadOrderDetail(orderInfo.orderId)"></fast-refund-dialog>
|
|
<fast-refund-dialog ref="refundDialog" @refresh="loadOrderDetail(orderInfo.orderId)"></fast-refund-dialog>
|
|
|
|
|
|
|
|
|
|
+ <!-- 修改地址提示弹窗 -->
|
|
|
|
|
+ <common-dialog ref="addressDialog" title="温馨提示" :showCancel="false" confirmText="我知道了">
|
|
|
|
|
+ <view style="padding: 40rpx 0;">{{ addressDialogContent }}</view>
|
|
|
|
|
+ </common-dialog>
|
|
|
|
|
+
|
|
|
<!-- 占位符,防止底部按钮遮挡内容 -->
|
|
<!-- 占位符,防止底部按钮遮挡内容 -->
|
|
|
<view style="height: 120rpx;"></view>
|
|
<view style="height: 120rpx;"></view>
|
|
|
</view>
|
|
</view>
|
|
@@ -151,13 +164,15 @@ import OrderBottomBar from '../components/order-bottom-bar.vue';
|
|
|
import CancelOrderPopup from '../components/cancel-order-popup.vue';
|
|
import CancelOrderPopup from '../components/cancel-order-popup.vue';
|
|
|
import UrgeDeliveryDialog from '../components/urge-delivery-dialog.vue';
|
|
import UrgeDeliveryDialog from '../components/urge-delivery-dialog.vue';
|
|
|
import FastRefundDialog from '../components/fast-refund-dialog.vue';
|
|
import FastRefundDialog from '../components/fast-refund-dialog.vue';
|
|
|
|
|
+import CommonDialog from '@/components/common-dialog.vue';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
OrderBottomBar,
|
|
OrderBottomBar,
|
|
|
CancelOrderPopup,
|
|
CancelOrderPopup,
|
|
|
UrgeDeliveryDialog,
|
|
UrgeDeliveryDialog,
|
|
|
- FastRefundDialog
|
|
|
|
|
|
|
+ FastRefundDialog,
|
|
|
|
|
+ CommonDialog
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -172,11 +187,13 @@ export default {
|
|
|
expressMoney: 0,
|
|
expressMoney: 0,
|
|
|
totalMoney: 0,
|
|
totalMoney: 0,
|
|
|
discountMoney: 0,
|
|
discountMoney: 0,
|
|
|
|
|
+ discountList: [],
|
|
|
payMoney: 0,
|
|
payMoney: 0,
|
|
|
createTime: ''
|
|
createTime: ''
|
|
|
},
|
|
},
|
|
|
latestTrace: null,
|
|
latestTrace: null,
|
|
|
isModifyingAddress: false,
|
|
isModifyingAddress: false,
|
|
|
|
|
+ addressDialogContent: ''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -226,10 +243,20 @@ export default {
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
- uni.showToast({ title: '修改成功', icon: 'success' });
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.loadOrderDetail(this.orderInfo.orderId);
|
|
|
|
|
- }, 1000);
|
|
|
|
|
|
|
+ if (res.data == 1) {
|
|
|
|
|
+ uni.showToast({ title: '修改成功', icon: 'success' });
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.loadOrderDetail(this.orderInfo.orderId);
|
|
|
|
|
+ }, 1000);
|
|
|
|
|
+ } else if (res.data == 2) {
|
|
|
|
|
+ this.addressDialogContent = '当前区域暂时不支持购买';
|
|
|
|
|
+ this.$refs.addressDialog.openPopup();
|
|
|
|
|
+ } else if (res.data == 3) {
|
|
|
|
|
+ this.addressDialogContent = '运费不一致,不支持修改到该地址';
|
|
|
|
|
+ this.$refs.addressDialog.openPopup();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ uni.showToast({ title: res.msg || '修改失败', icon: 'none' });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
|
this.isModifyingAddress = false;
|
|
this.isModifyingAddress = false;
|