<view class="page">
    <view class="page__hd">
        <view class="page__title">Barcode</view>
        <view class="page__desc">条形码</view>
    </view>
    <view class="page__bd">
        <view class="sub-title">请输入13位条形码，即时输入即时生成</view>
        <wux-cell-group>
            <wux-cell hover-class="none">
                <wux-input value="{{ number }}" controlled bind:change="onChange" />
            </wux-cell>
        </wux-cell-group>
        <view class="sub-title">提示：扫描只能识别有效的条形码</view>
        <view class="barcode">
            <wux-barcode
                number="{{ number }}"
                options="{{ options }}"
                width="200"
                height="100"
                bind:valid="onValid"
                bind:invalid="onInvalid"
                bind:success="onSuccess"
                bind:error="onError"
                bind:load="onLoad"
            />
        </view>
    </view>
</view>
