Commit fba372567ed4162b5866f470e53b167b20438328
1 parent
ae010287
佣金明细退款的订单要显示已退款
Showing
3 changed files
with
5 additions
and
3 deletions
packageA/pages/distribution/commision/commision.js
@@ -10,7 +10,7 @@ Page({ | @@ -10,7 +10,7 @@ Page({ | ||
10 | data: { | 10 | data: { |
11 | isHiddenDropdown: true,//控制下拉菜单显隐 | 11 | isHiddenDropdown: true,//控制下拉菜单显隐 |
12 | dropdownArr: ['综合','未付款','已付款','待分成','已分成','已取消'], | 12 | dropdownArr: ['综合','未付款','已付款','待分成','已分成','已取消'], |
13 | - statusArr: ['未付款', '已付款', '等待分成', '已分成', '已取消'], | 13 | + statusArr: ['未付款', '已付款', '等待分成', '已分成', '已取消','已退款'], |
14 | currentSelect: '',//记录当前下拉菜单选中项 | 14 | currentSelect: '',//记录当前下拉菜单选中项 |
15 | isInputFocus: false,//记录搜索输入框是否聚焦 | 15 | isInputFocus: false,//记录搜索输入框是否聚焦 |
16 | inputVal: '',//记录搜索输入框的内容 | 16 | inputVal: '',//记录搜索输入框的内容 |
packageA/pages/distribution/commision/commision.wxml
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | <view class="item fs26" wx:for="{{list.pageData}}"> | 31 | <view class="item fs26" wx:for="{{list.pageData}}"> |
32 | <view class="flex jc_sb pd20 bdb"> | 32 | <view class="flex jc_sb pd20 bdb"> |
33 | <view class="time">{{filter.format_time(item.create_time, 1)}}</view> | 33 | <view class="time">{{filter.format_time(item.create_time, 1)}}</view> |
34 | - <view class="c-red">{{filter.status(item.status, statusArr)}}</view> | 34 | + <view class="c-red">{{filter.status(item.status, statusArr,item.order_status)}}</view> |
35 | </view> | 35 | </view> |
36 | <view class="pd20"><text class="c-a fs24">订单号:</text>{{item.order_sn}}</view> | 36 | <view class="pd20"><text class="c-a fs24">订单号:</text>{{item.order_sn}}</view> |
37 | <view class="flex t-c"> | 37 | <view class="flex t-c"> |
utils/filter.wxs
@@ -115,7 +115,7 @@ var filters = { | @@ -115,7 +115,7 @@ var filters = { | ||
115 | // num:状态数值, | 115 | // num:状态数值, |
116 | // arr: 状态文字数组, | 116 | // arr: 状态文字数组, |
117 | // 文字顺序必须跟状态数值对应 | 117 | // 文字顺序必须跟状态数值对应 |
118 | - status: function (num, arr) { | 118 | + status: function (num, arr,order_status) { |
119 | // var text = ''; | 119 | // var text = ''; |
120 | // if(num == 0) { | 120 | // if(num == 0) { |
121 | // text = '未付款'; | 121 | // text = '未付款'; |
@@ -126,6 +126,8 @@ var filters = { | @@ -126,6 +126,8 @@ var filters = { | ||
126 | // } else if(num == 3) { | 126 | // } else if(num == 3) { |
127 | // text = '已完成'; | 127 | // text = '已完成'; |
128 | // }; | 128 | // }; |
129 | + | ||
130 | + if(order_status==6) return '已退款'; | ||
129 | return arr[num]; | 131 | return arr[num]; |
130 | }, | 132 | }, |
131 | 133 |