share.wxml 2.4 KB
<glsx-privacy appletName="嘀加智慧门店" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class='share-box' catchtouchmove='noScroll' wx:if='{{show}}'>
  <view class='bg' bindtap='cancel'></view>
    <view class='info {{!goods?"isStoreInfo":"goods"}} {{flag?"flag":""}}' style="top:{{viewTop}}px;">
      <block wx:if='{{goods}}'>
        <image src="{{data.productCoverUrl}}" class='goods-photo'></image>
        <view class='goods-name text-hide'>{{data.name}}</view>
        <view class='goods-info'>
          <view class='text-hide'>商户名称:{{data.user.merchantName}}</view>
          <view class='text-hide' wx:if='{{data.user.name || data.user.contactName}}'>联系人:{{data.user.name || data.user.contactName}}</view>
          <view class='text-hide' wx:if='{{data.user.phone}}'>联系电话:{{data.user.phone}}</view>
        </view>
        <view class='qr'>
          <image src="{{data.qr}}"></image>
        </view>
      </block>

      <block wx:else>
        <view class='share-bg'>
          <image src="{{bgImg}}"></image>
        </view>
        <view class='info-data zIndex-1'>
          <image src="{{data.photo||data.shopPhoto|| '/images/default.png'}}" class='image'></image>
          <view class='info-text'>
            <view wx:if='{{data.name}}' class='name'>{{data.name}}</view>
            <view wx:if='{{data.phone}}'>联系电话:{{data.phone}}</view>
            <view wx:if='{{data.merchantName}}' class='text-hide'>{{data.merchantName}}</view>
          </view>
        </view>
        <view class='tips zIndex-1'>{{data.tips}}</view>
        <view class='qr zIndex-1'>
          <image src="{{data.qr}}"></image>
        </view>
      </block>
    </view>
  <view class='choose-list' style="height:{{hideCancel?'auto':'298rpx'}}">
    <view class='list'>
      <view class='list-btn' wx:if='{{!hideWx}}'>
        <image src='images/wx.png' class='image'></image>
        <view>微信好友</view>
        <button open-type='share' bindtap='cancel' class='button'></button>
      </view>
      <view class='list-btn' bindtap='save'>
        <image src='images/share.png' class='image'></image>
        <view>保存分享</view>
      </view>
    </view>
    <view wx:if='{{!hideCancel}}' class='cancel' bindtap='cancel'>取消</view>
  </view>
</view>

<view class='canvas {{!goods?"isStore":""}}'>
  <canvas canvas-id='img' style='width:100%;height:100%;'></canvas>
</view>