Commit 64abb759f9973ca41dbcba531706b6ad5feca228
1 parent
14a040bf
优化bug
Showing
2 changed files
with
2 additions
and
2 deletions
packageC/pages/group_list/group_list.wxml
| @@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
| 11 | </view> | 11 | </view> |
| 12 | <view class="mgl20 flex fdc f1 jc_sb"> | 12 | <view class="mgl20 flex fdc f1 jc_sb"> |
| 13 | <view> | 13 | <view> |
| 14 | - <view class="fs30">{{item.title}}</view> | 14 | + <view class="fs30">{{item.goods_name}}</view> |
| 15 | <view class="flex ai_c"> | 15 | <view class="flex ai_c"> |
| 16 | 16 | ||
| 17 | <view class="fs26 tag" wx:if="{{type == 1}}">{{item.rebate}}折</view> | 17 | <view class="fs26 tag" wx:if="{{type == 1}}">{{item.rebate}}折</view> |
pages/cart/cart/cart.js
| @@ -597,7 +597,7 @@ Page({ | @@ -597,7 +597,7 @@ Page({ | ||
| 597 | await getApp().request.promiseGet("/api/ms/flash_sale/getNew/" + os.stoid + '/' + user_id + "/" + item.prom_id, {}).then(res => { | 597 | await getApp().request.promiseGet("/api/ms/flash_sale/getNew/" + os.stoid + '/' + user_id + "/" + item.prom_id, {}).then(res => { |
| 598 | console.log('活动情况----------------') | 598 | console.log('活动情况----------------') |
| 599 | console.log(res) | 599 | console.log(res) |
| 600 | - if (res.data.code == 0) { | 600 | + if (res.data.code == 0 && res.data.data) { |
| 601 | prom = res.data.data; | 601 | prom = res.data.data; |
| 602 | prom.price = prom.user_price; | 602 | prom.price = prom.user_price; |
| 603 | } | 603 | } |