我的手机是iphoneXR ,在开发工具中会显示cover-view,真机中不显示(p.s. 我是用uniapp写的)
<camera mode="scanCode" device-position="back" :flash="flashClose?'off':'on'" @error="error" style="width: 100%; " :style="[{height:screenHeight + 'px'}]"
@scancode="scanCode">
<cover-view class="centerSqare">
<cover-view class="div1"></cover-view>
<cover-view class="div2"></cover-view>
<cover-view class="div"></cover-view>
<cover-view class="div3"></cover-view>
<cover-view class="div4">
<cover-view class="close" @tap="closeScan"><cover-view class="cuIcon-close text-white"></cover-view></cover-view>
<cover-view class="light" @tap="openLight"><cover-view class="text-white" :class="flashClose?'cuIcon-flashlightclose':'cuIcon-flashlightopen'"></cover-view></cover-view>
</cover-view>
</cover-view>
</camera>
麻烦提供能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
给个代码片段链接吧