Commit 381820de9d2243be104bb58f1d2ef6d84188e414
Merge branch 'qa' of http://git.vipzhuang.cn/wxd/MShopWeApp
Showing
24 changed files
with
65 additions
and
36 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 | } |
... | ... | @@ -89,7 +89,7 @@ Component({ |
89 | 89 | no_gid_set(){ |
90 | 90 | var th=this; |
91 | 91 | var user_id=getApp().globalData.user_id; |
92 | - var pre_data={store_id:os.stoid,is_end:0,timetype:1,isuse:1,page:1,pageSize:9}; | |
92 | + var pre_data={store_id:os.stoid,is_end:0,timetype:3,isuse:1,page:1,pageSize:9}; | |
93 | 93 | if(user_id){ |
94 | 94 | pre_data.user_id=user_id; |
95 | 95 | } | ... | ... |
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: #fdcb08">即将开始</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> |
... | ... | @@ -111,6 +118,14 @@ |
111 | 118 | </block> |
112 | 119 | |
113 | 120 | |
121 | + <block wx:if="{{aitem.start_time>newTime}}"> | |
122 | + <view class="rob"> | |
123 | + <view class="wo" style="background-color: #fdcb08">即将开始</view> | |
124 | + </view> | |
125 | + </block> | |
126 | + | |
127 | + | |
128 | + | |
114 | 129 | </view> |
115 | 130 | </view> |
116 | 131 | </navigator> | ... | ... |
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; | ... | ... |
components/diy_searchbox/diy_searchbox.js
components/diy_searchbox/diy_searchbox.wxml
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | <view bindtap='click_sear' class="s1_gk_a1" wx:if="{{first}}"> |
7 | 7 | <view class='s_ge'> |
8 | 8 | <image src='{{imghost}}/miniapp/images/search.png'></image> |
9 | - <text>在店铺内搜索</text> | |
9 | + <text>请输入商品关键字</text> | |
10 | 10 | </view> |
11 | 11 | </view> |
12 | 12 | <!-- 响应搜索事件 --> |
... | ... | @@ -39,7 +39,7 @@ |
39 | 39 | <view class='s2_cen' style='background-color:{{object.inner_bgcolor}}'> |
40 | 40 | <navigator wx:if="{{first}}" bindtap='click_sear' class="s1_gk_a2 flex" style='height: 100%;color:{{object.word_color?object.word_color:"#fff"}}'> |
41 | 41 | <text class="iconfont icon-search" style="font-size: 40rpx;"></text> |
42 | - <text>在店铺内搜索</text> | |
42 | + <text>请输入商品关键字</text> | |
43 | 43 | </navigator> |
44 | 44 | <view wx:else class="s1_gk_a2" style='color:{{object.word_color?object.word_color:"#fff"}}'> |
45 | 45 | <!-- <view class="pr"> --> | ... | ... |
packageA/pages/cardList/cardList.wxml
... | ... | @@ -16,7 +16,7 @@ |
16 | 16 | <view class="flex fdc space-bt f1 pdl20"> |
17 | 17 | <view> |
18 | 18 | <view class="pdv20 fs28"><text class="ellipsis-2">{{item.serviceName}}</text></view> |
19 | - <view class="fs24 c7b">有效天数:{{item.validDays?item.validDays:0}}</view> | |
19 | + <view class="fs24 c7b">有效天数:{{item.validDays && item.validDays!='0'?item.validDays:'不限'}}</view> | |
20 | 20 | </view> |
21 | 21 | <view class="flex space-bt ali-c"> |
22 | 22 | <view class="price">{{item.money}}</view> |
... | ... | @@ -40,7 +40,7 @@ |
40 | 40 | <view class="flex fdc space-bt f1 pdl20"> |
41 | 41 | <view> |
42 | 42 | <view class="pdv20 fs28"><text class="ellipsis-2">{{item.serviceName}}</text></view> |
43 | - <view class="fs24 c7b">有效天数:{{item.validDays?item.validDays:'不限'}}</view> | |
43 | + <view class="fs24 c7b">有效天数:{{item.validDays && item.validDays!='0'?item.validDays:'不限'}}</view> | |
44 | 44 | </view> |
45 | 45 | <view class="flex space-bt ali-c"> |
46 | 46 | <view class="price">{{item.money}}</view> |
... | ... | @@ -73,7 +73,7 @@ |
73 | 73 | <view class="flex fdc space-bt f1 pdl20"> |
74 | 74 | <view> |
75 | 75 | <view class="pdv20 fs28"><text class="ellipsis-2">{{item.serviceName}}</text></view> |
76 | - <view class="fs24 c7b">有效天数:{{item.validDays?item.validDays:0}}</view> | |
76 | + <view class="fs24 c7b">有效天数:{{item.validDays && item.validDays!='0'?item.validDays:'不限'}}</view> | |
77 | 77 | </view> |
78 | 78 | <view class="flex space-bt ali-c"> |
79 | 79 | <view class="price">{{item.money}}</view> | ... | ... |
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"> | ... | ... |
packageA/pages/distribution/order/order.wxml
... | ... | @@ -12,7 +12,7 @@ |
12 | 12 | <text class="iconfont icon-ren" wx:else></text> |
13 | 13 | <text class="pdl10">{{item.nickname}}</text> |
14 | 14 | </view> |
15 | - <view class="c-a">{{filter.status(item.status, statusArr)}}</view> | |
15 | + <view class="c-a">{{filter.status(item.status, statusArr,item.order_status)}}</view> | |
16 | 16 | </view> |
17 | 17 | <view class="flex jc_sb ai-center pd20" wx:for="{{item.goods}}" wx:for-item="it" bindtap="goto" data-url="{{'/pages/goods/goodsInfo/goodsInfo?goods_id=' + it.goods_id}}"> |
18 | 18 | <view class="flex pdr20"> | ... | ... |
packageA/pages/jfbuy/jfbuy.js
... | ... | @@ -372,7 +372,10 @@ Page({ |
372 | 372 | |
373 | 373 | // var req_data = { |
374 | 374 | // page:th.data.currentPage2 |
375 | - // } | |
375 | + // } | |
376 | + if (getApp().globalData.user_id) { | |
377 | + data.user_id=getApp().globalData.user_id | |
378 | + } | |
376 | 379 | |
377 | 380 | app.request.promiseGet("/api/weshop/integralbuy/pageIntegralBuyGoodsList", { |
378 | 381 | data: data | ... | ... |
packageC/pages/goods/search/search.wxml
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | <view class="search-modal"> |
4 | 4 | <view class="search-bar"> |
5 | 5 | <form bindsubmit="submitSearch"> |
6 | - <input autoFocus class="search-input" name="word" placeholder="搜索商品" bindconfirm="submitSearch" bindinput="getInput"></input> | |
6 | + <input autoFocus class="search-input" name="word" placeholder="请输入商品关键字" bindconfirm="submitSearch" bindinput="getInput"></input> | |
7 | 7 | <button class="search-btn" formType="submit"> |
8 | 8 | <image class="wh100 search-img" src="{{url}}/miniapp/images/sea.png"></image> |
9 | 9 | </button> | ... | ... |
packageC/pages/presell/cart/cart.js
... | ... | @@ -2670,7 +2670,7 @@ Page({ |
2670 | 2670 | |
2671 | 2671 | if (gg.prom_type == 4) { |
2672 | 2672 | await getApp().request.promiseGet("/api/weshop/integralbuy/pageIntegralBuyGoodsList?stype=1&stypeup=1", { |
2673 | - data: { store_id: os.stoid, goods_id: gg.goods_id } | |
2673 | + data: { store_id: os.stoid, goods_id: gg.goods_id,user_id: getApp().globalData.user_id, } | |
2674 | 2674 | }).then(res => { |
2675 | 2675 | if (res.data.code == 0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length) { |
2676 | 2676 | prom = res.data.data.pageData[0]; |
... | ... | @@ -2765,7 +2765,7 @@ Page({ |
2765 | 2765 | |
2766 | 2766 | if (goodsinfo.prom_type == 4 && !good.is_integral_normal) { |
2767 | 2767 | await getApp().request.promiseGet("/api/weshop/integralbuy/pageIntegralBuyGoodsList?stype=1&stypeup=1", { |
2768 | - data: { store_id: os.stoid, goods_id: goodsinfo.goods_id } | |
2768 | + data: { store_id: os.stoid, goods_id: goodsinfo.goods_id,user_id: getApp().globalData.user_id, } | |
2769 | 2769 | }).then(res => { |
2770 | 2770 | if (res.data.code == 0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length) { |
2771 | 2771 | prom = res.data.data.pageData[0]; | ... | ... |
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 | ... | ... |
packageD/pages/shop/order_detail/order_detail.js
... | ... | @@ -535,7 +535,7 @@ Page({ |
535 | 535 | |
536 | 536 | if(gg.prom_type==4){ |
537 | 537 | await getApp().request.promiseGet("/api/weshop/integralbuy/pageIntegralBuyGoodsList?stype=1&stypeup=1&timetype=2",{ |
538 | - data:{store_id:os.stoid,goods_id:gg.goods_id} | |
538 | + data:{store_id:os.stoid,goods_id:gg.goods_id,user_id: getApp().globalData.user_id,} | |
539 | 539 | }).then(res=>{ |
540 | 540 | if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length){ |
541 | 541 | prom=res.data.data.pageData[0]; |
... | ... | @@ -659,7 +659,7 @@ Page({ |
659 | 659 | |
660 | 660 | if(goodsinfo.prom_type==4 && !good.is_integral_normal){ |
661 | 661 | await getApp().request.promiseGet("/api/weshop/integralbuy/pageIntegralBuyGoodsList?stype=1&stypeup=1&timetype=2",{ |
662 | - data:{store_id:os.stoid,goods_id:goodsinfo.goods_id} | |
662 | + data:{store_id:os.stoid,goods_id:goodsinfo.goods_id,user_id: getApp().globalData.user_id,} | |
663 | 663 | }).then(res=>{ |
664 | 664 | if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length){ |
665 | 665 | prom=res.data.data.pageData[0]; | ... | ... |
packageE/pages/cart/cart2/cart2.js
... | ... | @@ -6797,6 +6797,7 @@ Page({ |
6797 | 6797 | item.goods_price = item.price; |
6798 | 6798 | item.is_collocation = 1; |
6799 | 6799 | item.prom_type = 5; |
6800 | + item.is_post_temp = 1; | |
6800 | 6801 | |
6801 | 6802 | |
6802 | 6803 | th.setData({is_coupon:item.is_coupon}) |
... | ... | @@ -6914,6 +6915,7 @@ Page({ |
6914 | 6915 | item.goods_price = item.price; |
6915 | 6916 | item.prom_type = 5; |
6916 | 6917 | item.is_collocation = 1; |
6918 | + item.is_post_temp = 1; | |
6917 | 6919 | |
6918 | 6920 | goods.push(item); |
6919 | 6921 | |
... | ... | @@ -6946,6 +6948,8 @@ Page({ |
6946 | 6948 | var et = 1; |
6947 | 6949 | var distr_t = 0; // 配送方式 0=用户自选 1=自提 2=物流 |
6948 | 6950 | for (var hi in narr) { |
6951 | + | |
6952 | + narr[hi].is_post_temp=1; //-- 固定都是参与包邮模板 -- | |
6949 | 6953 | var dis_t = narr[hi].distr_type; |
6950 | 6954 | if (dis_t == 2) { |
6951 | 6955 | th.setData({ is_all_zt: 0 }); | ... | ... |
pages/cart/cart2_inte/cart2_inte.js
... | ... | @@ -540,7 +540,7 @@ Page({ |
540 | 540 | break; |
541 | 541 | case 4: //-- 积分购 -- |
542 | 542 | getApp().request.get("/api/weshop/integralbuy/pageIntegralBuyGoodsList?stype=1&stypeup=1&timetype=2", { |
543 | - data: { store_id: os.stoid, goods_id: gg.goods_id }, | |
543 | + data: { store_id: os.stoid, goods_id: gg.goods_id, user_id: to.globalData.user_id, }, | |
544 | 544 | success: async function (tt) { |
545 | 545 | if (tt.data.code == 0 && tt.data.data && tt.data.data.pageData) { |
546 | 546 | var inte_data = tt.data.data.pageData[0]; | ... | ... |
pages/goods/categoryList/categoryList.wxml
... | ... | @@ -131,11 +131,11 @@ |
131 | 131 | <view class="search-img left"> |
132 | 132 | <image class="wh100" src="{{iurl}}/miniapp/images/search.png"></image> |
133 | 133 | </view> |
134 | - <input bindfocus="goseach" class="search-cont" placeholder="搜索店铺商品" type="text"></input> | |
134 | + <input bindfocus="goseach" class="search-cont" placeholder="输入商品关键字" type="text"></input> | |
135 | 135 | </view> --> |
136 | 136 | <!-- 搜索框 --> |
137 | 137 | <view class="search-container f1"> |
138 | - <view bindtap="goseach"><text class="iconfont icon-sousuo pdr10"></text>搜索店铺商品</view> | |
138 | + <view bindtap="goseach"><text class="iconfont icon-sousuo pdr10"></text>输入商品关键字</view> | |
139 | 139 | </view> |
140 | 140 | <view class="pdl30" bindtap="getScancode"> |
141 | 141 | <image class="scanning_black-img" src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image> |
... | ... | @@ -398,7 +398,7 @@ |
398 | 398 | |
399 | 399 | <!-- 搜索框 --> |
400 | 400 | <view class="search-container f1"> |
401 | - <view bindtap="goseach"><text class="iconfont icon-sousuo pdr10"></text>搜索店铺商品</view> | |
401 | + <view bindtap="goseach"><text class="iconfont icon-sousuo pdr10"></text>请输入商品关键字</view> | |
402 | 402 | </view> |
403 | 403 | <view class="pdl30" bindtap="getScancode"> |
404 | 404 | <image class="scanning_black-img" src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image> | ... | ... |
pages/goods/goodsInfo/goodsInfo.js
pages/goods/goodsList/goodsList.wxml
... | ... | @@ -21,7 +21,7 @@ |
21 | 21 | <view class="pd20 flex ai-center jc_sb search_fixed"> |
22 | 22 | <!-- 搜索框 --> |
23 | 23 | <view class="search-box f1"> |
24 | - <view hover-class="none" data-url="/pages/goods/search/search?ladder_id={{ladder_id}}" bindtap="go_url"><text class="iconfont icon-sousuo pdr10"></text>搜索店铺商品</view> | |
24 | + <view hover-class="none" data-url="/pages/goods/search/search?ladder_id={{ladder_id}}" bindtap="go_url"><text class="iconfont icon-sousuo pdr10"></text>请输入商品关键字</view> | |
25 | 25 | </view> |
26 | 26 | <!-- 单列/双列 显示切换 --> |
27 | 27 | <text class="iconfont {{isToggle ? 'icon-fenlie':'icon-fenxiang'}} pdl30 fs36" bindtap="bindToggleDisplay"></text> | ... | ... |
pages/index/index/index.wxml
... | ... | @@ -39,7 +39,7 @@ |
39 | 39 | <view class="search-img"> |
40 | 40 | <image class="wh100" src="{{url}}/miniapp/images/search.png"></image> |
41 | 41 | </view> |
42 | - <input bindtap="jumpSearch" class="search-cont" placeholder="搜索商品" type="text" disabled /> | |
42 | + <input bindtap="jumpSearch" class="search-cont" placeholder="请输入商品关键字" type="text" disabled /> | |
43 | 43 | </view> |
44 | 44 | <view class="classify-frame t-c" bindtap="getScancode"> |
45 | 45 | <image class="classify-img" src="{{url}}/miniapp/images/scanning.png"></image> | ... | ... |
pages/user/order_detail/order_detail.js
... | ... | @@ -585,7 +585,7 @@ Page({ |
585 | 585 | |
586 | 586 | if(gg.prom_type==4){ |
587 | 587 | await getApp().request.promiseGet("/api/weshop/integralbuy/pageIntegralBuyGoodsList?stype=1&stypeup=1&timetype=2",{ |
588 | - data:{store_id:os.stoid,goods_id:gg.goods_id} | |
588 | + data:{store_id:os.stoid,goods_id:gg.goods_id,user_id: getApp().globalData.user_id,} | |
589 | 589 | }).then(res=>{ |
590 | 590 | if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length){ |
591 | 591 | prom=res.data.data.pageData[0]; |
... | ... | @@ -709,7 +709,7 @@ Page({ |
709 | 709 | |
710 | 710 | if(goodsinfo.prom_type==4 && !good.is_integral_normal){ |
711 | 711 | await getApp().request.promiseGet("/api/weshop/integralbuy/pageIntegralBuyGoodsList?stype=1&stypeup=1&timetype=2",{ |
712 | - data:{store_id:os.stoid,goods_id:goodsinfo.goods_id} | |
712 | + data:{store_id:os.stoid,goods_id:goodsinfo.goods_id,user_id: getApp().globalData.user_id,} | |
713 | 713 | }).then(res=>{ |
714 | 714 | if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length){ |
715 | 715 | prom=res.data.data.pageData[0]; | ... | ... |
pages/user/order_list/order_list.js
... | ... | @@ -651,7 +651,7 @@ Page({ |
651 | 651 | var order = e; |
652 | 652 | var order_goods = e.order_goods; |
653 | 653 | var user_id = getApp().globalData.userInfo.user_id; |
654 | - | |
654 | + | |
655 | 655 | //如果使用预存的话,要重新效验下预存金额是否足够 |
656 | 656 | if(order.pre_cut && order.pre_json){ |
657 | 657 | let pickup_id=order.pickup_id |
... | ... | @@ -976,7 +976,7 @@ Page({ |
976 | 976 | |
977 | 977 | if (gg.prom_type == 4) { |
978 | 978 | await getApp().request.promiseGet("/api/weshop/integralbuy/pageIntegralBuyGoodsList?stype=1&stypeup=1&timetype=2", { |
979 | - data: { store_id: os.stoid, goods_id: gg.goods_id } | |
979 | + data: { store_id: os.stoid, goods_id: gg.goods_id,user_id: getApp().globalData.user_id, } | |
980 | 980 | }).then(res => { |
981 | 981 | if (res.data.code == 0 && res.data.data && res.data.data.pageData) { |
982 | 982 | prom = res.data.data.pageData[0]; |
... | ... | @@ -1097,7 +1097,7 @@ Page({ |
1097 | 1097 | |
1098 | 1098 | if (goodsinfo.prom_type == 4 && !good.is_integral_normal) { |
1099 | 1099 | await getApp().request.promiseGet("/api/weshop/integralbuy/pageIntegralBuyGoodsList?stype=1&stypeup=1&timetype=2", { |
1100 | - data: { store_id: os.stoid, goods_id: goodsinfo.goods_id } | |
1100 | + data: { store_id: os.stoid, goods_id: goodsinfo.goods_id,user_id: getApp().globalData.user_id, } | |
1101 | 1101 | }).then(res => { |
1102 | 1102 | if (res.data.code == 0 && res.data.data && res.data.data.pageData) { |
1103 | 1103 | prom = res.data.data.pageData[0]; | ... | ... |
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 | ... | ... |