Commit 36b0c8cc96eeb07365c3faa8f43a533351b33f74
1 parent
6984e5ef
服务卡项的优化
Showing
4 changed files
with
23 additions
and
9 deletions
packageA/pages/goodsInfo/goodsInfo.wxml
@@ -109,13 +109,24 @@ | @@ -109,13 +109,24 @@ | ||
109 | 109 | ||
110 | <view class="flex jc_sb"> | 110 | <view class="flex jc_sb"> |
111 | <view> | 111 | <view> |
112 | - <!-- 秒杀价 --> | ||
113 | - <view class="co-red" wx:if="{{options.prom_type == 1}}"><text class="rel yuan fs28">¥</text>{{filters.toFix(prom_price,2)}}</view> | ||
114 | - <!-- 手店价 --> | ||
115 | - <view class="co-red" wx:else><text class="rel yuan fs28">¥</text>{{filters.toFix(data.shop_price,2)}}</view> | ||
116 | - <!-- <view class="word-line fs20 xc-qtunit-price"> | ||
117 | - 零售价¥{{filters.toFix(data.market_price,2)}} | ||
118 | - </view> --> | 112 | + <view class="flex" style="align-items: baseline;"> |
113 | + <!-- 秒杀价 --> | ||
114 | + <view class="co-red" wx:if="{{options.prom_type == 1}}"><text class="rel yuan fs28">¥</text>{{filters.toFix(prom_price,2)}}</view> | ||
115 | + <!-- 手店价 --> | ||
116 | + <view class="co-red" wx:else><text class="rel yuan fs28">¥</text>{{filters.toFix(data.shop_price,2)}}</view> | ||
117 | + <view wx:if="{{options.prom_type == 1}}" class="word-line no_line_x fs20 xc-qtunit-price"> | ||
118 | + <block wx:if="{{sys_switch.is_retail_price}}"> | ||
119 | + ¥{{filters.toFix(data.show_price,2)}} | ||
120 | + </block> | ||
121 | + <block wx:else> | ||
122 | + ¥{{filters.toFix(data.shop_price,2)}} | ||
123 | + </block> | ||
124 | + </view> | ||
125 | + | ||
126 | + </view> | ||
127 | + | ||
128 | + | ||
129 | + | ||
119 | <view class="goods-title"> | 130 | <view class="goods-title"> |
120 | <view class="goods-name elli">{{data.goods_name}}</view> | 131 | <view class="goods-name elli">{{data.goods_name}}</view> |
121 | </view> | 132 | </view> |
packageG/pages/group_buy/goodsInfo/goodsInfo.js
@@ -254,6 +254,7 @@ Page({ | @@ -254,6 +254,7 @@ Page({ | ||
254 | var gid_str = decodeURIComponent(t.scene); | 254 | var gid_str = decodeURIComponent(t.scene); |
255 | gid_str = gid_str.split("_"); | 255 | gid_str = gid_str.split("_"); |
256 | gid = gid_str[0]; | 256 | gid = gid_str[0]; |
257 | + this.data.options.goods_id=gid; | ||
257 | if (gid_str.length > 1 && gid_str[1] && parseInt(gid_str[1]) > 0) { | 258 | if (gid_str.length > 1 && gid_str[1] && parseInt(gid_str[1]) > 0) { |
258 | first_leader = gid_str[1]; | 259 | first_leader = gid_str[1]; |
259 | } | 260 | } |
packageG/pages/group_buy/goodsInfo/goodsInfo.wxml
@@ -83,7 +83,7 @@ | @@ -83,7 +83,7 @@ | ||
83 | 83 | ||
84 | <view class="abs flex fs36" style="align-items:flex-end;color: #fff; margin-top: 34rpx; margin-left: 10rpx; height: 60rpx">¥{{prom_price}} | 84 | <view class="abs flex fs36" style="align-items:flex-end;color: #fff; margin-top: 34rpx; margin-left: 10rpx; height: 60rpx">¥{{prom_price}} |
85 | 85 | ||
86 | - <view wx:if="{{is_retail_price}}" class="word-line fs24 no_line_c" style="margin-left: 10rpx;position: relative;top: -6rpx; color:#fff !important">零售价:¥{{filters.toFix(data.show_price,2)}}</view> | 86 | + <view wx:if="{{sys_switch.is_retail_price}}" class="word-line fs24 no_line_c" style="margin-left: 10rpx;position: relative;top: -6rpx; color:#fff !important">零售价:¥{{filters.toFix(data.show_price,2)}}</view> |
87 | <view wx:else class="word-line no_line_x fs24" style="margin-left: 10rpx;position: relative;top: -6rpx;color:#fff !important">¥{{filters.toFix(data.shop_price,2)}}</view> | 87 | <view wx:else class="word-line no_line_x fs24" style="margin-left: 10rpx;position: relative;top: -6rpx;color:#fff !important">¥{{filters.toFix(data.shop_price,2)}}</view> |
88 | </view> | 88 | </view> |
89 | 89 |
pages/cart/cart/cart.js
@@ -1075,10 +1075,12 @@ Page({ | @@ -1075,10 +1075,12 @@ Page({ | ||
1075 | store_id: os.stoid, | 1075 | store_id: os.stoid, |
1076 | user_id: user_id, | 1076 | user_id: user_id, |
1077 | card_id: prom.goods_id, | 1077 | card_id: prom.goods_id, |
1078 | + prom_type: item.prom_type, | ||
1079 | + prom_id: item.prom_id | ||
1078 | } | 1080 | } |
1079 | }).then(res => { | 1081 | }).then(res => { |
1080 | if (res.data.code == 0) { | 1082 | if (res.data.code == 0) { |
1081 | - msNum = res.data.data.cardbuynum | 1083 | + msNum = res.data.data.promcardbuynum, |
1082 | console.log('秒杀限购:' + msNum) | 1084 | console.log('秒杀限购:' + msNum) |
1083 | } | 1085 | } |
1084 | }) | 1086 | }) |