uniapp开发需要编译后到微信小程序后,微信开放工具内运行编译后代码
this.setData is not a function?[图片] [图片] 看了网上相关的提问,要么是拼写问题要么是回调函数,我这个事件绑定为什么也报这个错呢/(ㄒoㄒ)/~~
03-08一般设计都是这样的,保证数据安全和完整性。
怎么彻底删除发表记录?为什么不能彻底删除已发表记录啊,并且重新编辑还能看到里面的内容
03-07服务器域名配置 https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html#1.%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%9F%9F%E5%90%8D%E9%85%8D%E7%BD%AE
uni.saveImageToPhotosAlbum无法保存到相册?使用了 uni.saveImageToPhotosAlbum下载图片,本地真机调试可以用,发到线上就不行,体验版打开调试模式也可以用。隐私保护也勾选了使用你的相册(仅写入)权限[图片]
03-06多加断点打印出来,排查具体报错位置和信息
关于wx.chooseMedia,隐私条款已经授权,本地和真机调试没问题,发布到体验版本有问题?[图片] 代码亲测,已经授权走的 下边这个方法,然后调用直接报错{errmsg:'chooseMeida':'ok','tem...':},此代码在真机模拟。本地运行完全OK 但就是上传到体验版本不行,求大神们讲解!! {"errMsg": "chooseMedia:fail api scope is not declared in the privacy agreement", "errno": 112}
02-29看文档 https://developers.weixin.qq.com/miniprogram/dev/framework/
淘宝买了一堆源代码,不知道怎么变成小程序,有人知道吗?我和我的同学想做一个小程序的,但是偷懒,花几块钱从淘宝买了一堆源代码,现在不知道怎么用,有人知道吗?[图片]
02-27个人够用的话,30
小程序不花300认证,有办法开通小程序允许被搜索到的功能吗?小程序不花300认证,有办法开通小程序允许被搜索到的功能吗
02-26气泡显示的时候有遮罩层么,有的话在遮罩层隐藏时候处理。
如何监听页面点击事件?例如点击按钮,在按钮上显示了一个气泡,现在希望点击页面的任意一个地方,都可以将气泡隐藏。可以怎么做?
02-23需要配置downloadFile合法域名https://developers.weixin.qq.com/miniprogram/dev/api/network/download/wx.downloadFile.html
电脑上能进行保存操作,但是真机调试无法保存downloadImages: function (path, context, p) { const that = this; const ob = path.split('Url')[0]; return new Promise((resolve, reject) => { wx.downloadFile({ url: String(this.data[path]), success(res) { context.drawImage(res.tempFilePath, that.data[ob].x, that.data[ob].y, p, p); context.draw(true, () => { resolve(); // 成功时 resolve }); }, fail(error) { console.log(error); reject(error); // 失败时 reject } }); }); }, saveImage: function () { this.getCanvas().then(async () => { const context = wx.createCanvasContext('myCanvas'); context.width = this.data.canvasWidth; context.height = this.data.canvasHeight; context.setFillStyle('white'); context.fillRect(0, 0, 600, 700); async function getSystemInfoAsync(context) { return new Promise((resolve, reject) => { wx.getSystemInfo({ success: (res) => { var rpx = 150; var px = rpx * (res.windowWidth / 750); context.setData({ imgSize: px, }); resolve(); }, fail: (error) => { reject(error); } }); }); } await getSystemInfoAsync(this); const p = this.data.imgSize const that = this; console.log("sss"); // 绘制图片 if (this.data.faceUrl) { await this.downloadImages('faceUrl', context, p); } if (this.data.eyeUrl) { await this.downloadImages('eyeUrl', context, p); } if (this.data.eyebrowUrl) { await this.downloadImages('eyebrowUrl', context, p); } if (this.data.mouthUrl) { await this.downloadImages('mouthUrl', context, p); } if (this.data.gestureUrl) { await this.downloadImages('gestureUrl', context, p); } if (this.data.footUrl) { await this.downloadImages('footUrl', context, p); } if (this.data.decorateUrl) { await this.downloadImages('decorateUrl', context, p); } console.log("aaa"); context.draw(true, function () { // 将Canvas内容保存为本地文件 console.log("bbb") wx.canvasToTempFilePath({ canvasId: 'myCanvas', success: function (res) { // 保存到相册 wx.saveImageToPhotosAlbum({ filePath: res.tempFilePath, success: function () { wx.showToast({ title: '保存成功', icon: 'success', duration: 2000 }); }, fail: function (error) { console.error('保存失败', error); } }); // 清空 Canvas context.clearRect(0, 0, that.data.canvasWidth, that.data.canvasHeight); context.draw(); // 重新绘制空画布 }, fail: function (error) { console.error('canvasToTempFilePath 失败', error); } }); }); }) },
02-21配置好业务域名后就能正常跳转了, https://developers.weixin.qq.com/miniprogram/dev/framework/ability/domain.html
IOS ,webview无法打开该网页无法返回?[图片]IOS出现这种情况无法返回上一页,点了左上角的返回又重定向到这个页面
02-19因素挺多的吧,类目,运行情况,提交人,看运气吧
有春节前提交小程序代码审核的友友们吗?你们的通过审核了吗?如题
02-18