Commit 1fcd8bbf72d46600f760ae1d233e6092cd6d93e1

Authored by 后端研发-苏泰源
1 parent bfc2f423

商品详情页canvas if判断

pages/goods/goodsInfo/goodsInfo.wxml
... ... @@ -16,7 +16,7 @@
16 16 <view class="goods-detail">
17 17 <view class="goods-info" style="position: relative;" hidden="{{activeCategoryId==0?false:true}}">
18 18  
19   - <!-- 历史购买记录 -->
  19 + <!-- 左上角轮播 历史购买记录 -->
20 20 <view class="swiper-container" wx:if="{{historyBuyInfo.length}}">
21 21 <swiper class="swiper" autoplay="true" circular="true" vertical="true" interval="3000">
22 22 <swiper-item class="swiper-item" wx:for="{{historyBuyInfo}}" wx:key="order_id">
... ... @@ -26,7 +26,6 @@
26 26 </view>
27 27 <view class="flex ai_c pd10">
28 28 <view class="nickname ellipsis-1x">{{item.nickname}}下单成功</view>
29   - <!-- <view style="flex-shrink: 0;"></view> -->
30 29 </view>
31 30 </view>
32 31 </swiper-item>
... ... @@ -1647,8 +1646,7 @@
1647 1646 </block>
1648 1647 <!-- ---------------分享弹窗--------------- -->
1649 1648 <!-- 二维码显示页面 -->
1650   -<!-- <canvas canvas-id='share' style='width:750rpx;height:1217rpx;background-color:white;position: fixed;top: 0;'></canvas> -->
1651   -<canvas canvas-id='share' style='width:750rpx;height:1217rpx;background-color:white;'></canvas>
  1649 +<canvas canvas-id='share' style='width:750rpx;height:1217rpx;background-color:white;' wx:if="{{!canvasHidden}}"></canvas>
1652 1650 <warn id="warn"></warn>
1653 1651 <!-- 分享控件,底部弹出 -->
1654 1652 <share id="share_button" bind:send="send" bind:cancel="cancel" bind:share_img="saveImageToPhotosAlbum" wx:if="{{share_hidden}}"></share>
... ...