<template>
  <view class="poster_main">
    <!-- 添加 canvas 元素 -->
    <view class="poster_canvas">
      <canvas canvas-id="poster_firstCanvas" id="poster_firstCanvas" style="width: 345px; height: 504px"></canvas>
    </view>

    <view class="poster_func">
      <view class="poster_func_download" @click="method.onDownloadPosters">下载收款码</view>
      <!-- <view class="poster_func_link" @click="method.copyLink">复制链接</view> -->
    </view>
  </view>
</template>

<script setup lang="ts">
import { onLoad } from '@dcloudio/uni-app';
import method from './method';

onLoad((e: any) => {
  method.setCanvas(e)
})
</script>

<style setup scoped>
@import './style.scss';
</style>
