Commit a6547afa by 高淑倩

add: 退单列表状态

parent 6feb8e69
...@@ -151,11 +151,30 @@ wxService.page({ ...@@ -151,11 +151,30 @@ wxService.page({
} }
}) })
}, },
// 查看详情
handelCheckRfDetail(e){
const { id } = e.currentTarget.dataset
},
// 退货寄回
handelCheckRfSend(e){
const { id } = e.currentTarget.dataset
},
// 取消退款
handelCancelRefund(e){
const { id } = e.currentTarget.dataset
},
// 订单详情
handelDetail(e) { handelDetail(e) {
// const {detail} = e.currentTarget.dataset // const {detail} = e.currentTarget.dataset
const { id } = e.currentTarget.dataset const { id } = e.currentTarget.dataset
wxService.router(`/pages/orderDetail/orderDetail?id=${id}`) wxService.router(`/pages/orderDetail/orderDetail?id=${id}`)
}, },
// 退单详情
handelDetailRf(e) {
const { id } = e.currentTarget.dataset
console.log('id', id)
// wxService.router(`/pages/orderDetail/orderDetail?id=${id}`)
},
//点击切换tab //点击切换tab
switchTab(e) { switchTab(e) {
const { type, status } = e.currentTarget.dataset const { type, status } = e.currentTarget.dataset
......
...@@ -28,7 +28,11 @@ ...@@ -28,7 +28,11 @@
<!--订单状态(C:取消;N:新建,P:已支付;D:已发货;R:已收货) 关闭 取消 新建 待付款 已支付 待发货 已发货 待收货 已完成 已收货 交易关闭 取消--> <!--订单状态(C:取消;N:新建,P:已支付;D:已发货;R:已收货) 关闭 取消 新建 待付款 已支付 待发货 已发货 待收货 已完成 已收货 交易关闭 取消-->
<!--退单状态(C:取消;N:新建,A:已审核;R:退货已发R货;D:退货已收货)--> <!--退单状态(C:取消;N:新建,A:已审核;R:退货已发R货;D:退货已收货)-->
<view wx:if="{{currentIndex == 5}}"> <view wx:if="{{currentIndex == 5}}">
<text class="order-status" wx-if="{{item.status == 'N'}}">N</text> <text class="order-status" wx-if="{{item.status == 'C'}}">退款取消</text>
<text class="order-status" wx-if="{{item.status == 'N'}}">待审核</text>
<text class="order-status" wx-if="{{item.status == 'A'}}">待寄回</text>
<text class="order-status" wx-if="{{item.status == 'R'}}">退货中</text>
<text class="order-status" wx-if="{{item.status == 'D'}}">退款成功</text>
</view> </view>
<view wx:else> <view wx:else>
<text class="order-status" wx-if="{{item.status == 'C'}}">交易关闭</text> <text class="order-status" wx-if="{{item.status == 'C'}}">交易关闭</text>
...@@ -38,6 +42,38 @@ ...@@ -38,6 +42,38 @@
<text class="order-status" wx-if="{{item.status == 'R'}}">已完成</text> <text class="order-status" wx-if="{{item.status == 'R'}}">已完成</text>
</view> </view>
</view> </view>
<!-- 类型 -->
<view wx:if="{{currentIndex == 5}}">
<view
class="pro-list"
data-detail="{{item}}"
data-id="{{item.id}}"
bindtap="handelDetailRf"
>
<scroll-view scroll-x="true">
<view class="uploadWrap" scroll-x="true">
<block wx:for='{{item.tradeVO.skuVOList}}' wx:for-item="sub" wx:key="s">
<view class="upload_Item">
<image
class="upload_Item_img"
src="{{sub.mainImgUrl}}"
bindtap='goProDetail'
data-id='{{sub.goodsId}}'
/>
</view>
</block>
</view>
</scroll-view>
</view>
<view class="pro-number">
<text class="total-pro">共{{item.count}}件商品</text>
<view class="total-price">
实付
<text class="price">¥{{item.amount}}</text>
</view>
</view>
</view>
<view wx:else>
<view <view
class="pro-list" class="pro-list"
data-detail="{{item}}" data-detail="{{item}}"
...@@ -66,10 +102,27 @@ ...@@ -66,10 +102,27 @@
<text class="price">¥{{item.payAmount}}</text> <text class="price">¥{{item.payAmount}}</text>
</view> </view>
</view> </view>
</view>
<view wx:if="{{currentIndex == 5}}"> <view wx:if="{{currentIndex == 5}}">
<view class="btn-group"> <view class="btn-group">
<view class="order-status" wx-if="{{item.status == 'N'}}"> <!--退单状态(C:取消;N:新建,A:已审核;R:退货已发R货;D:退货已收货)-->
<button class="btn btn-sm btn-default" data-id="{{item.id}}" bindtap="handelDelOrder">nnnnn</button> <view class="order-status-rf" wx-if="{{item.status == 'C'}}">
<button class="btn btn-sm btn-default" data-id="{{item.id}}" bindtap="handelCheckRfDetail">查看详情</button>
</view>
<view class="order-status-rf" wx-if="{{item.status == 'N'}}">
<button class="btn btn-sm btn-default" data-id="{{item.id}}" bindtap="handelCheckRfDetail">查看详情</button>
<button class="btn btn-sm btn-default" data-id="{{item.id}}" bindtap="handelCheckRfSend">退货寄回</button>
<button class="btn btn-sm btn-primary btn-outline" data-id="{{item.id}}" bindtap="handelCancelRefund">取消退款</button>
</view>
<view class="order-status-rf" wx-if="{{item.status == 'A'}}">
<button class="btn btn-sm btn-default" data-id="{{item.id}}" bindtap="handelCheckRfDetail">查看详情</button>
</view>
<view class="order-status-rf" wx-if="{{item.status == 'R'}}">
<button class="btn btn-sm btn-default" data-id="{{item.id}}" bindtap="handelCheckRfDetail">查看详情</button>
</view>
<view class="order-status-rf" wx-if="{{item.status == 'D'}}">
<button class="btn btn-sm btn-default" data-id="{{item.id}}" bindtap="handelCheckRfDetail">查看详情</button>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -55,6 +55,9 @@ scroll-view{ ...@@ -55,6 +55,9 @@ scroll-view{
font-size: 26rpx; font-size: 26rpx;
color: #333333; color: #333333;
} }
.order-status-rf {
display: flex;
}
.pro-list{ .pro-list{
margin-top: 16rpx; margin-top: 16rpx;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment