Ver a proveniência

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

tags/江西版6.1.0
luqc há 6 anos
ascendente
cometimento
eed29ab4d0
2 ficheiros alterados com 6 adições e 1 eliminações
  1. +5
    -0
      pages/canvas/index.js
  2. +1
    -1
      pages/canvas/index.wxml

+ 5
- 0
pages/canvas/index.js Ver ficheiro

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

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


+ 1
- 1
pages/canvas/index.wxml Ver ficheiro

@@ -4,6 +4,6 @@
</canvas> </canvas>
</view> </view>
<cover-view class="bottomsave" style="position:fixed;z-index:11;"> <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> </cover-view>
</view> </view>

Carregando…
Cancelar
Guardar