2.14.4以上都会包错 很无奈
2.17.3开发者工具报错?2.17.3报错啦, 开发者工具打不开小程序, 请问怎么解决? VM2074:1 Uncaught TypeError: Cannot delete property 'WeixinJSBridge' of #<Window>
2021-08-30搞定了吗
canvas 层级设置[图片] 模拟器上canvas显示正常,不会覆盖footer内容 真机上,如图,canvas会覆盖footer 这种有办法解决吗? <canvas canvas-id='canvas' class='canvas' style="z-index:-1;position:relative;"></canvas> 底部 .mainFooter{ position: fixed; bottom: 0; display: flex; height: 45px; justify-content: space-around; align-items: center; flex: auto; background: #fff; border-top: 1px solid #e5e5e5; width: 100%; z-index: 9999; } <view class='mainFooter'> <view class='footerLeft' bindtap='baoMingDialog' data-type="2"> <text>看房服务</text><text class="fon12">免费专车接送</text> </view> <view class="footerRight" bindtap='callMobile'> <text>致电售楼处</text><text class="fon12">保护你的真实号码</text> </view> </view>
2021-01-06大佬搞定了吗
小程序地图能否修改当前定位点的icon图标map如何能修改当前定位点的默认icon
2020-07-29这个功能在写我现在也遇到这个需求但是报错
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)[代码][代码]},[代码]
2020-06-29