Commit 58b156076af3b695a4196b5ee918e6f4f748dba3
1 parent
5530ff81
调整商品详情页生成海报的海报高度,避免过长图片变形
Showing
2 changed files
with
17 additions
and
9 deletions
pages/goods/goodsInfo/goodsInfo.wxml
@@ -1415,13 +1415,15 @@ | @@ -1415,13 +1415,15 @@ | ||
1415 | 1415 | ||
1416 | 1416 | ||
1417 | <view wx:if="{{showPoster}}" class="poster-container"> | 1417 | <view wx:if="{{showPoster}}" class="poster-container"> |
1418 | - <view class="poster" bindtap="previewImage"> | ||
1419 | - <image src="{{shareImgPath}}" class="poster-img"></image> | ||
1420 | - <view class="btn-close" catchtap="closePoster">x</view> | ||
1421 | - </view> | ||
1422 | - <view class="btn-container"> | ||
1423 | - <button class="btn-share" open-type="share" bindtap="">微信好友分享</button> | ||
1424 | - <button class="btn-share" bindtap="savePic">保存到相册</button> | 1418 | + <view class="poster-wrapper"> |
1419 | + <view class="poster" bindtap="previewImage"> | ||
1420 | + <image src="{{shareImgPath}}" class="poster-img"></image> | ||
1421 | + <view class="btn-close" catchtap="closePoster">x</view> | ||
1422 | + </view> | ||
1423 | + <view class="btn-container"> | ||
1424 | + <button class="btn-share" open-type="share" bindtap="">微信好友分享</button> | ||
1425 | + <button class="btn-share" bindtap="savePic">保存到相册</button> | ||
1426 | + </view> | ||
1425 | </view> | 1427 | </view> |
1426 | </view> | 1428 | </view> |
1427 | 1429 |
pages/goods/goodsInfo/goodsInfo.wxss
@@ -2643,13 +2643,19 @@ button.custom-service::after{ | @@ -2643,13 +2643,19 @@ button.custom-service::after{ | ||
2643 | height: 100%; | 2643 | height: 100%; |
2644 | z-index: 999; | 2644 | z-index: 999; |
2645 | background-color: rgba(0,0,0,.4); | 2645 | background-color: rgba(0,0,0,.4); |
2646 | - padding: 60rpx; | 2646 | + padding: 0 60rpx; |
2647 | + display: flex; | ||
2648 | + /* flex-wrap: wrap; */ | ||
2649 | + align-items: center; | ||
2650 | +} | ||
2651 | +.poster-wrapper { | ||
2652 | + width: 100%; | ||
2647 | } | 2653 | } |
2648 | 2654 | ||
2649 | .poster { | 2655 | .poster { |
2650 | box-sizing: border-box; | 2656 | box-sizing: border-box; |
2651 | width: 100%; | 2657 | width: 100%; |
2652 | - height: 90%; | 2658 | + height: 1055rpx; |
2653 | border-radius: 20rpx; | 2659 | border-radius: 20rpx; |
2654 | /* box-shadow: 0 8px 12px #666; */ | 2660 | /* box-shadow: 0 8px 12px #666; */ |
2655 | position: relative; | 2661 | position: relative; |