Commit 2b6759eb275d90aef4aedc59ee9b6c21da2d7960
Merge branch 'dev_oa_lou' into dev
Showing
7 changed files
with
20 additions
and
1 deletions
app.json
@@ -53,6 +53,7 @@ | @@ -53,6 +53,7 @@ | ||
53 | "pages/giftpack/payment/payment", | 53 | "pages/giftpack/payment/payment", |
54 | "pages/giftpack/buygiftpack/giftpackbuy", | 54 | "pages/giftpack/buygiftpack/giftpackbuy", |
55 | "pages/giftpack/giftpacklist/giftpacklist", | 55 | "pages/giftpack/giftpacklist/giftpacklist", |
56 | + "pages/giftpack/giftpacklistshop/giftpacklistshop", | ||
56 | "pages/giftpack/mygiftpack/mygiftpack", | 57 | "pages/giftpack/mygiftpack/mygiftpack", |
57 | "pages/user/assistance/giftpacklist", | 58 | "pages/user/assistance/giftpacklist", |
58 | "pages/user/assistance/task_assistance", | 59 | "pages/user/assistance/task_assistance", |
packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.wxml
@@ -65,6 +65,7 @@ | @@ -65,6 +65,7 @@ | ||
65 | <!-----商品名称规格------> | 65 | <!-----商品名称规格------> |
66 | <view class="order-num flex-space-between"> | 66 | <view class="order-num flex-space-between"> |
67 | <view class="co-red">¥<text class="fs36">{{filters.toFix(param.goods_price,2)}}</text></view> | 67 | <view class="co-red">¥<text class="fs36">{{filters.toFix(param.goods_price,2)}}</text></view> |
68 | + <view style="color: red;" wx:if="{{bn_goods.use_commission && bn_goods.use_commission*1>0}}">佣金:{{filters.toFix(bn_goods.use_commission/bn_goods.buynum,2)}}*{{bn_goods.buynum}}</view> | ||
68 | <view class="goods-num">x{{bn_goods.buynum}}</view> | 69 | <view class="goods-num">x{{bn_goods.buynum}}</view> |
69 | </view> | 70 | </view> |
70 | </navigator> | 71 | </navigator> |
packageC/pages/presell/cart/cart2_pre.wxml
@@ -58,6 +58,7 @@ | @@ -58,6 +58,7 @@ | ||
58 | <!-----商品名称规格------> | 58 | <!-----商品名称规格------> |
59 | <view class="order-num flex-space-between"> | 59 | <view class="order-num flex-space-between"> |
60 | <view class="co-red">¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view> | 60 | <view class="co-red">¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view> |
61 | + <view style="color: red;" wx:if="{{bn_goods.use_commission && bn_goods.use_commission*1>0}}">佣金:{{filters.toFix(bn_goods.use_commission/bn_goods.buynum,2)}}*{{bn_goods.buynum}}</view> | ||
61 | <view class="goods-num">x{{bn_goods.buynum}}</view> | 62 | <view class="goods-num">x{{bn_goods.buynum}}</view> |
62 | </view> | 63 | </view> |
63 | </navigator> | 64 | </navigator> |
packageE/pages/cart/cart2/cart2.js
@@ -1072,6 +1072,15 @@ Page({ | @@ -1072,6 +1072,15 @@ Page({ | ||
1072 | prom_type: item[c].prom_type, | 1072 | prom_type: item[c].prom_type, |
1073 | prom_id: item[c].prom_id, | 1073 | prom_id: item[c].prom_id, |
1074 | } | 1074 | } |
1075 | + let req_d1 = { | ||
1076 | + user_id: getApp().globalData.user_id, goods_ids: [hr], store_id: os.stoid | ||
1077 | + } | ||
1078 | + | ||
1079 | + await getApp().request.promisePost("/api/weshop/order/getrebateSum", { | ||
1080 | + is_json: 1, data: req_d1 | ||
1081 | + }).then(grs => { | ||
1082 | + if (grs.data.code == 0) item[c].use_commission = grs.data.data; | ||
1083 | + }); | ||
1075 | commission_gds.push(hr); | 1084 | commission_gds.push(hr); |
1076 | } | 1085 | } |
1077 | if (th.data.sales_rules != 2) { | 1086 | if (th.data.sales_rules != 2) { |
@@ -1088,7 +1097,7 @@ Page({ | @@ -1088,7 +1097,7 @@ Page({ | ||
1088 | c_item.offline_num = offline_num; | 1097 | c_item.offline_num = offline_num; |
1089 | c_item.is_offline = 1; | 1098 | c_item.is_offline = 1; |
1090 | } | 1099 | } |
1091 | - | 1100 | + |
1092 | //获取购物车的佣金,此处要优化调用接口,获取佣金 | 1101 | //获取购物车的佣金,此处要优化调用接口,获取佣金 |
1093 | var req_d = { | 1102 | var req_d = { |
1094 | user_id: getApp().globalData.user_id, goods_ids: commission_gds, store_id: os.stoid | 1103 | user_id: getApp().globalData.user_id, goods_ids: commission_gds, store_id: os.stoid |
@@ -1097,6 +1106,7 @@ Page({ | @@ -1097,6 +1106,7 @@ Page({ | ||
1097 | await getApp().request.promisePost("/api/weshop/order/getrebateSum", { | 1106 | await getApp().request.promisePost("/api/weshop/order/getrebateSum", { |
1098 | is_json: 1, data: req_d | 1107 | is_json: 1, data: req_d |
1099 | }).then(rs => { | 1108 | }).then(rs => { |
1109 | + | ||
1100 | if (rs.data.code == 0) back_data = rs.data.data; | 1110 | if (rs.data.code == 0) back_data = rs.data.data; |
1101 | }); | 1111 | }); |
1102 | 1112 |
packageE/pages/cart/cart2/cart2.wxml
@@ -103,6 +103,7 @@ | @@ -103,6 +103,7 @@ | ||
103 | <view class="order-num flex-space-between"> | 103 | <view class="order-num flex-space-between"> |
104 | <view wx:if="{{items.prom_type==10}}" class="co-red">¥<text class="fs36">{{filters.toFix(items.goods_price,2)}}</text><text>({{items.discount}}折)</text></view> | 104 | <view wx:if="{{items.prom_type==10}}" class="co-red">¥<text class="fs36">{{filters.toFix(items.goods_price,2)}}</text><text>({{items.discount}}折)</text></view> |
105 | <view wx:else class="co-red">¥<text class="fs36">{{filters.toFix(items.goods_price,2)}}</text></view> | 105 | <view wx:else class="co-red">¥<text class="fs36">{{filters.toFix(items.goods_price,2)}}</text></view> |
106 | + <view style="color: red;" wx:if="{{items.use_commission && items.use_commission*1>0}}">佣金:{{filters.toFix(items.use_commission/items.goods_num,2)}}*{{items.goods_num}}</view> | ||
106 | <view class="goods-num">x{{items.goods_num}}</view> | 107 | <view class="goods-num">x{{items.goods_num}}</view> |
107 | </view> | 108 | </view> |
108 | </navigator> | 109 | </navigator> |
@@ -333,6 +334,7 @@ | @@ -333,6 +334,7 @@ | ||
333 | <!-- ---商品名称规格---- --> | 334 | <!-- ---商品名称规格---- --> |
334 | <view class="order-num flex-space-between"> | 335 | <view class="order-num flex-space-between"> |
335 | <view class="co-red">¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view> | 336 | <view class="co-red">¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view> |
337 | + <view style="color: red;" wx:if="{{bn_goods.use_commission && bn_goods.use_commission*1>0}}">佣金:{{filters.toFix(bn_goods.use_commission/bn_goods.buynum,2)}}*{{bn_goods.buynum}}</view> | ||
336 | <view class="goods-num">x{{bn_goods.buynum}}</view> | 338 | <view class="goods-num">x{{bn_goods.buynum}}</view> |
337 | </view> | 339 | </view> |
338 | </navigator> | 340 | </navigator> |
pages/cart/cart2_inte/cart2_inte.wxml
@@ -81,6 +81,8 @@ | @@ -81,6 +81,8 @@ | ||
81 | <text wx:if="{{bn_goods.integral && bn_goods.shop_price}}">+</text> | 81 | <text wx:if="{{bn_goods.integral && bn_goods.shop_price}}">+</text> |
82 | <block wx:if="{{bn_goods.shop_price}}"> ¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></block> | 82 | <block wx:if="{{bn_goods.shop_price}}"> ¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></block> |
83 | </view> | 83 | </view> |
84 | + <view style="color: red;" wx:if="{{bn_goods.use_commission && bn_goods.use_commission*1>0}}">佣金:{{filters.toFix(bn_goods.use_commission/bn_goods.buynum,2)}}*{{bn_goods.buynum}}</view> | ||
85 | + | ||
84 | <view class="goods-num">x{{bn_goods.buynum}}</view> | 86 | <view class="goods-num">x{{bn_goods.buynum}}</view> |
85 | </view> | 87 | </view> |
86 | </navigator> | 88 | </navigator> |
pages/cart/cart2_pt/cart2_pt.wxml
@@ -65,6 +65,8 @@ | @@ -65,6 +65,8 @@ | ||
65 | <!-----商品名称规格------> | 65 | <!-----商品名称规格------> |
66 | <view class="order-num flex-space-between"> | 66 | <view class="order-num flex-space-between"> |
67 | <view class="co-red">¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view> | 67 | <view class="co-red">¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view> |
68 | + <view style="color: red;" wx:if="{{bn_goods.use_commission && bn_goods.use_commission*1>0}}">佣金:{{filters.toFix(bn_goods.use_commission/bn_goods.buynum,2)}}*{{bn_goods.buynum}}</view> | ||
69 | + | ||
68 | <view class="goods-num">x{{bn_goods.buynum}}</view> | 70 | <view class="goods-num">x{{bn_goods.buynum}}</view> |
69 | </view> | 71 | </view> |
70 | </navigator> | 72 | </navigator> |