snapshootShare.wxml 1.81 KB

<view class="snapshoot-container" style="display: {{isShow ?  'block' : 'none'}}" >
   <view class="snapshoot-container">
    <view class="snapshoot-content">

         <!--商品详情开始  -->
        <view class="snapshoot">
          <image class="yoho-logo" style='margin-top:50.4rpx' src="../../../assets/images/share-logo@2x.png"></image>
          <view class="snapshoot-productinfo">
              <image class="product-defaultImage" src="{{shareData.default_image}}"> </image>
              <view class="product-info-content">
                <text class="product-name">{{shareData.product_name}}</text>
                <text class="product-price">{{shareData.product_price}}</text>
              </view>
          </view>
          <view class='product-miniqr-new'>
              <image class="product-qrcode" src="{{shareData.product_qrCode}}"></image>
              <view class='product-tips-new'>
                 <text class="snapshoot-tips-new">长按扫码查看详情</text>
                 <text class="product-tips-text-new" style='margin-top:10.4rpx;margin-left:0rpx'>实际价格以页面展示为准</text>
              </view>
          </view>
        </view>
    </view>  
    
    <!--底部按钮  -->
    <view class="snapshoot-bottom">
      <view class="snapshoot-save" bindtap="saveToAlbum">
        <!-- <image class="img" src="./images/down@2x.png"></image> -->
        <text class="text">保存到相册</text>
      </view>
      <view class="snapshoot-cancel" bindtap="hidden">
          <text class="cancel-text">取消</text>
      </view>
    </view>
   </view>   
</view>


<block>
    <canvas canvas-id="productDetailCanvas" style="width: {{windowWidth*ratio}}px;height:{{screenHeight*ratio}}px;background-color: white;margin-top: 10000px;margin-left:10000px;position:fixed"></canvas> 
</block>