yuminge-app/yun-min-program-plugin-master/poster/poster.wxml

35 lines
1.9 KiB
Plaintext

<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;'
/>
<canvas type="2d" id="temp_security_id" style="position: absolute;z-index: -1;left: -6000px;top: -6000px;"></canvas>
<van-popup show="{{isshow}}" closeable close-on-click-overlay="true" bind:close="clicktapshow" custom-style="background:none;"
class="posterPopup_style" position="bottom">
<view style="display:flex;flex-direction:column;height:100vh;">
<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}}" show-menu-by-longpress src="{{poster}}" binderror="loadImgError" mode='aspectFit' />
<view class="loading" wx:if="{{!poster}}">
<text class="text">{{loading}}%</text>
<text class="text">生成中</text>
</view>
<view wx:if="{{errorFlag}}" style="color:#fff;"><text user-select>{{errorMsg}}</text></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>
</view>
</van-popup>