- wx.getUserProfile在添加了用户隐私推送弹窗后点击没有反应?
wx.getUserProfile在添加了用户隐私推送弹窗后点击没有反应 在登录页加了 wx.onNeedPrivacyAuthorization 用户隐私弹窗组件 点击获取用户信息没有任何反应和报错
2023-09-26 - 手机调试"request:fail 未能完成该操作。协议错误"?
[图片]
2020-09-25 - ctx.drawImage 没有显示图片?
drawBg: function({ ctx, width, height } = {}, url) { // console.log(canvas); return new Promise((resolve, reject) => { wx.getImageInfo({ src: url, success: function(res) { console.log(res); ctx.drawImage(res.path, 0, 0, width, height); console.log('drawed bg') resolve(); }, fail: function(res) { console.log(res); reject(); } }); }); }, 崩溃,导出图片的问题还没解决呢,新接口旧接口混在一起,目前还没给出一套能解决的方法
2020-09-17 - 报错canvasToTempFilePath: fail canvas is empty?
<view class="story"> <canvas hidden="{{radarImg}}" canvas-id="canvas" type="2d" id="canvas" style="width: 100vw; height: calc(100vw / 750 * 1080);"></canvas> <image hidden="{{!radarImg}}" src="{{radarImg}}" style="width: 100vw; height: calc(100vw / 750 * 1080);" /> </view> openDialog: () => { console.log('openDialog()'); let ctx = wx.createCanvasContext('canvas'); // that.setData({ // radarImg: 'tempFilePath', // show: true // }); // console.log(that); ctx.draw(true, setTimeout(()=>{ wx.canvasToTempFilePath({ canvasId: 'canvas', success: function(res) { console.log(res); let tempFilePath = res.tempFilePath; that.setData({ radarImg: tempFilePath, show: true }); }, fail: function(res) { console.log(res); } }, that); },500)) }, that是在全局里定义的,在onload() 里 赋值 that = this;
2020-09-17 - 提示“canvasToTempFilePath: fail canvas is empty”?
<view class="story"> <canvas hidden="{{radarImg}}" canvas-id="canvas" type="2d" id="canvas" style="width: 100vw; height: calc(100vw / 750 * 1080);"></canvas> <image hidden="{{!radarImg}}" src="{{radarImg}}" style="width: 100vw; height: calc(100vw / 750 * 1080);" /> </view> openDialog: () => { console.log('openDialog()'); let ctx = wx.createCanvasContext('canvas'); // that.setData({ // radarImg: 'tempFilePath', // show: true // }); // console.log(that); ctx.draw(true, setTimeout(()=>{ wx.canvasToTempFilePath({ canvasId: 'canvas', success: function(res) { console.log(res); let tempFilePath = res.tempFilePath; that.setData({ radarImg: tempFilePath, show: true }); }, fail: function(res) { console.log(res); } }, that); },500)) }, that是在全局里定义的,在onload() 里 赋值 that = this;
2020-09-16 - FontFace 开发工具可以使用,手机调试cant find variable?
提示:can't find variable:FontFace; const font = new FontFace( "MYuanPRCSemiBoldx", "url(http://cache.supersonicwx.com/dell_common/font/MYuenPRC-SemiBold.ttf)" ); font.load();
2020-09-16 - wx.loadFontFace开发工具没问题,手机预览报错?
wx.loadFontFace开发工具没问题,手机(ios)报错errMsg"loadFontFace:fail"; wx.loadFontFace({ family: 'MYuanPRCSemiBoldx', source: 'url("http://cache.supersonicwx.com/dell_common/font/MYuenPRC-SemiBold.ttf")', success: (res) => { console.log(res); console.log('loadedFont') }, fail: (res) => { console.log(res); } });
2020-09-16 - 关联小程序间跳转需要再一次授权吗
关联小程序间跳转需要再一次授权吗
2018-06-01 - 未能找到使用指定主机名的服务器
如图: [图片]
2017-02-27 - 如何获取特定view的高度
想做一个slidedowm动画
2017-02-16