Commit b89084cd37462b4e5a4a09fd2cee5cbdd3caff72
1 parent
acf8914b
幸运大转盘中奖结果图片修改
Showing
2 changed files
with
7 additions
and
2 deletions
packageB/pages/luckactivity/luckinfo/luckinfo.js
| @@ -526,6 +526,7 @@ Page({ | @@ -526,6 +526,7 @@ Page({ | ||
| 526 | self.setData({ | 526 | self.setData({ |
| 527 | // 'luckInfo.user_LuckNumDay': self.data.luckInfo.user_LuckNumDay - 1, | 527 | // 'luckInfo.user_LuckNumDay': self.data.luckInfo.user_LuckNumDay - 1, |
| 528 | isActive: true, | 528 | isActive: true, |
| 529 | + wow: res.data.data, | ||
| 529 | }); | 530 | }); |
| 530 | // console.log('请求成功', res.data.data); | 531 | // console.log('请求成功', res.data.data); |
| 531 | let luckyId = res.data.data.id; | 532 | let luckyId = res.data.data.id; |
| @@ -612,7 +613,7 @@ Page({ | @@ -612,7 +613,7 @@ Page({ | ||
| 612 | }, | 613 | }, |
| 613 | end (event) { | 614 | end (event) { |
| 614 | // 中奖奖品详情 | 615 | // 中奖奖品详情 |
| 615 | - // console.log('zjiangla~~',event.detail.lbtype); | 616 | + console.log('00000000~',event.detail.lbtype); |
| 616 | let no_luck_urltype = this.data.luckInfo.no_luck_urltype; | 617 | let no_luck_urltype = this.data.luckInfo.no_luck_urltype; |
| 617 | let lbtype; | 618 | let lbtype; |
| 618 | let resultTitle = event.detail.fonts[0].text.replace('\n',''); | 619 | let resultTitle = event.detail.fonts[0].text.replace('\n',''); |
packageB/pages/luckactivity/luckinfo/luckinfo.wxml
| @@ -170,7 +170,11 @@ | @@ -170,7 +170,11 @@ | ||
| 170 | <block wx:else> | 170 | <block wx:else> |
| 171 | <view class="bold c-tb fs40">恭喜你获得</view> | 171 | <view class="bold c-tb fs40">恭喜你获得</view> |
| 172 | <view class="pdt10">{{resultTitle}} </view> | 172 | <view class="pdt10">{{resultTitle}} </view> |
| 173 | - <view class="img-container2"><image src="{{imghost + 'miniapp/images/luckDraw/gift.png'}}" class="img" mode="aspectFit"></image></view> | 173 | + <view class="img-container2"> |
| 174 | + <!-- <image src="{{imghost + 'miniapp/images/luckDraw/gift.png'}}" class="img" mode="aspectFit"></image> --> | ||
| 175 | + <image wx:if="{{wow.luck_goods_img}}" src="{{imghost + wow.luck_goods_img}}" class="img" mode="aspectFit"></image> | ||
| 176 | + <image src="{{imghost + tool.showDefaultImg(wow.lbtype)}}" class="img" mode="aspectFit" wx:else></image> | ||
| 177 | + </view> | ||
| 174 | </block> | 178 | </block> |
| 175 | </view> | 179 | </view> |
| 176 | 180 |