<view class="{{['data-v-54ff4a66',(true)?'camera-page':'',(phoneSafeArea)?'safety-zone-bottom':'']}}" style="{{'background-color:#333;'+(dynamicStyle)}}"><block wx:if="{{canvasH}}"><canvas class="camera-canvas data-v-54ff4a66" style="{{'width:'+(canvasW+'px')+';'+('height:'+(canvasH+'px')+';')}}" canvas-id="myCanvas"></canvas></block><view hidden="{{!(!cameraSrc)}}" class="data-v-54ff4a66"><view data-event-opts="{{[['tap',[['onCancel',['$event']]]]]}}" class="back-button data-v-54ff4a66" bindtap="__e"><text style="color:#fff;font-size:32rpx;" class="data-v-54ff4a66">返回</text></view><camera class="camera-box data-v-54ff4a66" style="width:390px;height:390px;top:180rpx;" mode="normal" device-position="{{devicePosition}}" resolution="high" aspect="1:1" frame-size="medium" output-dimension="max" flash="off" data-event-opts="{{[['error',[['onChangeError',['$event']]]]]}}" binderror="__e"><cover-view class="camera-aperture data-v-54ff4a66" id="frameDom"></cover-view></camera><block wx:if="{{$root.g0>0}}"><view class="preview-area data-v-54ff4a66"><scroll-view class="preview-scroll data-v-54ff4a66" scroll-x="{{true}}"><view class="preview-grid data-v-54ff4a66"><block wx:for="{{previewImages}}" wx:for-item="image" wx:for-index="index" wx:key="index"><view class="preview-item data-v-54ff4a66"><image src="{{image}}" mode="aspectFill" class="data-v-54ff4a66"></image><view data-event-opts="{{[['tap',[['deletePreviewImage',[index]]]]]}}" class="delete-icon data-v-54ff4a66" catchtap="__e">×</view></view></block></view></scroll-view></view></block><view class="camera-control data-v-54ff4a66" style="z-index:999;background-color:#333;"><view class="right-item data-v-54ff4a66"><block wx:if="{{tipsText}}"><view style="color:#fff;font-size:28rpx;" class="data-v-54ff4a66">{{tipsText}}</view></block></view><view class="center-item data-v-54ff4a66"><view data-event-opts="{{[['tap',[['takePhoto',['$event']]]]]}}" class="photo-btn data-v-54ff4a66" style="background:rgba(255, 255, 126, 0.8);padding:15px;border-radius:50%;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);" bindtap="__e"><view class="photo data-v-54ff4a66" style="color:#333;font-size:16px;"></view></view></view><view class="left-item data-v-54ff4a66"><view data-event-opts="{{[['tap',[['onConfirm',['$event']]]]]}}" class="back-btn data-v-54ff4a66" style="color:#fff !important;font-size:26px;" bindtap="__e">确认 </view></view></view></view><view hidden="{{!(cameraSrc)}}" class="camera-img data-v-54ff4a66"><view class="preview-box data-v-54ff4a66"><image class="preview data-v-54ff4a66" src="{{cameraSrc}}" mode="widthFix"></image></view><view class="preview-edit data-v-54ff4a66"><view data-event-opts="{{[['tap',[['onCancel',['$event']]]]]}}" class="preview-edit-btn data-v-54ff4a66" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['onUpload',['$event']]]]]}}" class="preview-edit-btn data-v-54ff4a66" bindtap="__e">继续上传</view></view></view><block wx:if="{{phoneSafeArea}}"><view class="safety-zone data-v-54ff4a66"></view></block><view class="photo-tip data-v-54ff4a66"><text class="data-v-54ff4a66">拍照后ISBN与书名不可修改</text></view></view>