|
@@ -5,11 +5,12 @@
|
|
|
<view 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 == 6 || orderDetail.orderState == 7" 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>
|
|
|
|
|
|
<text v-if="orderDetail.orderState == 4" class="success_status">{{orderDetail.orderStateDesc}}</text>
|
|
|
+ <text v-else-if="orderDetail.orderState == 8" 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>
|
|
@@ -165,7 +166,7 @@
|
|
|
<view class="item-value2">{{orderDetail.refundApplyTime}}</view>
|
|
|
</view>
|
|
|
<view class="p-b-item">
|
|
|
- <view class="item-lable">退款编号</view>
|
|
|
+ <view class="item-lable">售后编号</view>
|
|
|
<view class="item-value2">{{orderDetail.refundNo}}</view>
|
|
|
</view>
|
|
|
<view class="p-b-item">
|
|
@@ -184,9 +185,8 @@
|
|
|
|
|
|
<view :style="{height:'100rpx'}"></view>
|
|
|
<view class='footer op-area'>
|
|
|
- <button class="info-btn" v-if="orderDetail.orderState == 2" @click="RefundShow = true">申请售后</button>
|
|
|
+<!-- <button class="info-btn" v-if="orderDetail.orderState == 4" @click="RefundShow = true">申请售后</button>-->
|
|
|
<button class="info-btn" v-if="orderDetail.orderState == 1" @click="cancelOrder()">取消订单</button>
|
|
|
- <!-- <button class="action-btn" v-if="orderDetail.orderState == 1" @click="goPay()">去支付</button> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -321,7 +321,7 @@ export default {
|
|
|
this.from = 'routine'
|
|
|
console.log(options);
|
|
|
this.orderId = options.orderId;
|
|
|
- this.getOrderDetail(this.orderId )
|
|
|
+ this.getOrderDetail(this.orderId, options.afterSalesId)
|
|
|
},
|
|
|
/**
|
|
|
* 生命周期函数--监听页面显示
|
|
@@ -418,15 +418,18 @@ export default {
|
|
|
afterSales () {
|
|
|
|
|
|
},
|
|
|
- getOrderDetail(orderId) {
|
|
|
- console.log("getOrderDetail");
|
|
|
+ getOrderDetail(orderId, afterSalesId) {
|
|
|
let longitude = uni.getStorageSync('user_longitude');
|
|
|
let latitude = uni.getStorageSync('user_latitude');
|
|
|
- getUserOrderDetail({
|
|
|
- orderId: orderId,
|
|
|
- longitude: longitude,
|
|
|
- latitude: latitude
|
|
|
- }).then(res => {
|
|
|
+ let param = {
|
|
|
+ orderId: orderId,
|
|
|
+ longitude: longitude,
|
|
|
+ latitude: latitude
|
|
|
+ };
|
|
|
+ if (afterSalesId != null && afterSalesId != 'null') {
|
|
|
+ param.afterSalesId = afterSalesId;
|
|
|
+ }
|
|
|
+ getUserOrderDetail(param).then(res => {
|
|
|
this.orderDetail = res.data
|
|
|
}).catch(err => {
|
|
|
return that.$util.Tips({
|