|
@@ -2,17 +2,23 @@
|
|
|
<view :style="colorStyle" v-if="orderDetail.orderState">
|
|
|
<view class="wait_panel">
|
|
|
<view class="w1">
|
|
|
- <view class="imageView">
|
|
|
+ <view v-if="orderStatus != 8" class="imageView">
|
|
|
<image v-if="orderDetail.orderState == 5" src="http://www.gzzzyd.com/groupon/home_slices/取消订单小@2x.png" mode="scaleToFill" />
|
|
|
<image v-else-if="orderDetail.orderState == 4" src="http://www.gzzzyd.com/groupon/home_slices/已完成@2x.png" mode="scaleToFill" />
|
|
|
- <image v-else-if="orderDetail.orderState == 8" src="http://www.gzzzyd.com/groupon/home_slices/退款中@2x.png" mode="scaleToFill" />
|
|
|
<image v-else src="http://www.gzzzyd.com/groupon/order_details/时间.png" mode="scaleToFill" />
|
|
|
</view>
|
|
|
+ <view v-if="orderStatus == 8" class="imageView">
|
|
|
+ <image src="http://www.gzzzyd.com/groupon/home_slices/退款中@2x.png" mode="scaleToFill" />
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <text v-if="orderStatus != 8">
|
|
|
+ <text v-if="orderDetail.orderState == 4" class="success_status">{{orderDetail.orderStateDesc}}</text>
|
|
|
+ <text v-else class="status">{{orderDetail.orderStateDesc}}</text>
|
|
|
+ </text>
|
|
|
+ <text v-if="orderStatus == 8">
|
|
|
+ <text class="refund_status">{{orderDetail.afterSalesDesc}}</text>
|
|
|
+ </text>
|
|
|
|
|
|
- <text v-if="orderDetail.orderState == 4" class="success_status">{{orderDetail.orderStateDesc}}</text>
|
|
|
- <text v-else-if="orderDetail.orderState == 8 || item.orderState == 7" class="refund_status">{{orderDetail.afterSalesDesc}}</text>
|
|
|
- <text v-else-if="orderDetail.orderState > 4" class="refund_status">{{orderDetail.orderStateDesc}}</text>
|
|
|
- <text v-else class="status">{{orderDetail.orderStateDesc}}</text>
|
|
|
</view>
|
|
|
<view class="w2" v-if="orderDetail.orderState == 1">
|
|
|
需付款: <text class="red">¥{{orderDetail.paymentAmount}}</text>
|
|
@@ -49,6 +55,7 @@
|
|
|
<view class="all-products-item-content-b">
|
|
|
<view style="display:flex;">
|
|
|
<text class="red"> ¥{{item.goodsPrice}}</text>
|
|
|
+ <text v-if="item.isAfterSales == 1 && orderStatus != 8" class="count">有售后</text>
|
|
|
</view>
|
|
|
|
|
|
<view>
|
|
@@ -152,7 +159,7 @@
|
|
|
<view class="item-value">¥{{orderDetail.paymentAmount}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="p_box" v-if="orderDetail.orderState == 8 || orderDetail.orderState == 7">
|
|
|
+ <view class="p_box" v-if="orderStatus == 8">
|
|
|
<view class="p-t">
|
|
|
售后信息
|
|
|
</view>
|
|
@@ -184,10 +191,10 @@
|
|
|
<view class="item-lable">物流单号</view>
|
|
|
<view class="item-value2">{{orderDetail.afterSales.logisticsNo || ''}}</view>
|
|
|
</view>
|
|
|
- <view class="p-b-item" v-if="orderDetail.afterSales.status == 4">
|
|
|
- <view class="item-lable">拒绝原因</view>
|
|
|
- <view class="item-value2">{{orderDetail.afterSales.refuseReason || ''}}</view>
|
|
|
- </view>
|
|
|
+ <view class="p-b-item" v-if="orderDetail.afterSales.status == 4">
|
|
|
+ <view class="item-lable">拒绝原因</view>
|
|
|
+ <view class="item-value2">{{orderDetail.afterSales.refuseReason || ''}}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<view class="p_box" v-if="orderDetail.store">
|
|
@@ -352,7 +359,8 @@ export default {
|
|
|
orderDetail: {},
|
|
|
selfTakeList: [],
|
|
|
orderId:'',
|
|
|
- afterSalesId:''
|
|
|
+ afterSalesId:'',
|
|
|
+ orderStatus: 0
|
|
|
}
|
|
|
},
|
|
|
computed: mapGetters(['isLogin']),
|
|
@@ -367,6 +375,7 @@ export default {
|
|
|
onLoad (options) {
|
|
|
this.from = 'routine'
|
|
|
console.log(options);
|
|
|
+ this.orderStatus = options.orderStatus;
|
|
|
this.orderId = options.orderId;
|
|
|
this.afterSalesId = options.afterSalesId;
|
|
|
this.getOrderDetail(this.orderId, options.afterSalesId)
|