收藏
回答

在camera组件里的cover-view或cover-image在真机上无法覆盖camera组件?

如题,在手机预览情况下可以看到,但是真机模式下就不行

回答关注问题邀请回答
收藏

2 个回答

  • 社区技术运营专员--阳光
    社区技术运营专员--阳光
    2020-12-12

    你好,描述下复现流程,提供下这种格式的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2020-12-12
    有用
    回复
  • 今 朝
    今 朝
    2020-12-12
    <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>
    
    2020-12-12
    有用
    回复 1
    • 灬
      2021-05-14
      怎么解决的
      2021-05-14
      回复
登录 后发表内容
问题标签