<nav type="back" background-color="#ffffff" frontColor="#000000" title="分享推广" />
<view class="page" style="height:calc( 100vh - {{navHeight}}px );">
  <view class="box">
    <view class="btnBox">
      <view class="li">
        <button class="btn" open-type="share">
          <image src="https://file-cloud.fmode.cn/EbxZUK5lBI/20250416/ff1ji8042627631.png?imageView2/1/w/200/h/200" mode="widthFix" />
        </button>
        <view class="text">微信</view>
      </view>
      <view class="li">
        <button class="btn" bind:tap="onCopy">
          <image src="https://file-cloud.fmode.cn/EbxZUK5lBI/20250416/q1dei1042627731.png?imageView2/1/w/200/h/200" mode="widthFix" />
        </button>
        <view class="text">复制链接</view>
      </view>
      <view class="li">
        <button class="btn" bind:tap="saveCanvas">
          <image src="https://file-cloud.fmode.cn/EbxZUK5lBI/20250416/dd15rf042626959.png?imageView2/1/w/200/h/200" mode="widthFix" />
        </button>
        <view class="text">保存图片</view>
      </view>
    </view>
    <block wx:if="{{canv_sty.w&&canv_sty.h}}">
      <canvas id="myCanvas" class="posters" style="width:{{canv_sty.w}}px; height: {{canv_sty.h}}px;" type="2d" />
    </block>
  </view>
</view>