- <form bindsubmit="submit">
- <view class="btn-form-wapper">
- <van-button type="primary" custom-class="btn-form" form-type="submit">添加</van-button>
- </view>
- <van-field required value="{{deviceNum}}" label="设备码" name="openNum" placeholder="请输入设备码" error-message="{{openNumError}}">
- <van-icon slot="right-icon" name="scan" bindtap="scanCode" />
- </van-field>
- <van-field required label="名称" name="deviceName" placeholder="请输入设备名称" error-message="{{deviceNameError}}" />
- </form>
|