<view class="warp"><view class="center"><block wx:if="{{src!=null}}"><image class="content" src="{{src}}"></image></block><block wx:else><camera class="content" device-position="{{position}}" flash="auto" data-event-opts="{{[['error',[['error',['$event']]]]]}}" binderror="__e"><cover-image class="{{[type==1?'coverImg-type1':'coverImg-type0']}}" src="{{type==1?'../../static/camera/card.png':'http://139.9.103.171:1888/miniofile/xlyq/face2.png'}}"></cover-image></camera></block></view><view class="bottom"><image class="cancel" src="../../static/camera/back.png" data-event-opts="{{[['tap',[['cancel',['$event']]]]]}}" bindtap="__e"></image><block wx:if="{{src!=null}}"><image class="confirm" src="../../static/camera/confirm1.png" data-event-opts="{{[['tap',[['confirm',['$event']]]]]}}" bindtap="__e"></image></block><block wx:else><image class="confirm" src="../../static/camera/takephoto.png" data-event-opts="{{[['tap',[['takePhoto',['$event']]]]]}}" bindtap="__e"></image></block><block wx:if="{{src==null}}"><image class="change" src="../../static/camera/change.png" data-event-opts="{{[['tap',[['change',['$event']]]]]}}" bindtap="__e"></image></block><block wx:else><image class="change" src="../../static/camera/rephoto.png" data-event-opts="{{[['tap',[['rephoto',['$event']]]]]}}" bindtap="__e"></image></block></view></view>