assistShare.wxml
1.97 KB
<template name='assistShare'>
<form bindsubmit="formSubmit" report-submit='true'>
<view class="mask" bindtap="shareHide" wx:if="{{sharerData.isShow}}">
<block wx:if="{{sharerData.showType == '1'}}">
<view class='buttonView'>
<view class='button1'>
<button formType="submit" open-type="share" class="shareButton"></button>
<image class='icon1' catchtap="shareHide" src="./images/wx_ic@3x.png"></image>
<text class="text1">分享给微信好友</text>
</view>
<view class='button2' catchtap="showImage">
<image class='icon2' catchtap="showImage" src="./images/pyq_ic@3x.png"></image>
<text class="text2">生成海报分享</text>
</view>
</view>
</block>
<block wx:else>
<!-- <canvas canvas-id="assistShareCanvas" style=' width: {{(sharerData.shareViewWidth-100)*sharerData.SC}}px;height: {{(sharerData.shareViewHeight-200)*sharerData.SC}}px; margin-left: {{(sharerData.windowWidth - (sharerData.shareViewWidth-100)*sharerData.SC)/2}}px;margin-top: {{(sharerData.windowHeight - (sharerData.shareViewHeight-200)*sharerData.SC)/2 - 30}}px;'></canvas> -->
<view class='contentView'>
<image class='imageView' src="https://cdn.yoho.cn/20180209/help/44.png"></image>
<image class='headerUrlIco' src="{{sharerData.headerUrl}}"></image>
<image class='qrCodeImg' src="{{sharerData.qrCode}}"></image>
</view>
<view class='bottomView' catchtap="shareSaveImage">
<text class="title">生成海报分享</text>
</view>
</block>
</view>
<canvas canvas-id="assistShareCanvas" style=' width: {{(sharerData.shareViewWidth-105)*sharerData.SC*3}}px;height: {{(sharerData.shareViewHeight-200)*sharerData.SC*3}}px; margin-left: {{(sharerData.windowWidth - (sharerData.shareViewWidth-105)*sharerData.SC)/2}}px;margin-top: {{10000}}px; position: fixed;'></canvas>
</form>
</template>