请问这个问题解决了吗?如果上线了会不会影响功能
NodesRef.fields在真机报createView of undefined?wx.createSelectorQuery().in(this).select(`#customMap`).fields({ node: true, rect: true }, res => { console.log(res.node) }).exec() 这个api在在开发者工具上 还有手机预览模式有回调 正常调用 然而在真机调试却报一个错 如果这个api是直接在页面使用 就没报错 真机也可以拿到回调 但是在组件内部使用就报错 canvas不加type=2d就没问题 可以获取到一部分数据 但是加了就报错 [图片] [图片] [图片]
2020-12-16<camera wx:if="{{isAuthCamera}}" class="camera" mode="normal" device-position="back" flash="{{light}}" style="width: 100%; height: {{WindowHeight-FooterHeight}}px" bindinitdone="caInit" binderror="caError"> <view hidden="{{isCaLoading}}"> <cover-view class="back flex align-center" style="width:{{Custom.width}}px;height:{{Custom.height}}px;padding-top:{{StatusBar}}px;margin-left:calc(750rpx - {{Custom.right}}px)"> <cover-image src="/images/left.png" bind:tap="goBack"></cover-image> </cover-view> <cover-view class="img-wrap" wx:if="{{imgList.length > 0}}" bind:tap="goMoreView"> <cover-view class="img-count text-white bg-red round text-sm">{{imgList.length}}</cover-view> <cover-image src="{{imgList[imgList.length - 1]}}"></cover-image> <cover-view class="img-footer flex justify-center text-center text-white padding-tb-xs text-sm">完成</cover-view> </cover-view> <cover-image src="images/flash_off.png" wx:if="{{light == 'off'}}" class="light" bind:tap="onLightEvent"> </cover-image> <cover-image src="images/flash_on.png" wx:elif="{{light == 'on'}}" class="light" bind:tap="onLightEvent"> </cover-image> <cover-image src="images/flash_auto.png" wx:else class="light" bind:tap="onLightEvent"></cover-image> <cover-view class="controls flex flex-direction justify-between"> <cover-view class="text text-white text-center">平行于参考线拍摄</cover-view> <cover-view class=""></cover-view> <cover-view class="line"></cover-view> <cover-view class="line"></cover-view> <cover-view class=""></cover-view> <cover-view class="vertical flex justify-between"> <cover-view class=""></cover-view> <cover-view class="vertical-line"></cover-view> <cover-view class="vertical-line"></cover-view> <cover-view class=""></cover-view> </cover-view> </cover-view> </view> </camera>
在camera组件里的cover-view或cover-image在真机上无法覆盖camera组件?如题,在手机预览情况下可以看到,但是真机模式下就不行
2020-12-12