31 lines
1.7 KiB
Plaintext
31 lines
1.7 KiB
Plaintext
<!--mycomponent/temp/qrcode/qrcode.wxml-->
|
|
<canvas canvas-id="myCanvas" id="myCanvas" style='width: {{canvasWidth}}px;height: {{canvasHeight}}px;position: absolute;z-index: -1;left: -6000px;top: -6000px;'
|
|
/>
|
|
<canvas canvas-id="tempQRCode" id="tempQRCode" style='width: {{tempQRCodeCanvasWidth}}px;height: {{tempQRCodeCanvasHeight}}px;position: absolute;z-index: -1;left: -6000px;top: -6000px;'
|
|
/>
|
|
<van-popup show="{{isshow}}" closeable close-on-click-overlay="true" bind:close="clicktapshow" custom-style="background:none;"
|
|
class="posterPopup_style" position="bottom">
|
|
<view class="code_box">
|
|
<!-- <image wx:if="{{posterPic}}" src="{{posterPic}}" mode='widthFix' /> -->
|
|
<!-- <canvas canvas-id="myCanvas" style='width: {{canvasWidth}}px;height: {{canvasHeight}}px;'/> -->
|
|
<image wx:if="{{poster}}" src="{{poster}}" binderror="loadImgError" mode='widthFix' />
|
|
<view class="loading" wx:if="{{!poster}}">
|
|
<text class="text">{{loading}}%</text>
|
|
<text class="text">生成中</text>
|
|
</view>
|
|
<view wx:if="{{errorFlag}}" style="color:#fff;">{{errorMsg}}</view>
|
|
</view>
|
|
<view class="icon_btn" wx:if="{{poster}}">
|
|
<view class="box" catchtap='previewImage'>
|
|
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/poster_share.png" />
|
|
<text>分享好友</text>
|
|
</view>
|
|
<view class="box" catchtap='checkWritePotosAlbum'>
|
|
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/poster_save.png" />
|
|
<text>保存海报</text>
|
|
</view>
|
|
</view>
|
|
<!-- 关闭图标 -->
|
|
<view class="icon_close" style="{{iPnoneBottomBol?(showcarrfootBol?'padding-bottom: 168rpx;':'padding-bottom: 34px;'):(showcarrfootBol?'padding-bottom: 100rpx;':'')}}" catchtap="clicktapshow">取消</view>
|
|
</van-popup>
|