|
|
|
@ -135,7 +135,7 @@ |
|
|
|
<view class="status-btn" style="top: 0;" v-if="orderStatus(orderDetail)" @tap="returnPopupProp(orderDetail)"> |
|
|
|
取消订单 |
|
|
|
</view> |
|
|
|
<view class="status-btn" style="top: 0;" v-if="orderDetail.status == 5 && orderDetail.mallRefundRecord.length < 1" @tap="returnProducts(orderDetail)"> |
|
|
|
<view class="status-btn" style="top: 0;" v-if="orderDetail.status == 5 && hasRefund == false" @tap="returnProducts(orderDetail)"> |
|
|
|
申请售后 |
|
|
|
</view> |
|
|
|
<view class="status-btn" style="top: 70rpx;" @tap="refreah(orderDetail)"> |
|
|
|
@ -441,6 +441,16 @@ |
|
|
|
查看评价 > |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view style="height: 80rpx;line-height: 80rpx;display: flex;" v-if="hasRefund"> |
|
|
|
<view style="flex: 1;color: #777;font-weight: 700;"> |
|
|
|
申请平台介入 |
|
|
|
</view> |
|
|
|
<view style="color: #000;font-weight: 700;" @tap="checkEvaluate"> |
|
|
|
<img @tap="makeCall('15533910775')" |
|
|
|
src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/869a7af6a1c24bf3a0d523c4a18b55c6.png" |
|
|
|
alt="" style="width: 40rpx;height: 40rpx;margin: 20rpx 0 0 20rpx;" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -504,20 +514,20 @@ |
|
|
|
</uni-popup> |
|
|
|
|
|
|
|
<uni-popup ref="returnPopup" background-color="#fff"> |
|
|
|
<view class="car-content" style="height: auto;padding: 20rpx;" v-if="orderDetail.deliveryType == 1 && orderDetail.status != 10 && orderDetail.otherOrder != 1"> |
|
|
|
<view class="car-content" style="height: auto;padding: 20rpx;" v-if="orderDetail.status != 10"> |
|
|
|
<view class="car-title" style="padding: 0 20rpx;"> |
|
|
|
选择退款原因 |
|
|
|
</view> |
|
|
|
<view class="" style="padding: 0 20rpx;"> |
|
|
|
<view style="height:80rpx;"> |
|
|
|
<view style="height:80rpx;" v-if="orderDetail.otherOrder != 1"> |
|
|
|
<radio :checked="sellTime==2" name="sellTime" @click="checkSellTime(2)" /> |
|
|
|
全额退款(商家原因) |
|
|
|
</view> |
|
|
|
<view style="height:80rpx;"> |
|
|
|
<view style="height:80rpx;" v-if="payData.deliveryType ==1"> |
|
|
|
<radio :checked="sellTime==3" name="sellTime" @click="checkSellTime(3)" /> |
|
|
|
全额退款(配送员原因) |
|
|
|
</view> |
|
|
|
<view style="height:80rpx;"> |
|
|
|
<view style="height:80rpx;" v-if="payData.deliveryType ==1 && orderDetail.otherOrder != 1"> |
|
|
|
<radio :checked="sellTime==4" name="sellTime" @click="checkSellTime(4)" /> |
|
|
|
全额退款(商家+配送员原因) |
|
|
|
</view> |
|
|
|
@ -612,6 +622,7 @@ |
|
|
|
refundType:3, |
|
|
|
refundTypeStatus:4, |
|
|
|
shopTime:'', |
|
|
|
hasRefund:false, |
|
|
|
peisongTime:'', |
|
|
|
shopItem:{}, |
|
|
|
orderId:'', |
|
|
|
@ -770,7 +781,7 @@ |
|
|
|
}, |
|
|
|
checkEvaluate(){ |
|
|
|
console.log(this.orderDetail) |
|
|
|
if(this.orderDetail.comments.length>0){ |
|
|
|
if(this.orderDetail.comments != null && this.orderDetail.comments.length>0){ |
|
|
|
this.$refs.evaluatePopup.open() |
|
|
|
}else{ |
|
|
|
this.tui.toast("暂无评价"); |
|
|
|
@ -964,6 +975,13 @@ |
|
|
|
that.tui.request("/mall/order/detail/"+id, "GET", {}, false, true).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
that.orderDetail = res.result; |
|
|
|
if(that.orderDetail.mallRefundRecord != null && that.orderDetail.mallRefundRecord.length > 0){ |
|
|
|
for(let i = 0; i < that.orderDetail.mallRefundRecord.length;i++){ |
|
|
|
if(that.orderDetail.mallRefundRecord[i].status >= 3){ |
|
|
|
that.hasRefund = true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(that.orderDetail.groupInfo){ |
|
|
|
//还没有拼团成功拼团状态 0:拼团中 1:拼团成功 2:拼团失败 3:面对面团(不公开) |
|
|
|
if(that.orderDetail.groupInfo.status != 1 && that.orderDetail.groupInfo.status != 2){ |
|
|
|
|