writeVIN.wxml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!--StepPage/pages/fourth/fourth.wxml-->
  2. <van-overlay show="{{show}}" z-index='999' style="height: 90%;">
  3. <view class="show_box">
  4. <view class="show_title"> <van-search style="width: 85%;" value="{{ searchValue }}" placeholder="请输入搜索关键词" bind:search="onSearch"
  5. />
  6. <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancel">取消</view>
  7. </view>
  8. <scroll-view style="height: 88%;" scroll-y="true">
  9. <view wx:for="{{searchList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChooseVin">
  10. {{item.vin_no}}
  11. </view>
  12. </scroll-view>
  13. </view>
  14. </van-overlay>
  15. <van-overlay show="{{c_show}}" z-index='999' style="height: 90%;">
  16. <view class="show_box">
  17. <view class="show_title"> <van-search style="width: 85%;" value="{{ searchValuec }}" placeholder="请输入搜索关键词" bind:search="onSearch"
  18. />
  19. <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelc">取消</view>
  20. </view>
  21. <scroll-view style="height: 88%;" scroll-y="true">
  22. <view wx:for="{{cusList}}" wx:key="index" data-item="{{item}}" class="show_item" bindtap="handleChooseCus">
  23. {{item.name}}
  24. </view>
  25. </scroll-view>
  26. </view>
  27. </van-overlay>
  28. <van-overlay show="{{p_show}}" z-index='999' style="height: 90%;">
  29. <view class="show_box">
  30. <view class="show_title"> <van-search style="width: 85%;" value="{{ searchValuep }}" placeholder="请输入搜索关键词" bind:search="onSearch"
  31. />
  32. <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelp">取消</view>
  33. </view>
  34. <scroll-view style="height: 88%;" scroll-y="true">
  35. <view wx:for="{{phoneList}}" wx:key="index" data-item="{{item}}" class="show_item" bindtap="handleChoosePhone">
  36. {{item.phone}}
  37. </view>
  38. </scroll-view>
  39. </view>
  40. </van-overlay>
  41. <view wx:if="{{showCamera}}" style="width: 100%; height: 100%;" class="cation">
  42. <camera device-position="{{cameraSet}}" flash="auto" binderror="error" style="width: 100%; height: 70%;margin:40rpx auto"></camera>
  43. <view class="take_content">
  44. <view class="take" bindtap="takePhoto">
  45. <image src="../../../images/take.png" mode="widthFix" style="width: 40pt;"/>
  46. </view>
  47. <view bind:tap='handleExpand' style="position: absolute; top: 50rpx;right: 40rpx;"><image src="../../../images/change.png" mode="widthFix" style="width: 40pt;"/></view>
  48. </view>
  49. </view>
  50. <view wx:else>
  51. <image src="../../../images/head.png" style="width:100%;height: 250rpx;z-index:-1"></image>
  52. <view class="title">3.车架号</view>
  53. <view class="item_content">
  54. <view style="width:100%">
  55. <van-cell-group>
  56. <button bindtap="scanBarcode" style="margin-bottom:20rpx" wx:if="{{set_status!=='is_detail'}}">扫描车架号</button>
  57. <van-field
  58. label='车架号'
  59. value="{{ vinText }}"
  60. placeholder="请输入车架号"
  61. clearable
  62. required
  63. readonly="{{set_status=='is_detail'}}"
  64. bind:change="onChange"
  65. use-button-slot
  66. >
  67. <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" bindtap="handleShow">
  68. 选择
  69. </van-button>
  70. </van-field>
  71. <van-field
  72. value="{{ custom_name }}"
  73. label="客户姓名"
  74. type="text"
  75. placeholder="请输入客户姓名"
  76. use-button-slot
  77. readonly="{{set_status=='is_detail'}}"
  78. bind:change='onChangeName'
  79. >
  80. <van-button slot="button" size="small" type="primary" bindtap="handleShowCus" wx:if="{{canChoose&&set_status!='is_detail'}}">
  81. 选择
  82. </van-button>
  83. </van-field>
  84. <van-field
  85. value="{{ custom_mobile }}"
  86. bind:change='onChangePhone'
  87. label="客户手机号"
  88. placeholder="请输入客户手机号"
  89. type='text'
  90. readonly="{{set_status=='is_detail'}}"
  91. border="{{ false }}"
  92. use-button-slot
  93. >
  94. <van-button slot="button" size="small" type="primary" bindtap="handleShowCusP" wx:if="{{canChoose&&set_status!='is_detail'}}">
  95. 选择
  96. </van-button>
  97. </van-field>
  98. </van-cell-group>
  99. <view class="image_item" style="position: relative;" bindtap="handleOpenCamera" wx:for="{{imgList}}" wx:key="index">
  100. <view wx:if="{{item.src&&set_status!=='is_detail'?true:false}}" style="position: absolute;right: 0;top: 0;" catch:tap="handleDelPic" data-index="{{index}}"><van-icon name="close" color='red' size='30'/></view>
  101. <image wx:if="{{item.src?true:false}}" style="width: 100%;height: 100%;" src="{{set_status?item.show_url:item.src}}"></image>
  102. <image wx:else style="width: 100%;height: 100%;" src="https://zh.qingyaokeji.com/2.jpg"></image>
  103. </view>
  104. </view>
  105. </view>
  106. <view class="btn">
  107. <van-button color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleReturn"><text class="font_item">上一步</text></van-button>
  108. <van-button disabled='{{vinText?false:true}}' color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleNext"> <text class="font_item">下一步</text></van-button>
  109. </view></view>