add.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!--pages/temporary/add.wxml-->
  2. <view class="container" style="padding-bottom:100px;">
  3. <view class="height20"></view>
  4. <view>
  5. <form bindsubmit="formSubmit">
  6. <view class="part">
  7. <van-field label="预约分类" required input-align="right" bindtap="hideKeybord">
  8. <view slot="input" style="width: 100%;">
  9. <input name="appointmentClassify" value='{{appointmentClassifyArray[appointmentClassifyIndex].value}}' hidden='true' />
  10. <picker bindchange="bindPickerChange" value="{{appointmentClassifyIndex}}" range="{{appointmentClassifyArray}}" range-key="label" data-pickername='appointmentClassify'>
  11. <view wx:if="{{appointmentClassifyArray[appointmentClassifyIndex].label}}"> {{appointmentClassifyArray[appointmentClassifyIndex].label}}</view>
  12. <view wx:else class="selectPlaceholder">{{defaultText}}</view>
  13. </picker>
  14. </view>
  15. <view slot="right-icon">
  16. <van-icon name="arrow" />
  17. </view>
  18. </van-field>
  19. <view class="topItem">
  20. <van-field required label="车牌号码" readonly border="{{false}}"></van-field>
  21. <car-num-input bind:setCarNum="licensePlate" isKeyboard="{{isKeyboard}}" inputOnFocusIndex="{{inputOnFocusIndex}}" inputPlates="{{inputPlates}}" isNewEnergy="{{isNewEnergy}}"></car-num-input>
  22. <input name="licenseNumber" value='{{licensePlate}}' hidden='true' />
  23. </view>
  24. <view class="height20"></view>
  25. <van-field label="司机姓名" required name="driverName" value="{{ driverName }}" placeholder="请填写司机姓名" input-align="right" bindtap="hideKeybord"></van-field>
  26. <van-field label="司机电话" required name="driverMobile" value="{{ driverMobile }}" placeholder="请填写司机电话" input-align="right" bindtap="hideKeybord"></van-field>
  27. </view>
  28. <view class="fixedBtn submitBtn">
  29. <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}" type="info" form-type="submit">确定
  30. </van-button>
  31. </view>
  32. </form>
  33. </view>
  34. </view>
  35. <wxs module="filters" src="../../utils/filter.wxs"></wxs>