Browse Source

[分享生成海报][修改][未生成完禁止下载]

tags/江西版6.1.0
luqc 6 years ago
parent
commit
eed29ab4d0
2 changed files with 6 additions and 1 deletions
  1. +5
    -0
      pages/canvas/index.js
  2. +1
    -1
      pages/canvas/index.wxml

+ 5
- 0
pages/canvas/index.js View File

@@ -12,6 +12,7 @@ Page({
windowWidth: wx.getSystemInfoSync().windowWidth,
windowHeight: wx.getSystemInfoSync().screenHeight,
totalHeight: 0,
isdisable:true,
mallname: '', //商场名字
qrCodeL: "", //小程序码
couponList: [], //活动劵列表
@@ -144,8 +145,12 @@ Page({
that.drawAvatarimg(ctx, scale);
that.drawqrCode(ctx, scale);
wx.hideLoading();

}
});
this.setData({
isdisable:false,
})
},
//绘制微信头像
drawAvatarimg(ctx, scale) {


+ 1
- 1
pages/canvas/index.wxml View File

@@ -4,6 +4,6 @@
</canvas>
</view>
<cover-view class="bottomsave" style="position:fixed;z-index:11;">
<button bindtap="saveImage" class='saveposter'>保存图片分享到朋友圈</button>
<button bindtap="saveImage" disabled="{{isdisable}}" class='saveposter'>保存图片分享到朋友圈</button>
</cover-view>
</view>

Loading…
Cancel
Save