收藏
回答

iOS端camera cover-view渲染异常

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug camera 微信iOS客户端 7.0.10 2.10.1

安卓端,cover-view渲染正常,iOS端模拟器正常,但是苹果真机就不显示我设置的遮



<view class="mc_container" hidden='{{isHide}}' style='display:{{isHide ? "none" : "block"}}'> <camera device-position="{{dp}}" hidden='{{isHide}}' style='display:{{isHide ? "none" : "block"}}'> <!-- 头占位块 --> <cover-view style='height:{{slotBlock_height_h}}px;width:100%;' class='slot_block'></cover-view> <cover-view style='width:{{slotBlock_width_v}}px;height:{{slotBlock_height_v}}px;' class='slot_block slot_block_v'></cover-view> <!-- 拍照块 --> <cover-view class='shot_box {{maskType}}_shot_box'> <cover-image style="width:{{mImgWidth}}px;height:{{mImgHeight}}px;left:{{mImgLeft}}px;top:{{mImgTop}}px" class='mask_image {{maskT}}' src='./images/mask_{{maskType}}.png'></cover-image> </cover-view> <!-- 尾占位快 --> <cover-view style='width:{{slotBlock_width_v}}px;height:{{slotBlock_height_v}}px;' class='slot_block slot_block_v'></cover-view> <cover-view style='height:{{slotBlock_height_h}}px;width:100%;' class='slot_block'></cover-view> <!-- 视频计时字符串 --> <cover-view hidden='{{maskType !== "video"}}' class='mc_time_str'>{{timeString}}</cover-view> <!-- 提示字符串 --> <cover-view class='{{maskType}}_infoText'>{{infoText}}</cover-view> <!-- 退出按钮 --> <cover-image catchtap='onHideMyCamera' class='mc_hide' src="./images/return.png"></cover-image> <!-- 拍照操作按钮 --> <cover-view hidden='{{maskType === "video"}}' class='mc_btn_takephoto' catchtap='onTakephoto'></cover-view> <!-- 录像操作按钮 --> <cover-view hidden='{{maskType !== "video"}}' class='mc_btn_videotape {{isVideotaping ? "videotaping" : ""}}' catchtap='onVideotapeBtnClick'></cover-view> </camera> <canvas hidden='{{isHide}}' canvas-id='cutting' style='width:{{cw}}px;height:{{ch}}px;display:{{isHide ? "none" : "block"}}' class='cuttingCanvas'></canvas> </view>
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签