Commit 055076b4df4317d08773afbd114c28d4abcba991
1 parent
92e56176
打转盘礼包详情的优化
Showing
3 changed files
with
14 additions
and
3 deletions
packageB/pages/luckactivity/luckinfo/luckinfo.wxml
| ... | ... | @@ -50,7 +50,7 @@ |
| 50 | 50 | <view class="list-item" wx:for="{{award}}"> |
| 51 | 51 | <view class="img-container"> |
| 52 | 52 | <image wx:if="{{item.luck_goods_img}}" src="{{imghost + item.luck_goods_img}}" class="img" mode="aspectFit"></image> |
| 53 | - <image src="{{imghost + tool.showDefaultImg(item.lbtype)}}" class="img" mode="aspectFit" wx:else></image> | |
| 53 | + <image src="{{imghost + tool.showDefaultImg(item.lbtype)}}" class="img {{item.lbtype==7?'small_set':''}} " mode="aspectFit" wx:else></image> | |
| 54 | 54 | </view> |
| 55 | 55 | <view class="item-r"> |
| 56 | 56 | <view class="fs28">{{item.luck_goods_name}}</view> |
| ... | ... | @@ -135,7 +135,7 @@ |
| 135 | 135 | <view class="popup-item" wx:for="{{list.pageData}}"> |
| 136 | 136 | <view class="img-container"> |
| 137 | 137 | <image wx:if="{{item.luck_goods_img}}" src="{{imghost + item.luck_goods_img}}" class="img" mode="aspectFit"></image> |
| 138 | - <image wx:else src="{{imghost + tool.showDefaultImg(item.luck_type)}}" class="img" mode="aspectFit"></image> | |
| 138 | + <image wx:else src="{{imghost + tool.showDefaultImg(item.luck_type)}}" class="img {{item.luck_type==7?'small_set':''}} " mode="aspectFit"></image> | |
| 139 | 139 | </view> |
| 140 | 140 | <view class="flex fdc f1"> |
| 141 | 141 | <view class="ellipsis-2 fs28">{{item.luck_name}}</view> | ... | ... |
packageB/pages/luckactivity/luckinfo/luckinfo.wxss
| ... | ... | @@ -68,7 +68,10 @@ page, |
| 68 | 68 | width: 140rpx; |
| 69 | 69 | height: 140rpx; |
| 70 | 70 | margin-right: 20rpx; |
| 71 | - /* background-color: #f5f5f5; */ | |
| 71 | + /* background-color: #f5f5f5; */ | |
| 72 | + display: flex; | |
| 73 | + align-items: center; | |
| 74 | + justify-content: center; | |
| 72 | 75 | } |
| 73 | 76 | |
| 74 | 77 | .img { |
| ... | ... | @@ -76,6 +79,10 @@ page, |
| 76 | 79 | width: 100%; |
| 77 | 80 | height: 100%; |
| 78 | 81 | } |
| 82 | +.small_set{ | |
| 83 | + width: 84rpx; | |
| 84 | + height: 84rpx; | |
| 85 | +} | |
| 79 | 86 | |
| 80 | 87 | .item-r { |
| 81 | 88 | display: flex; | ... | ... |
packageB/pages/luckactivity/luckinfo/tool.wxs