效果图
具体步骤都注释到代码里面了 如有疑问请加q群:581478349 进行咨询
<view class="show_bg" wx:if="{
{share_show=='show'}}">
<view class='share'>
<canvas canvas-id="shareCanvas" style="width:300px;height:330px"></canvas>
<button class='bottom' bindtap="bc">
<!-- <image src="{
{img}}" bindtap='closeShare'></image> -->
保存到相册 </button>
<button class='bottom_' open-type="share">
分享给好友 </button>
</view>
</view>
// pages/fx/index.js
Page({
data: {
share_show:'show',
shareTitle: '承接小程序开发,h5网页, pc网站开发,可前后一整