add.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!--pages/car/add.wxml-->
  2. <view class="container">
  3. <view class="formTopBlueBg"></view>
  4. <view class="width710" style="margin-top: -100rpx;">
  5. <form bindsubmit="formSubmit">
  6. <view class="part">
  7. <van-field required label="车牌号码" readonly border="{{false}}"></van-field>
  8. <car-num-input bind:setCarNum="licensePlate" isKeyboard="{{isKeyboard}}" inputOnFocusIndex="{{inputOnFocusIndex}}"></car-num-input>
  9. </view>
  10. <view class="part">
  11. <input name="licensePlate" value='{{licensePlate}}' hidden='true' />
  12. <!-- 车辆轴数 -->
  13. <van-field label="车辆轴数" required input-align="right" bindtap="hideKeybord">
  14. <view slot="input" style="width: 100%;">
  15. <input name="vehicleAxles" value='{{overArray[overIndex].id}}' hidden='true' />
  16. <picker bindchange="bindPickerChange" value="{{overIndex}}}" range="{{overArray}}" range-key="vehicleAxleNumber" data-pickername='over'>
  17. <view wx:if="{{overArray[overIndex].vehicleAxleNumber}}"> {{overArray[overIndex].vehicleAxleNumber}}</view>
  18. <view wx:else class="selectPlaceholder">{{defaultText}}</view>
  19. </picker>
  20. </view>
  21. <view slot="right-icon">
  22. <van-icon name="arrow" />
  23. </view>
  24. </van-field>
  25. <van-field label="司机姓名" name="driverName" input-align="right" placeholder="请输入司机姓名" bind:focus="hideKeybord" />
  26. <van-field label="司机号码" name="driverMobile" input-align="right" placeholder="请输入司机号码" bind:focus="hideKeybord" />
  27. <!-- <van-field label="营运证号图片" title-width="120" required input-align="left" border="{{ false }}" readonly></van-field> -->
  28. <!-- <view style="padding: 0 20rpx 20rpx;background-color: #fff;">
  29. <view style="width: 80px;height: 80px;line-height:80px;text-align:center;background-color: #f7f8fa;border-radius: 6rpx;position: relative;" bindtap="afterRead">
  30. <block wx:if="{{originalInvoicePhoto}}">
  31. <view style="width: 34rpx;height: 34rpx;line-height:34rpx;text-align:center;position: absolute;top: 0;right: 0;background-color: rgba(0, 0, 0, 0.7);">
  32. <van-icon name="cross" size="14px" color="#ffffff" catchtap="clearImgFun" />
  33. </view>
  34. <image src="{{originalInvoicePhotoUrl}}" mode="" style="width: 80px;height:80px;" />
  35. </block>
  36. <block wx:else="">
  37. <van-icon name="photograph" size="24px" color="#dcdee0" />
  38. </block>
  39. </view>
  40. <van-uploader file-list="{{ fileList }}" bind:after-read="afterRead" preview-size="80"/>
  41. </view> -->
  42. </view>
  43. <view class="submitBtn">
  44. <view style="padding-top: 100rpx;">
  45. <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}" type="info" form-type="submit">确定
  46. </van-button>
  47. </view>
  48. </view>
  49. </form>
  50. </view>
  51. </view>