sell.wxml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <import src="../../module/header.wxml"/>
  2. <import src="../../module/footer.wxml"/>
  3. <template
  4. is="header"
  5. data="{{title:'预约卖车',headerheight:headerheight,hasback:false}}"
  6. />
  7. <page-scroll
  8. className="conent"
  9. styleSheet="height:{{windowh-headerheight}}rpx;"
  10. scroll-y="{{selectbar==''?'true':'false'}}"
  11. bindscrolltolower="{{hasloadall?'':'getMyBuy'}}"
  12. >
  13. <image class="sell_banner" src="../../img/sellbanner.png"/>
  14. <view
  15. class="sell_form"
  16. >
  17. <view
  18. class="sell_form_t"
  19. >
  20. 完善信息,预约卖车
  21. </view>
  22. <view
  23. class="sell_form_item"
  24. >
  25. <view class="sell_form_it">
  26. <view class="sell_form_itw">
  27. *
  28. </view>
  29. 联系方式
  30. </view>
  31. <input
  32. class="sell_form_input"
  33. placeholder="请输入"
  34. bindinput="bindMobile"
  35. type="number"
  36. placeholder-style="color:#9B9B9B"
  37. />
  38. </view>
  39. <view
  40. class="sell_form_item"
  41. >
  42. <view class="sell_form_it">
  43. <view class="sell_form_itw">
  44. *
  45. </view>
  46. 车型
  47. </view>
  48. <view
  49. class="sell_form_input"
  50. bindtap="showSeriesSelect"
  51. >
  52. <view wx:if="{{series&&series.car_series_name}}" class="series_val">{{series.car_series_name}}</view>
  53. <view wx:else class="placeholder_val">请选择</view>
  54. </view>
  55. <!-- <picker
  56. class="sell_form_picker"
  57. bindchange="bindSeriesChange"
  58. value="{{selectseries['0']}}"
  59. range="{{series['0']}}"
  60. range-key="brand_name"
  61. data-index="0"
  62. custom-item="{{customItem}}">
  63. <view class="picker">
  64. {{series['0'][selectseries['0']].brand_name||'请选择>'}}
  65. </view>
  66. </picker>
  67. <picker
  68. class="sell_form_picker"
  69. bindchange="bindSeriesChange"
  70. value="{{selectseries['1']}}"
  71. range="{{series['1']}}"
  72. range-key="car_series_name"
  73. data-index="1"
  74. custom-item="{{customItem}}">
  75. <view class="picker">
  76. {{series['1'][selectseries['1']].car_series_name||'请选择>'}}
  77. </view>
  78. </picker>
  79. <picker
  80. class="sell_form_picker"
  81. bindchange="bindSeriesChange"
  82. value="{{selectseries['2']}}"
  83. range="{{series['2']}}"
  84. range-key="car_model_name"
  85. data-index="2"
  86. custom-item="{{customItem}}">
  87. <view class="picker">
  88. {{series['2'][selectseries['2']].car_model_name||'请选择>'}}
  89. </view>
  90. </picker> -->
  91. </view>
  92. <view
  93. class="sell_form_item"
  94. >
  95. <view class="sell_form_it">
  96. <view class="sell_form_itw">
  97. *
  98. </view>
  99. 上牌时间
  100. </view>
  101. <picker
  102. class="sell_form_picker"
  103. mode="date"
  104. value="{{date}}"
  105. start="1998-01-01"
  106. end="2020-01-01"
  107. bindchange="bindDateChange">
  108. <view class="picker">
  109. 当前选择: {{date}}
  110. </view>
  111. </picker>
  112. </view>
  113. <view
  114. class="sell_form_item"
  115. >
  116. <view class="sell_form_it">
  117. <view class="sell_form_itw">
  118. *
  119. </view>
  120. 行驶里程
  121. </view>
  122. <input
  123. class="sell_form_input"
  124. placeholder="请输入"
  125. bindinput="getMileage"
  126. bindblur="initMileage"
  127. value="{{mileage}}"
  128. placeholder-style="color:#9B9B9B"
  129. />
  130. <view class="sell_form_itr">万公里</view>
  131. </view>
  132. <view
  133. class="sell_form_item"
  134. >
  135. <view class="sell_form_it">
  136. <view class="sell_form_itw">
  137. *
  138. </view>
  139. 上牌地址
  140. </view>
  141. <picker
  142. class="sell_form_picker"
  143. bindchange="bindRegionChange"
  144. value="{{areaselect['0']}}"
  145. range="{{area['0']}}"
  146. range-key="area_name"
  147. data-index="0"
  148. bindchange="changeArea"
  149. custom-item="{{customItem}}">
  150. <view class="picker">
  151. {{area['0'][areaselect['0']].area_name||'请选择>'}}
  152. </view>
  153. </picker>
  154. <picker
  155. class="sell_form_picker"
  156. bindchange="bindRegionChange"
  157. value="{{areaselect['1']}}"
  158. range="{{area['1']}}"
  159. range-key="area_name"
  160. data-index="1"
  161. bindchange="changeArea"
  162. custom-item="{{customItem}}">
  163. <view class="picker">
  164. {{area['1'][areaselect['1']].area_name||'请选择>'}}
  165. </view>
  166. </picker>
  167. </view>
  168. </view>
  169. <view
  170. class="upload_img_box"
  171. >
  172. <view
  173. class="upload_img_t"
  174. >
  175. 上传车辆照片
  176. </view>
  177. <view
  178. class="upload_img_list"
  179. >
  180. <block wx:for="{{imgssp}}" wx:key="{{item}}">
  181. <view class="upload_img_item">
  182. <image
  183. data-index="{{index}}"
  184. bindtap="uploadImg"
  185. class="upload_img_item_pic"
  186. src="{{imgs[index]||'../../img/upload.png'}}"
  187. />
  188. <view
  189. data-index="{{index}}"
  190. bindtap="deletePic"
  191. wx:if="{{imgs[index]}}"
  192. class="upload_img_item_deletebg">
  193. <image
  194. class="upload_img_item_delete"
  195. src="../../img/delete2.png"
  196. />
  197. </view>
  198. </view>
  199. </block>
  200. </view>
  201. </view>
  202. <view
  203. class="sub_sell"
  204. bindtap="subSell"
  205. >提交预约</view>
  206. <image class="sell_bottom_banner" src="../../img/sell.png"/>
  207. <template
  208. is="footer"
  209. data="{{local:2,footerheight:footerheight}}"
  210. />
  211. </page-scroll>
  212. <brandlist
  213. getbrand="{{getbrand}}"
  214. getseries="{{getseries}}"
  215. show="{{brandlistshow}}"
  216. bind:close="closeBrandList"
  217. bind:select="selectSeries"
  218. />
  219. <!-- <include src="../../module/logs/logs.wxml"/> -->