- openDocument支持最大多少M?
openDocument文档只写了支持的格式,但是没有 写最大支持多少M的文档
2020-10-13 - wx.downloadFile没有返回tempFilePath 大概是因为什么原因呢?
[图片]
2020-09-23 - ios下 scroll-view下拉闪烁抖动-动态图
[图片]
2019-01-25 - 如果text为0的时候wx.settabbarbadge如何隐藏
如下图图设置还是会有红色,代码如下 [图片] [代码]wx.setTabBarBadge({[代码] [代码]index: 3,[代码] [代码]text: [代码][代码]""[代码] [代码]})[代码]
2018-12-28 - onShareAppMessage的图片路径可以是canva生成的路径吗?
[代码]async onShareAppMessage() {[代码][代码] [代码][代码]// console.log(this.listData.firstMessage);[代码][代码] [代码][代码]var[代码] [代码]_this = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]// var zfimg = "";[代码][代码] [代码][代码]const data = await [代码][代码]new[代码] [代码]Promise([代码][代码]function[代码][代码](resolve) {[代码][代码] [代码][代码]wx.canvasToTempFilePath({[代码][代码] [代码][代码]x: 0,[代码][代码] [代码][代码]y: 0,[代码][代码] [代码][代码]width: _this.rpx * 375,[代码][代码] [代码][代码]height: _this.canvasHeight1,[代码][代码] [代码][代码]destWidth: _this.rpx * 375 * _this.pixelRatio,[代码][代码] [代码][代码]destHeight: _this.canvasHeight1 * _this.pixelRatio,[代码][代码] [代码][代码]canvasId: [代码][代码]"myCanvas1"[代码][代码],[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]console.log(res.tempFilePath);[代码][代码] [代码][代码]// zfimg = res.tempFilePath;[代码][代码] [代码][代码]resolve(res.tempFilePath);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][代码] [代码][代码]});[代码][代码] [代码][代码]console.log(data); //这里可以打印出图片路径[代码][代码] [代码][代码]return[代码] [代码]{[代码][代码] [代码][代码]title: _this.listData.firstMessage,[代码][代码] [代码][代码]path: [代码][代码]"/pages/index/main?id="[代码] [代码]+ _this.listData.id,[代码][代码] [代码][代码]imageUrl: data,[代码][代码] [代码][代码]success: res => {[代码][代码] [代码][代码]console.log([代码][代码]"转发成功"[代码][代码], res);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: res => {[代码][代码] [代码][代码]console.log([代码][代码]"转发失败"[代码][代码], res);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]};[代码][代码] [代码][代码]},[代码][图片] 这个转发图片应该展示我用canvas生成的图片
2018-09-03