share.wxml
2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<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>