saveImage: function () {
var that = this
wx.canvasToTempFilePath({
x: 0,
y: 0,
width: that.data.scrollWidth,
height: that.data.y,
destWidth: 500,
destHeight: 400,
canvasId: 'shareCanvas',
success: function (res) {
that.setData({
shareImage: res.tempFilePath
})
console.log("生成名片shareImage:", that.data.shareImage)
},
fail: function (res) {
console.log("失败啦res:", res)
}
})
},
你好,可以调试看看正式版有没有什么错误提示,先在开发版或体验版打开调试,再切到正式版就能看到vConsole
好了,安全域名问题
之前配置过安全域名,需要配置微信头像的安全域名
求助,急
* 用户点击右上角分享
onShareAppMessage: function (res) {
var that = this
// data.isShareShow = true
// cardInfo: data
console.log(that.data.cardInfo)
title: '很高兴认识你,这是我的名片请惠存!',
path: 'pages/libraryCard/friendCard/info?cardId=' + that.data.cardInfo.data.cardId,
console.log("分享成功后that.data.shareImage:", that.data.shareImage)
// data.isShareShow = false
// cardInfo: data
},
}