share.wxml 6.6 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 class='info {{isVideo?"isVideo":""}} {{flag?"flag":""}}' style="top:{{viewTop}}px;">
		<block wx:if='{{!goods}}'>
			<block wx:if='{{data.type}}'>
				<image src='{{data.shopPhoto || shopBg}}' style='height:200rpx;width:100%;' />
				<view class='share-info'>
					<view class='name text-hidden' style='padding-right: 36rpx;'>
						<image
						       wx:for='{{data.carBrandList}}'
						       wx:key='index'
						       src='{{item.brandLogo}}'
						       wx:if='{{index<3}}' />
						<text wx:if='{{data.carBrandList.length>3}}' style='margin-right:6rpx;'>...</text>
						{{data.merchantName}}
					</view>
					<view class='share-info-p text-hidden' style='padding-right: 36rpx;'>
						{{data.address}}
					</view>
					<view class='share-info-p'>营业时间:{{data.businessHours}}</view>
					<view class='share-info-p'>联系电话:{{data.phone}}</view>
					<view class='tags-title'>营业范围</view>
					<view class='tags'>
						<view wx:for='{{tags}}' wx:key='*this' class='scope-item'>{{item}}</view>
					</view>
					<view class='qr-img' style='margin-top:8.8rpx;'>
						<image src='{{data.qr}}' class='qr' />
						<view>长按识别小程序码,查看商户</view>
					</view>
				</view>
			</block>
			<block wx:elif='{{isVideo}}'>
				<view class='v-name'>
					<image class="image" src="{{data.icon||'./images/car.png'}}" />
					<view class='text-hide'>{{data.name||'微信用户'}}</view>
				</view>
				<view class="v-text">{{data.shareRecommend||'养车不再盲目!根据爱车行驶里程和用车时长,为您推荐以下项目'}}</view>
				<image wx:if="{{data.photo}}" src="{{data.photo}}" class='cover' />
				<image wx:else src="./images/cover.png" class='cover' />
				<view class='v-tips'>我正在用这个小程序,推荐你试试~!</view>
				<image src="{{data.qr||'./images/cover.png'}}" class='v-qr' />
				<view class='v-qr-text'>
					<view>长按二维码</view>
					识别小程序后查看更多
				</view>
			</block>
			<block wx:else>
				<view class='share-top'>
					<image src='{{bg}}' style='height:200rpx;width:100%;' />
					<image wx:if="{{data.photo}}" src='{{data.photo}}' class='share-user' />
					<image wx:else src='./images/cover.png' class='share-user' />
					<image src='../../packageIndex/resources/images/v.png' class='img-v' />
					<view class='servicer-name'>
						<view class='name'>{{name}}</view>
						<view class='group-box'>
							<view class='group' wx:if='{{data.accountGroup}}'>{{data.accountGroup}}</view>
							<view>{{data.duty}}</view>
						</view>
					</view>
				</view>
				<view class='share-info'>
					<view class='name text-hidden' style='padding-right: 36rpx;'>
						<image
						       wx:for='{{data.carBrandList}}'
						       wx:key='*this'
						       src='{{item.brandLogo}}'
						       wx:if='{{index<3}}' />
						<text wx:if='{{data.carBrandList.length>3}}' style='margin-right:4rpx;'>...</text>
						{{data.merchantName}}
					</view>
					<view class='share-info-p'>联系电话:{{data.phone}}</view>
					<view class='share-info-p'>微信:{{data.wechatNum}}</view>
					<view class='tags-title' style='padding:46rpx 0 20rpx'>服务印象</view>
					<view class='tags'>
						<view wx:for='{{tags}}' wx:key='*this' class='scope-item'>{{item}}</view>
					</view>
					<view class='qr-img' style='padding-top:22rpx;'>
						<image src='{{data.qr}}' class='qr' />
						<view>长按识别小程序码,保存名片</view>
					</view>
				</view>
			</block>
		</block>
		<block wx:else>
			<image wx:if="{{data.goodsPhoto}}" src='{{data.goodsPhoto}}' style='height:500rpx;width:100%;' />
			<image wx:else src='./images/cover.png' style='height:500rpx;width:100%;' />
			<block wx:if='{{data.marketType != 1}}'>
				<view class='share-info goods'>
					<view class='name text-hidden'>{{data.shopName}}</view>
					<view class='goods-price' wx:if="{{!data.hasGoodsCode}}">
						¥
						<block wx:if='{{!data.interval}}'>
							<view class='new-price'>{{data.flashSalePrice}}</view>
						</block>
						<block wx:else>
							<view class='new-price' style='font-size:32rpx;'>{{data.interval}}</view>
						</block>
						<view class='old-price'>
							{{groupBuy ? '拼团价':'秒杀价'}}
							<view>{{data.retailPrice}}</view>
						</view>
					</view>
					<view class='merchantInfo' wx:if='{{!groupBuy}}'>
						<view class='merchantName text-hidden'>{{data.merchantName}}</view>
						<view class='share-info-p'>营业时间:{{data.businessHours}}</view>
						<view class='share-info-p text-hidden'>店面地址:{{data.address}}</view>
						<view class='share-info-p'>联系电话:{{data.phone}}</view>
					</view>
					<view class="group-text" wx:else>好不容易等到的拼团优惠快来参与吧!</view>
					<view class='qr-img'>
						<image src='{{data.qr}}' style='width:190rpx;height:180rpx;' />
						<view>长按识别小程序码</view>
						<view>立抢优惠</view>
					</view>
				</view>
			</block>
			<block wx:else>
				<view class='share-info goods show'>
					<view class='name text-hidden'>{{data.shopName}}</view>
					<view class='goods-price' wx:if='{{data.showPrice}}'>
						¥
						<text>{{data.showPrice}}</text>
					</view>
					<view class='tags' wx:if='{{data.shopTags.length>0}}'>
						<block wx:for='{{data.shopTags}}' wx:key='index'>
							<view class='tag' wx:if='{{item}}'>{{item}}</view>
						</block>
					</view>
					<view class='qr-img'>
						<image src='{{data.qr}}' style='width:126rpx;height:124rpx;' />
					</view>
					<view class='merchantInfo'>
						<view class='merchantName text-hidden'>{{data.merchantName}}</view>
						<view class='share-info-p'>营业时间:{{data.businessHours}}</view>
						<view class='share-info-p'>联系电话:{{data.phone}}</view>
						<view class='share-info-p text-hidden'>店面地址:{{data.address}}</view>
					</view>
					<view class='tips'>长按识别小程序码 立抢优惠</view>
				</view>
			</block>
		</block>
	</view>
	<view class='choose-list'>
		<view class='list'>
			<view class='list-btn' wx:if='{{!hideWx}}'>
				<image src='images/wx.png' />
				<view>微信好友</view>
				<button open-type='share' bindtap='cancel' />
			</view>
			<view class='list-btn' bindtap='save'>
				<image src='images/share.png' />
				<view>保存分享</view>
			</view>
		</view>
		<view class='cancel' bindtap='cancel'>取消</view>
	</view>
</view>
<view class='canvas'>
	<canvas canvas-id='img' style='width:100%;height:100%;' />
</view>