Commit fa321c36f76ffee43ab452b969de1cce16624473
Merge branch 'dev_oa_fu3' into dev
Showing
8 changed files
with
23 additions
and
10 deletions
components/diy_pregoods/diy_pregoods.js
| ... | ... | @@ -55,7 +55,7 @@ Component({ |
| 55 | 55 | goodsidlist=ut.sub_last(goodsidlist); |
| 56 | 56 | |
| 57 | 57 | var user_id=getApp().globalData.user_id; |
| 58 | - var pre_data={store_id:os.stoid,is_end:0,timetype:1,isuse:1}; | |
| 58 | + var pre_data={store_id:os.stoid,is_end:0,timetype:3,isuse:1}; | |
| 59 | 59 | if(user_id){ |
| 60 | 60 | pre_data.user_id=user_id; |
| 61 | 61 | } | ... | ... |
components/diy_pregoods/diy_pregoods.wxml
| ... | ... | @@ -30,6 +30,13 @@ |
| 30 | 30 | <span class='s_top_kill'>火热进行</span> |
| 31 | 31 | </view> |
| 32 | 32 | </block> |
| 33 | + | |
| 34 | + <block wx:if="{{aitem.start_time>newTime}}"> | |
| 35 | + <view class="rob"> | |
| 36 | + <span class='s_top_kill' style="background-color: #ffe718">即将开始</span> | |
| 37 | + </view> | |
| 38 | + </block> | |
| 39 | + | |
| 33 | 40 | <block wx:if="{{aitem.buy_goodnum>=aitem.presell_sumqty}}"> |
| 34 | 41 | <view class="rob"> |
| 35 | 42 | <span class='s_top_kill gray'>已抢光</span> | ... | ... |
components/diy_pregoods/diy_pregoods.wxss
| ... | ... | @@ -57,6 +57,7 @@ swiper { |
| 57 | 57 | .sp .sp_top { |
| 58 | 58 | height: 220rpx; |
| 59 | 59 | min-width: 30%; |
| 60 | + position: relative; | |
| 60 | 61 | } |
| 61 | 62 | |
| 62 | 63 | .sp .sp_top .s_img { |
| ... | ... | @@ -76,7 +77,7 @@ swiper { |
| 76 | 77 | font-size: 24rpx; |
| 77 | 78 | height: 38rpx; |
| 78 | 79 | line-height: 38rpx; |
| 79 | - left: 6rpx; | |
| 80 | + left: 2rpx; | |
| 80 | 81 | padding: 4rpx 10rpx; |
| 81 | 82 | border-radius: 10rpx; |
| 82 | 83 | z-index: 999; | ... | ... |
packageA/pages/distribution/commision/commision.js
| ... | ... | @@ -10,7 +10,7 @@ Page({ |
| 10 | 10 | data: { |
| 11 | 11 | isHiddenDropdown: true,//控制下拉菜单显隐 |
| 12 | 12 | dropdownArr: ['综合','未付款','已付款','待分成','已分成','已取消'], |
| 13 | - statusArr: ['未付款', '已付款', '等待分成', '已分成', '已取消'], | |
| 13 | + statusArr: ['未付款', '已付款', '等待分成', '已分成', '已取消','已退款'], | |
| 14 | 14 | currentSelect: '',//记录当前下拉菜单选中项 |
| 15 | 15 | isInputFocus: false,//记录搜索输入框是否聚焦 |
| 16 | 16 | inputVal: '',//记录搜索输入框的内容 | ... | ... |
packageA/pages/distribution/commision/commision.wxml
| ... | ... | @@ -31,7 +31,7 @@ |
| 31 | 31 | <view class="item fs26" wx:for="{{list.pageData}}"> |
| 32 | 32 | <view class="flex jc_sb pd20 bdb"> |
| 33 | 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 | 35 | </view> |
| 36 | 36 | <view class="pd20"><text class="c-a fs24">订单号:</text>{{item.order_sn}}</view> |
| 37 | 37 | <view class="flex t-c"> | ... | ... |
packageC/pages/presell/goodsInfo/goodsInfo.js
| ... | ... | @@ -255,6 +255,8 @@ Page({ |
| 255 | 255 | pre_arr: null, |
| 256 | 256 | |
| 257 | 257 | hiddenCS: true, |
| 258 | + | |
| 259 | + is_retail_price: 0, | |
| 258 | 260 | }, |
| 259 | 261 | |
| 260 | 262 | //------初始化加载---------- |
| ... | ... | @@ -391,7 +393,8 @@ Page({ |
| 391 | 393 | store_config: e, |
| 392 | 394 | sys_switch: json_d, |
| 393 | 395 | is_closecoupon: json_d.is_closecoupon, |
| 394 | - is_newsales_rules: json_d.is_newsales_rules | |
| 396 | + is_newsales_rules: json_d.is_newsales_rules, | |
| 397 | + is_retail_price: json_d.is_retail_price || 0, | |
| 395 | 398 | }); |
| 396 | 399 | // ee.init(gid); |
| 397 | 400 | //------几人评价------- | ... | ... |
packageC/pages/presell/goodsInfo/goodsInfo.wxml
| ... | ... | @@ -80,10 +80,10 @@ |
| 80 | 80 | <!-- <view class="flex" style='height:40rpx; margin-top:5rpx;'> --> |
| 81 | 81 | <view class="abs xc-qt-price fs28 xc-qtsign">预售价</view> |
| 82 | 82 | <view class="abs flex presell_price"> |
| 83 | - <view class="fs28 val" style="margin-right:100rpx">¥{{presellList.presell_price}}</view> | |
| 84 | -<!-- <view class="word-line fs26 xc-qtunit-price">--> | |
| 85 | -<!-- 零售价¥{{filters.toFix(data.market_price,2)}}--> | |
| 86 | -<!-- </view>--> | |
| 83 | + <view class="fs28 val" style="margin-right:60rpx">¥{{presellList.presell_price}}</view> | |
| 84 | + <view wx:if="{{is_retail_price}}" class="word-line fs26 xc-qtunit-price"> | |
| 85 | + 零售价¥{{filters.toFix(data.market_price,2)}} | |
| 86 | + </view> | |
| 87 | 87 | </view> |
| 88 | 88 | |
| 89 | 89 | ... | ... |
utils/filter.wxs
| ... | ... | @@ -115,7 +115,7 @@ var filters = { |
| 115 | 115 | // num:状态数值, |
| 116 | 116 | // arr: 状态文字数组, |
| 117 | 117 | // 文字顺序必须跟状态数值对应 |
| 118 | - status: function (num, arr) { | |
| 118 | + status: function (num, arr,order_status) { | |
| 119 | 119 | // var text = ''; |
| 120 | 120 | // if(num == 0) { |
| 121 | 121 | // text = '未付款'; |
| ... | ... | @@ -126,6 +126,8 @@ var filters = { |
| 126 | 126 | // } else if(num == 3) { |
| 127 | 127 | // text = '已完成'; |
| 128 | 128 | // }; |
| 129 | + | |
| 130 | + if(order_status==6) return '已退款'; | |
| 129 | 131 | return arr[num]; |
| 130 | 132 | }, |
| 131 | 133 | ... | ... |