Commit ab0817dfa2b3ae11c29ff1aabf0a8b3c6548655b
1 parent
8edf9639
助力活动修改3
Showing
2 changed files
with
6 additions
and
3 deletions
pages/user/assistance/assistance.wxml
... | ... | @@ -7,7 +7,9 @@ |
7 | 7 | <view class="zindex" style="color:#{{font_color ? font_color:'black'}};background-color:#{{bg_color ? bg_color:'d01119'}};"> |
8 | 8 | <view class="top"> |
9 | 9 | <!-- 上传主图的情况 --> |
10 | - <view class="bg-img" wx:if="{{imageUrl}}"></view> | |
10 | + <view wx:if="{{imageUrl}}" style="height: 100%;"> | |
11 | + <image src="https://mshopimg.yolipai.net{{imageUrl}}" lazy-load="true" class="bg-img"></image> | |
12 | + </view> | |
11 | 13 | <!-- 没有上传主图的情况 --> |
12 | 14 | <block wx:else> |
13 | 15 | <view class="flex-center"> | ... | ... |
pages/user/assistance/assistance.wxss
... | ... | @@ -11,8 +11,9 @@ page { |
11 | 11 | |
12 | 12 | |
13 | 13 | .bg-img { |
14 | - background: url("https://mshopimg.yolipai.net/public/upload/newpeoplegift/temp/2020/09-26/75640123e5ae953e416527134a6fc477.jpg") no-repeat center center; | |
15 | - background-size: 100% 100%; | |
14 | + display: block; | |
15 | + width: 100%; | |
16 | + height: 100%; | |
16 | 17 | } |
17 | 18 | |
18 | 19 | .lumi { | ... | ... |