<view class="main_box">
<camera
mode="scanCode"
flash="off"
device-position="back"
output-dimension="{width: 640, height: 480}"
@stop="handleStop"
@scancode="handleScanCode"
@error="handleError">
<cover-view
class='scan-animation'
:animation="state.animationData"
></cover-view>
</camera>
</view>