微信开发者工具
message:Error: weapp/app.json: 根据 project.config.json 中 miniprogramRoot 指定的小程序目录 weapp/,app.json 未找到 appid: wxe064c3ff1a5d4765 openid: o6zAJs6BJFmg5BFhJ6hfnGS_hyqg ideVersion: 1.05.2108130 osType: win32-x64 time: 2021-08-24 10:39:50
求解
一个后知后觉的产品打杂,能否通过学习前端知识重新找到一些底气呢?坚信追求真理是yyds,在无数次反复思考中,结论是坚持!坚持!坚持!以谦卑之心做终身学习者。 小面是我个人思考的一些略显肤浅的学习规划,请各位大神多多指教: ①从原生js理论知识开始学习,记录基础要点; ②关注微信开发文档,试图读懂开发文档的运用技巧(以功能开发为主); ③往死里打代码,从踩坑实践中不断总结心得; 当然了,个人能力实在是~再次省略掉一串感叹语吧!啊哈哈哈,真心寻找热爱的小伙伴们 [图片]
https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly.html 最新稳定版本:1.05.2108130和最新开发版本1.05.2108202都试了,包括论坛的所有帖子都试过了,发现这个问题2018年就开始有,到现在都还没有解决。 [图片]
最新版本开发工具。 报错[图片]
如题。代码就不贴了 真机正常运行,模拟器时好时坏。 我只能暂时反过来写了。在授权之前有些需要联网的需求 app.js里已经获取到oepnid了,不要纠结为什么这么写
[图片][图片]
近期打开工具,底下老是报 [渲染层错误] Uncaught SyntaxError: Unexpected token '<'(env: Windows,mp,1.05.2107090; lib: 2.19.1) 用的是2.19.1的库 实在是找不出哪里出了问题,麻烦大佬们帮忙看下 [图片]
如何生成 扫码可以进入开发版本的二维码。。。
在开发者工具上,企业微信小程序模式,编译运行就在这报错,真机上预览没有出现此现象,看了该版本的更新日志是修复了这个卡死问题,不知有没方法跳过这个来调试[图片]
我们的维护工程师已经把校验文件放入了,为什么提交的时候访问不到呢?[图片]
开发者版本号是最新版本,2021.8.13这个,电脑系统win10,手机华为p10
[图片][图片]
开发者工具版本号:1.05.2108130 操作系统:win10 报错提示是我该页面中使用了wx:if 但是该页面中我并未使用wx:if [图片][图片]
https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly.html 当前的开发版本 Nightly 1.05.2108202
使用的是 稳定版 Stable Build (1.05.2108130 麻烦各位大神看下是哪里出了问题Windows 64 、[图片]
https://developers.weixin.qq.com/miniprogram/dev/framework/ability/domain.html
[图片]
搞了1天了没有进展,想做一个根据微信小程序自带ORC插件返回值,根据card_position.pos的值,将这个图片剪裁后保存在本地。 写了一个测试,电脑运行正常,真机测试就返回一个白图(大小是正确裁剪后的大小)。 后来发现是img.onload = function(e){} 电脑调试可以返回 Event {isTrusted: true, type: "load", target: img, currentTarget: img, eventPhase: 2, …} 但是真机就返回 undefined 哪位帮我看看代码有啥问题。另外,如何在js内直接根据position剪裁图片,而不需要在wxml里建立一套<canvas>,是不是建立一个wx.createOffscreenCanvas?这样的代码如何写? wxml: <ocr-navigator bind:onSuccess="OcrSuccess" certificateType="idCard" opposite="{{false}}"> <view class="cameraImg"> <image src="../../images/uploadIDcard.png"></image> </view> </ocr-navigator> <canvas type="2d" id="image-cropper-canvas" style="position:fixed;width:{{canvas.width}}px;height:{{canvas.height}}px;"></canvas> <image class="cropimg1" style="width:{{viewImagesLocation.width}}rpx;height:{{viewImagesLocation.height}}rpx;top:{{viewImagesLocation.top}}rpx;left:{{viewImagesLocation.left}}rpx;" src="{{cropedidCardImgUrl}}"/> 身份证返回结果实例 { "type": 0, "card_position": { "pos": { "left_top": { "x": 1085.625, "y": 621.75 }, "right_top": { "x": 338.125, "y": 594.75 }, "right_bottom": { "x": 303.625, "y": 99.75 }, "left_bottom": { "x": 1189.125, "y": 126.75 } }, "label": [] }, "image_width": 1280, "image_height": 960, "image_path": "http://tmp/wx4418e3e031e551be.o6zAJs-yC5ByIjnyyy09jKDZquXk.dlrc7P7WlhnGb4aca86b078fc2acb5b08e7a0f438943.jpg" } JS: Page({ data: { idCardImgUrl: '', cropedidCardImgUrl: '', //剪切画板的大小 canvas: { width: 0, height: 0 }, // 图片定位 viewImagesLocation: { width: 0, height: 0, top: 0, left: 0 } }, //身份证识别 OcrSuccess: function (res) { var that = this; console.log(res); var idCardInfo = res.detail var cardposition = res.detail.card_position that.setData({ ['formdata.brxm']: idCardInfo.name.text, ['formdata.idNumber']: idCardInfo.id.text, idCardImgUrl: idCardInfo.image_path }); //按照ORC插件给的识别区域裁剪图片得到身份证图片 //设置前端画板大小 that.setData({ canvas: { width: idCardInfo.image_width, height: idCardInfo.image_height } }) // 画图 const query = that.createSelectorQuery() query.select('#image-cropper-canvas').fields({ node: true, size: true }).exec((res) => { const canvas = res[0].node const ctx = canvas.getContext('2d') //原图的宽高和剪裁后的宽高 let canvasWidth = idCardInfo.image_width let canvasHeight = idCardInfo.image_height let cropWidth = cardposition.pos.right_top.x - cardposition.pos.left_top.x let cropHeight = cardposition.pos.right_bottom.y - cardposition.pos.left_top.y // 设置画布宽高 canvas.width = canvasWidth canvas.height = canvasHeight //canvas 2d 通过此函数创建一个图片对象 let img = canvas.createImage(); img.src = idCardInfo.image_path img.onload = (e) => { console.log(e) ctx.drawImage(img, 0, 0, canvasWidth, canvasHeight, 0, 0, canvasWidth, canvasHeight); let x = cardposition.pos.left_top.x let y = cardposition.pos.left_top.y let width = cropWidth let height = cropHeight //设置裁剪后显示img控件区域 that.setData({ viewImagesLocation: { width: width, height: height, top: 0, left: 0 } }) wx.canvasToTempFilePath({ x: x, y: y, width: width, height: height, destWidth: cropWidth, destHeight: cropHeight, canvas: canvas, fileType: 'jpg', quality: that.data._quality, success(res) { console.log(res.tempFilePath) that.setData({ cropedidCardImgUrl: res.tempFilePath }); }, fail: function (e) { console.log(e) } }) } img.onerror = (e) => { console.error('err:', e) } }) } })
操作系统:win10 开发工具版本 :Stable Build (1.05.2108130) app.json中输入tabBar和window自动完成全词匹配,但是{}中无自动填充内容,我看网上的视频教程都是可以自动填充一些数据的,我的开发工具是不是有问题? [图片]
小程序助手
帮助小程序相关成员在手机端更方便、及时地管理小程序
小程序助手
扫码体验