fix button status
This commit is contained in:
@ -210,7 +210,7 @@ Page({
|
||||
url: app.globalData.ip + '/wisdommining/api/order/afterSales',
|
||||
method: 'POST',
|
||||
header: {
|
||||
"content-type": "application/x-www-form-urlencoded",
|
||||
"content-type": "application/json",
|
||||
},
|
||||
data: {
|
||||
orderRefund: '',
|
||||
|
@ -29,15 +29,20 @@
|
||||
</view>
|
||||
<view class="orderAll">
|
||||
<view class="order" wx:for="{{orderList}}" wx:key='index' data-num="{{item.orderNumber}}" catchtap="toOrderDetail">
|
||||
<view class="state" wx:if="{{item.status<6 && (item.afterSalesStatus ==66 || !item.afterSalesStatus) && type != 6}}">
|
||||
{{item.status==5?'已取消':item.status==1?'待支付':item.status==2?'待发货':item.status==3?'待收货':item.status==4?'已完成':''}}
|
||||
<view class="state" wx:if="{{item.status<6 && (item.afterSalesStatus == 66 || !item.afterSalesStatus) && type != 6}}">
|
||||
{{item.status==5?'已取消'
|
||||
:item.status==1?'待支付'
|
||||
:item.status==2?'待发货'
|
||||
:item.status==3?'待收货'
|
||||
:item.status==4?'已完成'
|
||||
:''}}
|
||||
</view>
|
||||
<view class="state" wx:if="{{item.afterSalesStatus && type==6}}">
|
||||
{{
|
||||
item.afterSalesStatus==61?'换货审核中'
|
||||
:item.afterSalesStatus==62?'退货审核中'
|
||||
:item.afterSalesStatus==63&&item.orderRefundType==1?'换货申请成功'
|
||||
:item.afterSalesStatus==63&&item.orderRefundType==2?'退货申请成功'
|
||||
:item.afterSalesStatus==62?'退款审核中'
|
||||
:item.afterSalesStatus==63&&item.orderRefundType==1?'请退回商品'
|
||||
:item.afterSalesStatus==63&&item.orderRefundType==2?'请退货'
|
||||
:item.afterSalesStatus==64&&item.orderRefundType==1?'换货待商家收货'
|
||||
:item.afterSalesStatus==64&&item.orderRefundType==2?'退货待商家收货'
|
||||
:item.afterSalesStatus==65&&item.orderRefundType==1?'换货完成'
|
||||
@ -45,6 +50,7 @@
|
||||
:item.afterSalesStatus==65&&item.orderRefundType==3?'退款完成'
|
||||
:item.afterSalesStatus==66&&item.orderRefundType==1?'换货失败'
|
||||
:item.afterSalesStatus==66&&item.orderRefundType==2?'退货失败'
|
||||
:item.afterSalesStatus==66&&item.orderRefundType==3?'退款失败'
|
||||
:''
|
||||
}}
|
||||
</view>
|
||||
@ -74,31 +80,33 @@
|
||||
<view wx:if="{{item.timeStr}}" style="font-size: 28rpx">
|
||||
您需要在<text style="color:#ee7b1e;">{{item.timeStr}}</text>内处理
|
||||
</view>
|
||||
<view class="btn display_J_E">
|
||||
<view class="btn1" wx:if="{{item.status==3}}" data-item='{{item}}' data-logistics="{{item.logistics}}" data-order-number="{{item.orderNumber}}" data-logistics-name="{{item.logisticsName}}" catchtap="viewLogisticsDetails">物流查询</view>
|
||||
<view class="btn1 btn2" wx:if="{{item.status==3}}" data-id='{{item.id}}' catchtap="confirm">确认收货</view>
|
||||
<view class="btn display_J_E" style="flex-wrap: wrap;row-gap: 24rpx;">
|
||||
<view class="btn1" wx:if="{{item.status==3&&item.afterSalesStatus!=64}}" data-item='{{item}}' data-logistics="{{item.logistics}}" data-order-number="{{item.orderNumber}}" data-logistics-name="{{item.logisticsName}}" catchtap="viewLogisticsDetails">物流查询</view>
|
||||
<view class="btn1 btn2" wx:if="{{item.status==3&&type==3&&item.afterSalesStatus!=64}}" data-id='{{item.id}}' catchtap="confirm">确认收货</view>
|
||||
<view class="btn1" wx:if="{{item.status==1}}">立即支付</view>
|
||||
<view class="btn1" wx:if="{{item.status==4||item.status==5}}" catchtap="del" data-id='{{item.id}}' data-index="{{index}}">删除订单</view>
|
||||
|
||||
<!-- 退货流程 -->
|
||||
<!-- 待发货 申请 -->
|
||||
|
||||
<view class="btn1 btn2" wx:if="{{item.status==2}}" data-id='{{item.id}}' catchtap="apply1">
|
||||
<!-- 申请退款按钮只在代发货或者退款申请被驳回时显示 -->
|
||||
<view class="btn1 btn2" wx:if="{{item.status==2 && (item.afterSalesStatus<66 || !item.afterSalesStatus)}}" data-id='{{item.id}}' catchtap="apply1">
|
||||
申请退款</view>
|
||||
<!-- 待收货申请 -->
|
||||
<view class="btn1 btn2" wx:if="{{item.status==3&& (item.afterSalesStatus<60 || item.afterSalesStatus == null)}}" data-id='{{item.id}}' data-num='{{item.orderNumber}}' data-s='{{item.status}}' data-sq='1' catchtap="apply">申请退货</view>
|
||||
<view class="btn1 btn2" wx:if="{{item.status==3&& item.afterSalesStatus==null }}" data-id='{{item.id}}' data-num='{{item.orderNumber}}' data-s='{{item.status}}' data-sq='2' catchtap="apply">申请换货</view>
|
||||
<view class="btn1 btn2" wx:if="{{item.status==3&& type==3 && (item.afterSalesStatus==66 || !item.afterSalesStatus)}}" data-id='{{item.id}}' data-num='{{item.orderNumber}}' data-s='{{item.status}}' data-sq='1' catchtap="apply">申请退货</view>
|
||||
<view class="btn1 btn2" wx:if="{{item.status==3&& type==3 && ( item.afterSalesStatus==66 || !item.afterSalesStatus) }}" data-id='{{item.id}}' data-num='{{item.orderNumber}}' data-s='{{item.status}}' data-sq='2' catchtap="apply">申请换货</view>
|
||||
<!-- 申请中 -->
|
||||
<view class="btn1 btn2" wx:if="{{item.afterSalesStatus==61||item.afterSalesStatus==62||item.afterSalesStatus==63||item.afterSalesStatus==66}}" data-id='{{item.id}}' data-num='{{item.orderNumber}}' catchtap="after">查看进度</view>
|
||||
<!-- -->
|
||||
<view class="btn1 btn2" wx:if="{{(item.afterSalesStatus==61||item.afterSalesStatus==62||item.afterSalesStatus==63||item.afterSalesStatus==66) && item.afterSalesStatus!=64&&type==6}}" data-id='{{item.id}}' data-num='{{item.orderNumber}}' catchtap="after">查看进度</view>
|
||||
<!-- 退货待商家收货 完成 -->
|
||||
<view class="btn1 btn2" wx:if="{{(item.status==64||item.status==65)&&item.orderRefundType!=3}}" data-id='{{item.id}}' data-num='{{item.orderNumber}}' data-sq='{{item.orderRefundType==1?2:1}}' catchtap="jilu">
|
||||
退换货记录</view>
|
||||
<!-- 后台同意退换货后不显示 -->
|
||||
<view wx:if="{{item.afterSalesStatus!=63&&item.afterSalesStatus!=64}}" class="btn1 btn2" data-id='{{item.id}}' data-address-id="{{item.addressId}}" data-order-address="{{item.orderAddress}}" catchtap="updateAddress">
|
||||
修改地址</view>
|
||||
<!-- <view class="btn display_J_E" style="margin-top: 24rpx;">
|
||||
</view> -->
|
||||
</view>
|
||||
<!-- wx:if="{{item.status==2}}" -->
|
||||
<view class="btn display_J_E" style="margin-top: 24rpx;">
|
||||
<view class="btn1 btn2" data-id='{{item.id}}' data-address-id="{{item.addressId}}" data-order-address="{{item.orderAddress}}" catchtap="updateAddress">
|
||||
修改地址</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
Reference in New Issue
Block a user