<view class="container">
  <view class="c_top">
      <text bindtap="back" class="iconfont iconfanhui" />
  </view>
  <view class="c_cam">
    <camera wx:if="{{!currentImg}}" device-position="{{isBackCamera?'back':'front'}}" flash="off" binderror="error" ></camera>
    <image wx:else src="{{currentImg}}" mode="aspectFit" />
    <image class="mask" src="{{cdn_url}}/images/mask/{{current}}.png" />
  </view>
    
  <view class="c_bottom">
    <text>请正对摄像头拍照</text>
    <view class="c_btn" wx:if="{{!currentImg}}">
      <view class="preview">
        <text wx:if="{{!currentImg}}" bindtap="selectImage" class="iconfont iconzhaopian" />
        <image wx:else src="{{currentImg}}" mode="aspectFit" />
      </view>
      <text bindtap="takePhoto" class="take_photo iconfont iconpaizhao" />
      <text bindtap="changPosition" class="iconfont iconfanzhuanxiangji1" />
    </view>

    <view class="handle_img" style="--bottom: {{isIphoneX?'68rpx':'0'}};" wx:else>
      <text bindtap="reTake">重拍</text>
      <text bindtap="submit">使用图片</text>
    </view>
      
  </view>
    
</view>
  
