- vant组件库的icon组件图标真机无法显示?
[图片]在开发工具能显示 [图片]真机却没有显示出来,并且[图片]vant官方的那个展示小程序也不显示,请问这是什么情况?
2021-01-25 - downloadFile?下载地址是一个api文件流格式的图片
成功后直接返回的是.html格式的,保存图片格式都变了,有解决的办法吗
2019-12-12 - wx.canvasToTempFilePath 到底怎么用?
一直报这个错:anvasToTempFilePath: fail canvas is empty [代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"Canvas_box"[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{canvasHidden}}"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]canvas[代码] [代码]class[代码][代码]=[代码][代码]"Canvas"[代码] [代码]canvas-id[代码][代码]=[代码][代码]"myCanvas"[代码] [代码]/>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"save"[代码] [代码]catch:tap[代码][代码]=[代码][代码]"handSaveImg"[代码][代码]>保存图片</[代码][代码]view[代码][代码]>[代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]createNewImg() {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码] [代码][代码]var[代码] [代码]context = wx.createCanvasContext([代码][代码]'myCanvas'[代码][代码])[代码][代码] [代码][代码]context.setFillStyle([代码][代码]'#fff'[代码][代码])[代码][代码] [代码][代码]context.fillRect(0, 0, 375, 667)[代码][代码] [代码][代码]var[代码] [代码]path = [代码][代码]'/images/bannerbj.png'[代码][代码] [代码][代码]console.log(path)[代码][代码] [代码][代码]context.drawImage(path, 0, 0, 340, 550)[代码][代码] [代码][代码]context.setFontSize(14)[代码][代码] [代码][代码]context.setFillStyle([代码][代码]'#333333'[代码][代码])[代码][代码] [代码][代码]context.setTextAlign([代码][代码]'center'[代码][代码])[代码][代码] [代码][代码]let name = [代码][代码]this[代码][代码].data.name[代码][代码] [代码][代码]context.fillText(name, 175, 235)[代码][代码] [代码][代码]context.stroke()[代码] [代码] [代码][代码]context.setFontSize(50)[代码][代码] [代码][代码]context.setFillStyle([代码][代码]'#333333'[代码][代码])[代码][代码] [代码][代码]context.setTextAlign([代码][代码]'center'[代码][代码])[代码][代码] [代码][代码]let score = [代码][代码]this[代码][代码].data.score[代码][代码] [代码][代码]context.fillText(score, 162, 180)[代码][代码] [代码][代码]context.stroke()[代码][代码] [代码][代码]// context.draw(false, this.saveCanvasToFile())[代码][代码] [代码][代码]context.draw([代码][代码]false[代码][代码], e => {[代码][代码] [代码][代码]wx.canvasToTempFilePath([代码][代码] [代码][代码]{[代码][代码] [代码][代码]canvasId: [代码][代码]'myCanvas'[代码][代码],[代码][代码] [代码][代码]quality: 1,[代码][代码] [代码][代码]success: res => {[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]canvasTemImg: res.tempFilePath,[代码][代码] [代码][代码]canvasHidden: [代码][代码]true[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: res => {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]this[代码][代码] [代码][代码])[代码][代码] [代码][代码]})[代码][代码]},[代码][代码]saveCanvasToFile() {[代码][代码] [代码][代码]let that = [代码][代码]this[代码][代码] [代码][代码]setTimeout(() => {[代码][代码] [代码][代码]console.log([代码][代码]'123123123'[代码][代码])[代码] [代码] [代码][代码]wx.canvasToTempFilePath([代码][代码] [代码][代码]{[代码][代码] [代码][代码]canvasId: [代码][代码]'myCanvas'[代码][代码],[代码][代码] [代码][代码]quality: 1,[代码][代码] [代码][代码]success: res => {[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]canvasTemImg: res.tempFilePath,[代码][代码] [代码][代码]canvasHidden: [代码][代码]true[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: res => {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]this[代码][代码] [代码][代码])[代码][代码] [代码][代码]}, 2000)[代码][代码]},[代码]
2019-12-10 - iOS拨打电话不触发onShow修复好了吗?
iOS拨打电话不触发onShow修复好了吗?
2019-11-11 - 扫码预览一直没反应是怎么回事啊?
用手机扫码预览一直没反应是怎么回事啊?提示数据下载中,请稍后
2017-11-21 - 求解决视频之前好好的,现在出现403.
[图片] 报这个错误
2017-11-20