- 微信公众号自定义分享有时失效,请问是什么导致的?
链接地址:http://www.bdhlcxx.com/ereg/registerdetail?id=98ff71df577afebe79f1652df633dde6 [图片]
2021-01-06 - 自定义分享图片的问题
- 希望在调用onShareAppMessage方法之前通过canvas对图片绘制,生成自定义的分享图片 - 如何在分享之前对图片进行绘制? 相关代码: wxml: <button open-type='share' bindtap='myShare' >分享</button> <canvas canvas-id='c' style='width:750px;height:400px'></canvas> js: onReady: function () { var that = this; ctx.drawImage('/images/test.jpg', 0, 0, 750, 400); ctx.setFillStyle('red'); ctx.setFontSize(30) ctx.fillText('hello', 30, 30); ctx.draw(true, setTimeout(() => { wx.canvasToTempFilePath({ x: 0, y: 0, width: 750, height: 400, destWidth: 750, destHeight: 400, canvasId: 'c', success(res) { // console.log(res.tempFilePath); that.setData({ img: res.tempFilePath }) console.log(that.data.img) } }) }, 100)) }, onShareAppMessage: function () { console.log(this.data.img) return { title: '这是title', imageUrl: this.data.img } } 我在onReady里面先绘制好自定义的图片可以实现,但是怎么才能在点击分享按钮时 实现呢?
2018-10-17 - 云函数里怎么发出Node.js客户端请求
- 当前 Bug 的表现(可附上截图) [图片] [图片] 预期表现 大佬们,小弟想在云函数里发个Node.js https get请求,日志上就是打印不出来啊,求大神指点
2018-09-13