bindDevice.wxml 530 B

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