snapshootShare.wxml 2.31 KB
<!--pages/snapshootShare/snapshootShare.wxml-->
<view class="snapshoot-page" >
   <view class="snapshoot-container">
    <view class="snapshoot-content">
        <view class="snapshoot">
          <image class="yoho-logo" src="./images/share-logo@2x.png"></image>
          
          <view class="content">
            <image class="product-defaultImage" src="{{default_image}}"> </image>

            <view class="center">
              <image class="product-0price-logo" src="./images/Group@2x.png"></image>
            </view>

            <view class="product-name">{{product_name}}</view>

            <view class="product-price">
              <image class="price0" src="./images/y@2x.png"></image>
              <view class="price">{{product_price}}</view>
            </view>
          </view>

          <view class="desc">
            <view class="product-miniqr">
              <image class="product-qrcode" src="{{product_qrCode}}"></image>
              <view class="product-tips">
                <view class="product-tips-user">{{user_name}}邀请你参与0元抽奖</view>
                <view class="product-tips-text">长按图片识别小程序码抢限定</view>
              </view>
            </view>
          </view>
        </view>
    </view>
    <view class="snapshoot-bottom">
      <view class="snapshoot-save" bindtap="saveSnapShoot" wx:if="{{isAuth}}">
        <text class="text">保存到相册</text>
      </view>
      <button wx:else open-type="openSetting" bindopensetting='handleOpenSetting' class="snapshoot-save-btn">
        保存到相册
      </button>
      <view class="snapshoot-cancel" bindtap="hidden">
          <text class="cancel-text">取消</text>
      </view>
    </view>
   </view>

    <view class="snapshoot-canvas" style="width: {{windowWidth}}px;height:{{screenHeight}}px; background-color: white; margin-top: {{screenHeight}}px" >
        <canvas canvas-id="productDetailCanvas" style="width: {{windowWidth}}px;height:{{screenHeight}}px;background-color: white"></canvas> 
    </view>
    <!-- <view class="snapshoot-canvas" style="width: {{windowWidth}}px;height:{{screenHeight}}px; background-color: white; margin-top: {{0}}px " >
        <canvas canvas-id="productDetailCanvas" style="width: {{windowWidth}}px;height:{{screenHeight}}px;background-color: white"></canvas> 
    </view> -->
</view>