edit.wxml 2.2 KB

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