publishSource.vue 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619
  1. <template>
  2. <view class="content">
  3. <view class="content2">
  4. <view class="row1">
  5. <view class="left">
  6. <view class="top" @click="selectAddress(0)">
  7. <view class="send">装</view>
  8. <view class="title">
  9. {{dataObj.sendArea?(dataObj.sendPrivate + dataObj.sendCity+dataObj.sendArea):'选择装货地区'}}
  10. </view>
  11. </view>
  12. <view class="bottom">
  13. <input type="text" value="" placeholder="输入详细地址" v-model="dataObj.sendDetailedAddress" />
  14. </view>
  15. </view>
  16. <view class="right" @click="selectAddress(0)" v-if="!dataObj.sendArea">
  17. <view v-if='dataObj.sendArea' class="right"></view>
  18. <view class="right" v-else>
  19. <image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;">
  20. </image>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="row2">
  25. <view class="left">
  26. <view class="top" @click="selectAddress(1)">
  27. <view class="collect">卸</view>
  28. <view class="title">
  29. {{dataObj.unloadArea?(dataObj.unloadPrivate + dataObj.unloadCity+dataObj.unloadArea):'选择卸货地区'}}
  30. </view>
  31. </view>
  32. <view class="bottom">
  33. <input type="text" value="" placeholder="输入详细地址" v-model="dataObj.unloadDetailedAddress" />
  34. </view>
  35. </view>
  36. <view class="right" @click="selectAddress(1)" v-if="!dataObj.unloadArea">
  37. <view v-if='dataObj.unloadArea' class="right">{{(dataObj.unloadCity+dataObj.unloadArea)}}</view>
  38. <view class="right" v-else>
  39. <image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;">
  40. </image>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="content3">
  46. <view class="row">
  47. <view class="left">预估总里程</view>
  48. {{dataObj.cargoDistance }}
  49. km
  50. </view>
  51. </view>
  52. <view class="content3">
  53. <view class="row" @click="isShowPopup1=true">
  54. <view class="left">货物信息</view>
  55. <view class="right flex">
  56. {{dataObj.goodsName?dataObj.goodsName+'、'+dataObj.packageType+'、'+dataObj.weight:"完善货物信息"}}
  57. <u-icon name="arrow-right" size="20"></u-icon>
  58. </view>
  59. </view>
  60. <view class="row" @click="isShowPopup2=true">
  61. <view class="left">车型车长</view>
  62. <view class="right flex">{{dataObj.carModel?dataObj.carModel+'、'+dataObj.carLength:"选择车型车长"}}<u-icon
  63. name="arrow-right" size="20"></u-icon></view>
  64. </view>
  65. </view>
  66. <view class="content3">
  67. <view class="row">
  68. <view class="left">运价单位</view>
  69. <view class="btn flex">
  70. <view class="price-item" :class="index==priceIndex?'active':''" v-for="(item,index) in priceBtnList"
  71. @click="selectPriceType(item,index)">
  72. <view class="">
  73. {{item.name}}
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="row y-price flex">
  79. <view class="left">运价</view>
  80. <view class="right" v-if="priceBtnType==0">
  81. <input type="number" value="" placeholder="输入运费单价" class="input" v-model="dataObj.freightPrice" />
  82. </view>
  83. <view class="right" v-if="priceBtnType==1">
  84. <input type="number" value="" placeholder="输入车数" class="input" v-model="dataObj.freightPrice" />
  85. </view>
  86. <view class="right" v-if="priceBtnType==2">
  87. <input type="number" value="" placeholder="输入方数" class="input" v-model="dataObj.freightPrice" />
  88. </view>
  89. </view>
  90. </view>
  91. <view class="content3">
  92. <view class="row" @click="isShowPopup3=true">
  93. <view class="left">货站信息</view>
  94. <view class="right flex">
  95. {{dataObj.contacts?dataObj.contacts+'、'+dataObj.contactsPhone+'、'+dataObj.freightStationName:"完善货站信息"}}
  96. <u-icon name="arrow-right" size="20"></u-icon>
  97. </view>
  98. </view>
  99. </view>
  100. <view class="content5">
  101. <view class="flex row" @click="selectValidityPeriod(0)">
  102. <view class="left">装车日期</view>
  103. <view class="right flex">
  104. {{dataObj.loadingDate?dataObj.loadingDate:"选择装车日期"}}
  105. <u-icon name="arrow-right" size="20"></u-icon>
  106. </view>
  107. </view>
  108. <view class="flex row" @click="selectValidityPeriod(1)">
  109. <view class="left-text">时段</view>
  110. <view class="right flex">
  111. {{dataObj.periodOfTime?dataObj.periodOfTime:'选择装时段'}}
  112. <u-icon name="arrow-right" size="20"></u-icon>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="content5">
  117. <view class="row">
  118. <view class="left">备注(选填)</view>
  119. </view>
  120. <view class="row">
  121. <u--textarea v-model="dataObj.remark" placeholder="请输入内容" :count='true' maxlength='500'>
  122. </u--textarea>
  123. </view>
  124. <!-- <view class="flex">
  125. <u-button :type="item.type" v-for="(item,index) in remarkList"
  126. @click="remarkBtnChange(item,index)">{{item.name}}</u-button>
  127. </view> -->
  128. <!-- <view class="cartype-item" style="font-size: 24rpx;" :class="item.checked?'active':''"
  129. v-for="(item,index) in remarkList" @click="selectRemarkType(item,index)">
  130. <view class="">
  131. {{item.name}}
  132. </view>
  133. </view> -->
  134. </view>
  135. <view class="content5">
  136. <view class="row">
  137. <view class="left">货站信息费</view>
  138. <view class="right"><input type="number" value="" placeholder="输入信息费金额" class="input"
  139. v-model="dataObj.stationFee" /></view>元/吨
  140. </view>
  141. </view>
  142. <view class="">
  143. <view class="submit" @click="goodsSubmit">发布货源</view>
  144. </view>
  145. <u-popup :show="isShowPopup1" :round="10" closeable safeAreaInsetBottom @close="isShowPopup1=false">
  146. <view style="padding: 60rpx 40rpx;" class="popup">
  147. <view class="title">
  148. 货物信息
  149. </view>
  150. <u--form labelPosition="left" :model="dataObj" ref="uForm">
  151. <u-form-item label="货名" prop="contacts" borderBottom labelWidth="140rpx">
  152. <u--input v-model="dataObj.goodsName" border="none" placeholder="输入货名"
  153. inputAlign='right'></u--input>
  154. </u-form-item>
  155. <u-form-item label="包装类型" prop="contacts" borderBottom labelWidth="140rpx">
  156. <view style="display: flex;justify-content: flex-end;width: 100%;">
  157. <view class="price-item" :class="index==bzIndex?'active':''"
  158. v-for="(item,index) in packageTypePickerColumns" @click="selectBzType(item,index)">
  159. <view class="">
  160. {{item}}
  161. </view>
  162. </view>
  163. </view>
  164. </u-form-item>
  165. <u-form-item label="计量方式" borderBottom labelWidth="140rpx">
  166. <view style="display: flex;justify-content: flex-end;width: 100%;">
  167. <view class="price-item" :class="item.checked?'active':''"
  168. v-for="(item,index) in measuringMethodList" @click="selectJlType(item,index)">
  169. <view class="">
  170. {{item.name}}
  171. </view>
  172. </view>
  173. </view>
  174. </u-form-item>
  175. <u-form-item label="货物重量" borderBottom labelWidth="140rpx" v-if="measuringMethodList[0].checked">
  176. <u--input v-model="dataObj.weight" border="none" placeholder="输入重量"
  177. inputAlign='right'></u--input><text style="margin-left: 10rpx;">吨</text>
  178. </u-form-item>
  179. <u-form-item label="货物体积" borderBottom labelWidth="140rpx" v-if="measuringMethodList[1].checked">
  180. <u--input v-model="dataObj.volume" border="none" placeholder="输入体积"
  181. inputAlign='right'></u--input><text style="margin-left: 10rpx;">方</text>
  182. </u-form-item>
  183. <u-form-item label="预计用车数量" labelWidth="200rpx">
  184. <u--input v-model="dataObj.expectedNum" border="none" placeholder="输入用车数量"
  185. inputAlign='right'></u--input><text style="margin-left: 10rpx;">辆</text>
  186. </u-form-item>
  187. <!-- <u-form-item label="货站名称" prop="contacts" borderBottom labelWidth="140rpx">
  188. <u--input v-model="dataObj.freightStationName" border="none" placeholder="输入货站名称,不超过10个字"
  189. inputAlign='right'></u--input>
  190. </u-form-item> -->
  191. </u--form>
  192. <view class="submit" @click="goodsInfoSubmit">完成</view>
  193. </view>
  194. </u-popup>
  195. <u-popup :show="isShowPopup2" :round="10" closeable safeAreaInsetBottom @close="isShowPopup2=false">
  196. <view style="padding: 60rpx 40rpx;" class="popup">
  197. <view class="title">
  198. 车型车长
  199. </view>
  200. <view class="">
  201. 选择车型 <text style="color:rgb(170, 170, 170);margin-left: 20rpx;">(1-3个)</text>
  202. </view>
  203. <view class="cartype-item" :class="item.checked?'active':''" v-for="(item,index) in carTypeList"
  204. @click="selectCarType(item,index)">
  205. <view class="">
  206. {{item.name}}
  207. </view>
  208. </view>
  209. <view class="" style="margin: 40rp 0;">
  210. 选择车长 <text style="color:rgb(170, 170, 170);margin-left: 20rpx;">(1-3个)</text>
  211. </view>
  212. <view class="cartype-item" :class="item.checked?'active':''" v-for="(item,index) in carLengthList"
  213. @click="selectCarLength(item,index)">
  214. <view class="">
  215. {{item.name}}
  216. </view>
  217. </view>
  218. <view class="submit" @click="carInfoSubmit">完成</view>
  219. </view>
  220. </u-popup>
  221. <u-popup :show="isShowPopup3" :round="10" closeable safeAreaInsetBottom @close="isShowPopup3=false">
  222. <view style="padding: 60rpx 40rpx;" class="popup">
  223. <view class="title">
  224. 货站信息
  225. </view>
  226. <u--form labelPosition="left" :model="dataObj" ref="uForm">
  227. <u-form-item label="联系人" borderBottom labelWidth="140rpx">
  228. <u--input v-model="dataObj.contacts" border="none" placeholder="输入联系人姓名"
  229. inputAlign='right'></u--input>
  230. </u-form-item>
  231. <u-form-item label="联系人电话" borderBottom labelWidth="160rpx">
  232. <u--input v-model="dataObj.contactsPhone" border="none" placeholder="输入联系人姓名"
  233. inputAlign='right'></u--input>
  234. </u-form-item>
  235. <u-form-item label="货站名称" labelWidth="140rpx">
  236. <u--input v-model="dataObj.freightStationName" border="none" placeholder="输入货站名称,不超过10个字"
  237. inputAlign='right'></u--input>
  238. </u-form-item>
  239. </u--form>
  240. <view class="submit" @click="isShowPopup3=false">完成</view>
  241. </view>
  242. </u-popup>
  243. <u-popup :show="isShowPopup4" :round="10" closeable safeAreaInsetBottom @close="isShowPopup4=false">
  244. <view style="padding: 60rpx 40rpx;" class="popup">
  245. <view class="title">
  246. 装车时间
  247. </view>
  248. <u-line></u-line>
  249. <view class="select-date">
  250. <view class="title-two">
  251. 选择日期
  252. </view>
  253. <view class="date-list">
  254. <view class="date-list-item" :class="item.checked?'active':''" v-for="(item,index) in dateList"
  255. @click="selectDate(item,index)">
  256. {{index==0?"今天"+item.date:item.date}}
  257. </view>
  258. </view>
  259. <view class="title-two">
  260. 选择时段
  261. </view>
  262. <view class="row flex" style="margin-bottom: 20rpx;">
  263. <view class="" style="flex: 1;text-align: center;">
  264. 开始时间
  265. </view>
  266. <view class="" style="flex: 1;text-align: center;">
  267. 结束时间
  268. </view>
  269. </view>
  270. <picker-view class="picker" :value="value" @change="getime">
  271. <picker-view-column>
  272. <view class="hours" style="line-height:30px; text-align: center;"
  273. v-for="(item,index) in hoursList" :key="index">{{item}}</view>
  274. </picker-view-column>
  275. <picker-view-column>
  276. <view class="hours" style="line-height:30px; text-align: center;"
  277. v-for="(item,index) in hoursList" :key="index">{{item}}</view>
  278. </picker-view-column>
  279. </picker-view>
  280. </view>
  281. <view class="submit" @click="dateInfoSubmit" v-if="isCanBeSubmit">完成</view>
  282. <view class="fa-submit" v-if="!isCanBeSubmit">
  283. 完成
  284. </view>
  285. </view>
  286. </u-popup>
  287. <!-- <u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :closeOnClickOverlay='false'
  288. :showCancelButton='showCancelButton' confirmColor='#F5BA3C' @confirm="$u.throttle(confirmClick(), 1000)"
  289. @close="cancelClick" @cancel="cancelClick"></u-modal>
  290. <u-modal :show="isShowAlert1" :title="alertTitle" :confirmText='confirmText' :content='alertContent'
  291. :closeOnClickOverlay='false' :showCancelButton='showCancelButton' confirmColor='#F5BA3C'
  292. @confirm="$u.throttle(confirmClick(), 1000)" @close="cancelClick" @cancel="cancelClick"></u-modal> -->
  293. <u-toast ref="uToast"></u-toast>
  294. </view>
  295. </template>
  296. <script>
  297. var _this;
  298. import {
  299. mapState
  300. } from 'vuex';
  301. export default {
  302. data() {
  303. return {
  304. isCanBeSubmit:true,
  305. isEdit: false,
  306. isCopy: false,
  307. hoursList: [
  308. '00:00',
  309. '00:30',
  310. '01:00',
  311. '01:30',
  312. '02:00',
  313. '02:30',
  314. '03:00',
  315. '03:30',
  316. '04:00',
  317. '04:30',
  318. '05:00',
  319. '05:30',
  320. '06:00',
  321. '06:30',
  322. '07:00',
  323. '07:30',
  324. '08:00',
  325. '08:30',
  326. '09:00',
  327. '09:30',
  328. '10:00',
  329. '10:00',
  330. '11:00',
  331. '11:30',
  332. '12:00',
  333. '12:30',
  334. '13:00',
  335. '13:30',
  336. '14:00',
  337. '14:30',
  338. '15:00',
  339. '15:30',
  340. '16:00',
  341. '16:30',
  342. '17:00',
  343. '17:30',
  344. '18:00',
  345. '18:30',
  346. '19:00',
  347. '19:30',
  348. '20:00',
  349. '20:30',
  350. '21:00',
  351. '21:30',
  352. '22:00',
  353. '22:30',
  354. '23:00',
  355. '23:30'
  356. ],
  357. value: ["18", "34"],
  358. checkTime: ["09:00", "17:00"],
  359. dateCheckList: [],
  360. dateList: [],
  361. jlLindex: 0,
  362. bzIndex: 0,
  363. priceIndex: 0,
  364. measuringMethodList: [{
  365. name: '重量(吨)',
  366. checked: true,
  367. },
  368. {
  369. name: '体积(方)',
  370. checked: false,
  371. }
  372. ],
  373. jlCheckList: ['重量(吨)'],
  374. carLengthCheckList: ['不限'],
  375. carTypeCheckList: [],
  376. carLengthList: [{
  377. name: '不限',
  378. checked: true
  379. },
  380. {
  381. name: '2',
  382. checked: false
  383. },
  384. {
  385. name: '3',
  386. checked: false
  387. },
  388. {
  389. name: '4',
  390. checked: false
  391. },
  392. {
  393. name: '5',
  394. checked: false
  395. },
  396. {
  397. name: '6',
  398. checked: false
  399. },
  400. {
  401. name: '7',
  402. checked: false
  403. },
  404. {
  405. name: '8',
  406. checked: false
  407. },
  408. {
  409. name: '9',
  410. checked: false
  411. },
  412. {
  413. name: '10',
  414. checked: false
  415. },
  416. {
  417. name: '11',
  418. checked: false
  419. },
  420. {
  421. name: '12',
  422. checked: false
  423. },
  424. {
  425. name: '13',
  426. checked: false
  427. },
  428. {
  429. name: '14',
  430. checked: false
  431. },
  432. {
  433. name: '15',
  434. checked: false
  435. },
  436. {
  437. name: '16',
  438. checked: false
  439. },
  440. {
  441. name: '17',
  442. checked: false
  443. },
  444. {
  445. name: '18',
  446. checked: false
  447. }
  448. ],
  449. carTypeList: [{
  450. name: '高栏',
  451. checked: false
  452. },
  453. {
  454. name: '集装箱',
  455. checked: false
  456. },
  457. {
  458. name: '平板',
  459. checked: false
  460. },
  461. {
  462. name: '厢式',
  463. checked: false
  464. },
  465. {
  466. name: '自卸',
  467. checked: false
  468. },
  469. {
  470. name: '冷藏车',
  471. checked: false
  472. },
  473. {
  474. name: '保温车',
  475. checked: false
  476. },
  477. {
  478. name: '轻型',
  479. checked: false
  480. }
  481. ],
  482. packageTypePickerColumns: ['散装', '袋装', '其他'],
  483. packageTypePicker: false,
  484. isShowPopup1: false,
  485. isShowPopup2: false,
  486. isShowPopup3: false,
  487. isShowPopup4: false,
  488. remarkCheckList: [],
  489. remarkList: [{
  490. name: "到付",
  491. checked: false,
  492. },
  493. {
  494. name: "需防雨",
  495. checked: false,
  496. },
  497. {
  498. name: "不压车",
  499. checked: false,
  500. }, {
  501. name: "合规运输",
  502. checked: false,
  503. }
  504. ],
  505. priceBtnType: '0',
  506. priceBtnList: [{
  507. name: '吨',
  508. index: 0
  509. },
  510. {
  511. name: '车',
  512. index: 1
  513. },
  514. {
  515. name: '方',
  516. index: 2
  517. }
  518. ],
  519. showCancelButton: true,
  520. qyList: [],
  521. isShowAlert: false,
  522. alertTitle: '确定发布运输任务?',
  523. alertContent: null,
  524. radioCustomStyle: {
  525. margin: '0 0 0 20rpx'
  526. },
  527. freightAdvance: false,
  528. dataObj: {
  529. commonId: '',
  530. sendPrivate: '',
  531. sendCity: '',
  532. sendArea: '',
  533. sendDetailedAddress: '',
  534. unloadPrivate: '',
  535. unloadCity: '',
  536. unloadArea: '',
  537. unloadDetailedAddress: '',
  538. cargoDistance: '',
  539. goodsName: '',
  540. packageType: '散装',
  541. measuringMethod: '重量(吨)',
  542. weight: '',
  543. volume: '',
  544. expectedNum: '',
  545. carModel: '',
  546. carLength: '',
  547. billingMethod: '0',
  548. freightPrice: '',
  549. contacts: '',
  550. contactsPhone: '',
  551. freightStationName: '',
  552. loadingDate: '',
  553. periodOfTime: '',
  554. remark: '',
  555. stationFee: '',
  556. sendLongitude: '',
  557. sendLatitude: '',
  558. unsendLongitude: '',
  559. unsendLatitude: ''
  560. },
  561. confirmText: '',
  562. isShowAlert1: false,
  563. ValidityPeriodType: '',
  564. }
  565. },
  566. onShow() {
  567. if (!this.hasLogin) {
  568. uni.$u.route('/pages/public/login');
  569. return
  570. }
  571. this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
  572. phone: this.userInfo.phone
  573. }).then(res => {
  574. uni.setStorageSync("firstAuthentication", res.data)
  575. let _obj = res.data
  576. if (_obj.authenticationStatus == '已认证') {
  577. uni.$u.route('/pages/components/empty/index');
  578. } else if (_obj.authenticationStatus == '审核中') {
  579. uni.showToast({
  580. title: '身份信息审核中',
  581. icon: 'none'
  582. })
  583. } else if (_obj.authenticationStatus == '已过期') {
  584. this.alertTitle = '身份信息已过期!'
  585. this.showCancelButton = false
  586. this.confirmText = '立即修改'
  587. this.isShowAlert1 = true
  588. } else {
  589. this.alertTitle = '身份信息未认证,去认证?'
  590. this.confirmText = '确认'
  591. this.showCancelButton = false
  592. this.isShowAlert = true
  593. }
  594. })
  595. if (!this.isEdit || !this.isCopy) {
  596. let _faddress = uni.getStorageSync('storage_faddress');
  597. let _saddress = uni.getStorageSync('storage_saddress');
  598. if (_faddress) {
  599. this.dataObj.sendCity = _faddress.city
  600. this.dataObj.sendArea = _faddress.area
  601. this.dataObj.sendAdCode = _faddress.adCode
  602. this.dataObj.sendPrivate = _faddress.province
  603. this.dataObj.sendDetailedAddress = _faddress.detailedAddress
  604. this.dataObj.sendLongitude = _faddress.longitude
  605. this.dataObj.sendLatitude = _faddress.latitude
  606. if (_faddress.contactPhone) {
  607. this.dataObj.senderPhone = _faddress.contactPhone
  608. }
  609. if (_faddress.contacts) {
  610. this.dataObj.sender = _faddress.contacts
  611. }
  612. } else {
  613. this.getDefaultPlace(0)
  614. }
  615. if (_saddress) {
  616. this.dataObj.unloadDetailedAddress = _saddress.detailedAddress
  617. this.dataObj.unloadCity = _saddress.city
  618. this.dataObj.unloadArea = _saddress.area
  619. this.dataObj.unsendAdCode = _faddress.adCode
  620. this.dataObj.unloadPrivate = _saddress.province
  621. this.dataObj.unsendLongitude = _saddress.longitude
  622. this.dataObj.unsendLatitude = _saddress.latitude
  623. if (_saddress.contacts) {
  624. this.dataObj.receiver = _saddress.contacts
  625. }
  626. if (_saddress.contactPhone) {
  627. this.dataObj.receiverPhone = _saddress.contactPhone
  628. }
  629. } else {
  630. this.getDefaultPlace(1)
  631. }
  632. if (this.dataObj.sendLatitude && this.dataObj.sendLongitude && this.dataObj.unsendLatitude && this.dataObj
  633. .unsendLongitude) {
  634. this.dataObj.cargoDistance = this.$helper.getDistance(this.dataObj.unsendLatitude, this.dataObj
  635. .unsendLongitude,
  636. this.dataObj.sendLatitude, this.dataObj.sendLongitude)
  637. }
  638. }
  639. },
  640. onLoad(options) {
  641. if (options.type == 1) {
  642. this.isCopy = true
  643. }
  644. if (options.type == 2) {
  645. this.isEdit = true
  646. }
  647. if (options.type == 1 || options.type == 2) {
  648. this.dataObj = uni.getStorageSync("selectGoodObj")
  649. if (this.dataObj.packageType == '散装') {
  650. this.bzIndex = 0
  651. } else if (this.dataObj.packageType == '袋装') {
  652. this.bzIndex = 1
  653. } else {
  654. this.bzIndex = 2
  655. }
  656. let _carModel = this.dataObj.carModel.split(',')
  657. for (let i = 0; i < this.carTypeList.length; i++) {
  658. for (let k = 0; k < _carModel.length; k++) {
  659. if (this.carTypeList[i].name == _carModel[k]) {
  660. this.carTypeList[i].checked = true
  661. this.carTypeCheckList.push(this.carTypeList[i])
  662. }
  663. }
  664. }
  665. let _measuringMethod = this.dataObj.measuringMethod.split(',')
  666. this.jlCheckList = []
  667. for (let i = 0; i < this.measuringMethodList.length; i++) {
  668. this.measuringMethodList[i].checked = false
  669. for (let k = 0; k < _measuringMethod.length; k++) {
  670. if (this.measuringMethodList[i].name == _measuringMethod[k]) {
  671. this.measuringMethodList[i].checked = true
  672. this.jlCheckList.push(this.measuringMethodList[i].name)
  673. }
  674. }
  675. }
  676. }
  677. _this = this
  678. },
  679. computed: {
  680. ...mapState(['hasLogin', 'userInfo']),
  681. },
  682. methods: {
  683. goodsSubmit() {
  684. this.dataObj.commonId = this.userInfo.id
  685. if (this.validate()) return
  686. uni.showLoading({
  687. mask: true,
  688. title: '加载中'
  689. })
  690. console.log("this.dataObj", this.dataObj)
  691. this.dataObj.headSculpture = this.userInfo.avatarUrl
  692. if (this.isEdit) {
  693. this.$request.baseRequest('post', '/hyReleaseGoodsInfo/api/editTask', this.dataObj).then(res => {
  694. uni.hideLoading()
  695. uni.navigateBack()
  696. })
  697. .catch(res => {});
  698. } else {
  699. this.$request.baseRequest('post', '/hyReleaseGoodsInfo/api/addTask', this.dataObj).then(res => {
  700. uni.hideLoading()
  701. uni.navigateBack()
  702. })
  703. .catch(res => {});
  704. }
  705. },
  706. getime(e) {
  707. let val = e.detail.value
  708. console.log(val)
  709. this.checkTime[0] = this.hoursList[val[0]]
  710. this.checkTime[1] = this.hoursList[val[1]]
  711. if(val[0]>val[1]){
  712. uni.showToast({
  713. icon: 'none',
  714. title: "开始时间不能大于结束时间!"
  715. })
  716. this.isCanBeSubmit = false
  717. return
  718. }else{
  719. this.isCanBeSubmit = true
  720. }
  721. console.log(this.checkTime)
  722. },
  723. selectDate(val, index) {
  724. console.log("val--index", val, index)
  725. let _startCheckIndex = ''
  726. let _endCheckIndex = ''
  727. if (this.dateCheckList.length != 0) {
  728. _startCheckIndex = this.dateCheckList[0].index
  729. _endCheckIndex = this.dateCheckList[this.dateCheckList.length - 1].index
  730. console.log("选中开始", _startCheckIndex)
  731. console.log("选中结束", _endCheckIndex)
  732. }
  733. if (this.dateCheckList.length == 0) {
  734. val.checked = !val.checked
  735. if (val.checked) {
  736. this.dateCheckList.push(val)
  737. }
  738. } else if (this.dateCheckList.length == 1) {
  739. val.checked = !val.checked
  740. if (!val.checked) {
  741. this.dateCheckList = []
  742. } else {
  743. this.dateCheckList = []
  744. if (val.index < _startCheckIndex) {
  745. for (let i = val.index; i <= _startCheckIndex; i++) {
  746. this.dateList[i].checked = true
  747. this.dateCheckList.push(this.dateList[i])
  748. }
  749. } else if (val.index > _startCheckIndex) {
  750. for (let i = _startCheckIndex; i <= val.index; i++) {
  751. console.log(i)
  752. this.dateList[i].checked = true
  753. this.dateCheckList.push(this.dateList[i])
  754. }
  755. }
  756. }
  757. } else if (this.dateCheckList.length == 2) {
  758. //点开始或点结束
  759. val.checked = !val.checked
  760. if (val.index == _startCheckIndex) {
  761. this.dateCheckList.splice(0, 1)
  762. }
  763. if (val.index == _endCheckIndex) {
  764. this.dateCheckList.splice(1, 1)
  765. }
  766. if (val.index < _startCheckIndex) {
  767. this.dateCheckList = []
  768. for (let i = val.index; i <= _endCheckIndex; i++) {
  769. this.dateList[i].checked = true
  770. this.dateCheckList.push(this.dateList[i])
  771. }
  772. }
  773. if (val.index > _endCheckIndex) {
  774. this.dateCheckList = []
  775. for (let i = _startCheckIndex; i <= val.index; i++) {
  776. this.dateList[i].checked = true
  777. this.dateCheckList.push(this.dateList[i])
  778. }
  779. }
  780. } else {
  781. let _dateCheckList = JSON.parse(JSON.stringify(this.dateCheckList))
  782. if (val.index == _startCheckIndex || val.index == _endCheckIndex) {
  783. val.checked = !val.checked
  784. for (let i = 0; i < _dateCheckList.length; i++) {
  785. if (val.index == _dateCheckList[i].index) {
  786. this.dateCheckList.splice(i, 1)
  787. }
  788. }
  789. } else if (_startCheckIndex < val.index && val.index < _endCheckIndex) {
  790. for (let i = 0; i < this.dateList.length; i++) {
  791. this.dateList[i].checked = false
  792. }
  793. this.dateCheckList = []
  794. } else if (val.index < _startCheckIndex) {
  795. this.dateCheckList = []
  796. for (let i = val.index; i <= _endCheckIndex; i++) {
  797. this.dateList[i].checked = true
  798. this.dateCheckList.push(this.dateList[i])
  799. }
  800. } else if (val.index > _endCheckIndex) {
  801. this.dateCheckList = []
  802. for (let i = _startCheckIndex; i <= val.index; i++) {
  803. console.log(i)
  804. this.dateList[i].checked = true
  805. this.dateCheckList.push(this.dateList[i])
  806. }
  807. }
  808. }
  809. console.log("this.dateCheckList", this.dateCheckList)
  810. },
  811. selectJlType(val, index) {
  812. val.checked = !val.checked
  813. if (val.checked) {
  814. this.jlCheckList.push(val.name)
  815. } else {
  816. let _jlCheckList = JSON.parse(JSON.stringify(this.jlCheckList))
  817. for (let i = 0; i < _jlCheckList.length; i++) {
  818. if (_jlCheckList[i] == val.name) {
  819. this.jlCheckList.splice(i, 1)
  820. if (this.jlCheckList.length == 0 && val.name == '重量(吨)') {
  821. this.jlCheckList.push('体积(方)')
  822. this.measuringMethodList[1].checked = true
  823. this.measuringMethodList[0].checked = false
  824. }
  825. if (this.jlCheckList.length == 0 && val.name == '体积(方)') {
  826. this.jlCheckList.push('重量(吨)')
  827. this.measuringMethodList[0].checked = true
  828. this.measuringMethodList[1].checked = false
  829. }
  830. }
  831. }
  832. }
  833. console.log('this.jlCheckList', this.jlCheckList)
  834. },
  835. selectBzType(val, index) {
  836. this.bzIndex = index
  837. this.dataObj.packageType = val
  838. },
  839. selectPriceType(val, index) {
  840. this.priceIndex = index
  841. this.priceBtnType = index
  842. this.dataObj.billingMethod = index
  843. },
  844. carInfoSubmit() {
  845. if (this.carTypeCheckList.length == 0) {
  846. uni.showToast({
  847. icon: 'none',
  848. title: "至少选择1个车型!"
  849. })
  850. return
  851. }
  852. if (this.carLengthCheckList.length == 0) {
  853. uni.showToast({
  854. icon: 'none',
  855. title: "至少选择1个车长!"
  856. })
  857. return
  858. }
  859. this.dataObj.carLength = this.carLengthCheckList.toString()
  860. this.dataObj.carModel = this.carTypeCheckList.toString()
  861. this.isShowPopup2 = false
  862. },
  863. selectRemarkType(val, index) {
  864. val.checked = !val.checked
  865. if (val.checked) {
  866. this.remarkCheckList.push(val.name)
  867. } else {
  868. let _remarkCheckList = JSON.parse(JSON.stringify(this.remarkCheckList))
  869. for (let i = 0; i < _remarkCheckList.length; i++) {
  870. if (_remarkCheckList[i] == val.name) {
  871. this.remarkCheckList.splice(i, 1)
  872. }
  873. }
  874. }
  875. },
  876. selectCarType(val, index) {
  877. if (this.carTypeCheckList.length > 2 && !val.checked) {
  878. uni.showToast({
  879. icon: 'none',
  880. title: "最多选择3个车型!"
  881. })
  882. return
  883. }
  884. val.checked = !val.checked
  885. if (val.checked) {
  886. this.carTypeCheckList.push(val.name)
  887. } else {
  888. let _carTypeCheckList = JSON.parse(JSON.stringify(this.carTypeCheckList))
  889. for (let i = 0; i < _carTypeCheckList.length; i++) {
  890. if (_carTypeCheckList[i] == val.name) {
  891. this.carTypeCheckList.splice(i, 1)
  892. }
  893. }
  894. }
  895. console.log("carTypeCheckList", this.carTypeCheckList)
  896. },
  897. selectCarLength(val, index) {
  898. if (this.carLengthCheckList.length > 2 && !val.checked && index != 0) {
  899. uni.showToast({
  900. icon: 'none',
  901. title: "最多选择3个车长!"
  902. })
  903. return
  904. }
  905. this.carLengthCheckList = []
  906. val.checked = !val.checked
  907. // this.carLengthList[0].checked = false
  908. console.log(val)
  909. if (index == 0 && val.checked) {
  910. this.carLengthCheckList = ['不限']
  911. for (let i = 1; i < this.carLengthList.length; i++) {
  912. this.carLengthList[i].checked = false
  913. }
  914. console.log("this.carLengthCheckList", this.carLengthCheckList)
  915. return
  916. } else {
  917. this.carLengthList[0].checked = false
  918. }
  919. for (let i = 0; i < this.carLengthList.length; i++) {
  920. if (this.carLengthList[i].checked) {
  921. this.carLengthCheckList.push(this.carLengthList[i].name)
  922. }
  923. }
  924. },
  925. packageTypeConfirm(val) {
  926. console.log(val)
  927. this.dataObj.packageType = val.value[0]
  928. this.packageTypePicker = false
  929. },
  930. goodsInfoSubmit() {
  931. this.dataObj.measuringMethod = this.jlCheckList.toString()
  932. this.isShowPopup1 = false
  933. },
  934. dateInfoSubmit() {
  935. let _dateList = []
  936. for (let i = 0; i < this.dateCheckList.length; i++) {
  937. _dateList.push(this.dateCheckList[i].date)
  938. }
  939. this.dataObj.loadingDate = _dateList.toString()
  940. this.dataObj.periodOfTime = this.checkTime.toString()
  941. this.isShowPopup4 = false
  942. },
  943. funDate() {
  944. let timestamp = new Date(new Date().toLocaleDateString()).getTime();
  945. let basetime = 24 * 60 * 60 * 1000;
  946. for (let i = 0; i < 8; i++) {
  947. let _date = timestamp + basetime * i
  948. let _obj = {
  949. date: new Date(_date).toLocaleDateString().substring(5).replace("/", "."),
  950. index: i,
  951. checked: false,
  952. }
  953. this.dateList.push(_obj)
  954. console.log("this.dateList", this.dateList)
  955. }
  956. console.log(this.dateList)
  957. },
  958. validate() {
  959. if (uni.$u.test.isEmpty(this.dataObj.commonId)) {
  960. this.$refs.uToast.show({
  961. type: 'error',
  962. message: "货主不能为空!",
  963. })
  964. return true
  965. }
  966. if (uni.$u.test.isEmpty(this.dataObj.sendArea)) {
  967. this.$refs.uToast.show({
  968. type: 'error',
  969. message: "请选择装货地区!",
  970. })
  971. return true
  972. }
  973. if (uni.$u.test.isEmpty(this.dataObj.sendDetailedAddress)) {
  974. this.$refs.uToast.show({
  975. type: 'error',
  976. message: "装货详细地址不能为空!",
  977. })
  978. return true
  979. }
  980. if (uni.$u.test.isEmpty(this.dataObj.unloadArea)) {
  981. this.$refs.uToast.show({
  982. type: 'error',
  983. message: "请选择卸货地区!",
  984. })
  985. return true
  986. }
  987. if (uni.$u.test.isEmpty(this.dataObj.unloadDetailedAddress)) {
  988. this.$refs.uToast.show({
  989. type: 'error',
  990. message: "卸货详细地址不能为空!",
  991. })
  992. return true
  993. }
  994. if (uni.$u.test.isEmpty(this.dataObj.packageType)) {
  995. this.$refs.uToast.show({
  996. type: 'error',
  997. message: "包装类型不能为空!",
  998. })
  999. return true
  1000. }
  1001. if (uni.$u.test.isEmpty(this.dataObj.goodsName)) {
  1002. this.$refs.uToast.show({
  1003. type: 'error',
  1004. message: "货名不能为空!",
  1005. })
  1006. return true
  1007. }
  1008. if (uni.$u.test.isEmpty(this.dataObj.measuringMethod)) {
  1009. this.$refs.uToast.show({
  1010. type: 'error',
  1011. message: "计量方式不能为空!",
  1012. })
  1013. return true
  1014. }
  1015. if (this.dataObj.measuringMethod == '重量(吨)') {
  1016. if (uni.$u.test.isEmpty(this.dataObj.weight)) {
  1017. this.$refs.uToast.show({
  1018. type: 'error',
  1019. message: "货物重量不能为空!",
  1020. })
  1021. return true
  1022. }
  1023. } else if (this.dataObj.measuringMethod == '体积(方)') {
  1024. if (uni.$u.test.isEmpty(this.dataObj.volume)) {
  1025. this.$refs.uToast.show({
  1026. type: 'error',
  1027. message: "货物体积不能为空!",
  1028. })
  1029. return true
  1030. }
  1031. } else {
  1032. if (uni.$u.test.isEmpty(this.dataObj.volume) || uni.$u.test.isEmpty(this.dataObj.weight)) {
  1033. this.$refs.uToast.show({
  1034. type: 'error',
  1035. message: "货物体积、货物重量不能为空!",
  1036. })
  1037. return true
  1038. }
  1039. }
  1040. if (uni.$u.test.isEmpty(this.dataObj.expectedNum)) {
  1041. this.$refs.uToast.show({
  1042. type: 'error',
  1043. message: "预计用车数量不能为空!",
  1044. })
  1045. return true
  1046. }
  1047. if (uni.$u.test.isEmpty(this.dataObj.carModel)) {
  1048. this.$refs.uToast.show({
  1049. type: 'error',
  1050. message: "车型不能为空!",
  1051. })
  1052. return true
  1053. }
  1054. if (uni.$u.test.isEmpty(this.dataObj.carLength)) {
  1055. this.$refs.uToast.show({
  1056. type: 'error',
  1057. message: "车长不能为空!",
  1058. })
  1059. return true
  1060. }
  1061. if (uni.$u.test.isEmpty(this.dataObj.billingMethod)) {
  1062. this.$refs.uToast.show({
  1063. type: 'error',
  1064. message: "运价单位不能为空!",
  1065. })
  1066. return true
  1067. }
  1068. if (uni.$u.test.isEmpty(this.dataObj.freightPrice)) {
  1069. this.$refs.uToast.show({
  1070. type: 'error',
  1071. message: "运价不能为空!",
  1072. })
  1073. return true
  1074. }
  1075. if (
  1076. this.dataObj.freightPrice < 0 || this.dataObj.freightPrice > 100000 || (
  1077. String(this.dataObj.freightPrice).indexOf('.') != -1 && String(this.dataObj.freightPrice).length -
  1078. (String(this.dataObj.freightPrice).indexOf(
  1079. '.') + 1) > 2)
  1080. ) {
  1081. uni.showToast({
  1082. title: '运价输入错误!',
  1083. duration: 2000,
  1084. icon: "none",
  1085. });
  1086. return true
  1087. }
  1088. if (uni.$u.test.isEmpty(this.dataObj.contacts)) {
  1089. this.$refs.uToast.show({
  1090. type: 'error',
  1091. message: "联系人不能为空!",
  1092. })
  1093. return true
  1094. }
  1095. if (uni.$u.test.isEmpty(this.dataObj.contactsPhone)) {
  1096. this.$refs.uToast.show({
  1097. type: 'error',
  1098. message: "联系人电话不能为空!",
  1099. })
  1100. return true
  1101. }
  1102. if (uni.$u.test.isEmpty(this.dataObj.freightStationName)) {
  1103. this.$refs.uToast.show({
  1104. type: 'error',
  1105. message: "货站名称不能为空!",
  1106. })
  1107. return true
  1108. }
  1109. if (uni.$u.test.isEmpty(this.dataObj.loadingDate)) {
  1110. this.$refs.uToast.show({
  1111. type: 'error',
  1112. message: "装车日期不能为空!",
  1113. })
  1114. return true
  1115. }
  1116. if (uni.$u.test.isEmpty(this.dataObj.periodOfTime)) {
  1117. this.$refs.uToast.show({
  1118. type: 'error',
  1119. message: "时段不能为空!",
  1120. })
  1121. return true
  1122. }
  1123. if (uni.$u.test.isEmpty(this.dataObj.stationFee)) {
  1124. this.$refs.uToast.show({
  1125. type: 'error',
  1126. message: "货站信息费不能为空!",
  1127. })
  1128. return true
  1129. }
  1130. },
  1131. confirmClick() {
  1132. uni.$u.throttle(this.requestdata, 500)
  1133. },
  1134. requestdata() {
  1135. if (this.dataDetails.type == '元/吨') {
  1136. this.dataObj.billingMethod = 0
  1137. } else {
  1138. this.dataObj.billingMethod = 1
  1139. }
  1140. if (this.dataObj.freightAdvance) {
  1141. this.dataObj.freightAdvance = 1
  1142. } else {
  1143. this.dataObj.freightAdvance = 0
  1144. }
  1145. if (!this.dataObj.receiverIdcard) {
  1146. this.dataObj.receiverIdcard = ''
  1147. }
  1148. if (!this.dataObj.receiverCreditCode) {
  1149. this.dataObj.receiverCreditCode = ''
  1150. }
  1151. this.dataObj.carModel = this.carTypeCheckList.toString()
  1152. this.dataObj.commonId = this.userInfo.id
  1153. uni.$u.route('/pages/order/signContract', {
  1154. obj: JSON.stringify(this.dataObj),
  1155. type: 1
  1156. });
  1157. },
  1158. cancelClick() {
  1159. this.isShowAlert = false
  1160. },
  1161. //获取默认装货地、卸货地
  1162. getDefaultPlace(type) {
  1163. // 0时获取默认装货地址,1时获取默认卸货地址 通过选择获取的地址无需获取默认地址
  1164. uni.showLoading({
  1165. mask: true,
  1166. title: '加载中...'
  1167. })
  1168. this.$request.baseRequest('get', '/cargoOwnerAddressInfo/addressList', {
  1169. commonId: this.userInfo.id
  1170. }).then(res => {
  1171. uni.hideLoading()
  1172. for (let i = 0; i < res.data.length; i++) {
  1173. if (res.data[i].defaultShipment == 1 && type == 0) {
  1174. this.dataObj.sendCity = res.data[i].city
  1175. this.dataObj.sendArea = res.data[i].area
  1176. this.dataObj.sendPrivate = res.data[i].province
  1177. this.dataObj.sendDetailedAddress = res.data[i].detailedAddress
  1178. this.dataObj.sendLongitude = res.data[i].longitude
  1179. this.dataObj.sendLatitude = res.data[i].latitude
  1180. this.dataObj.sender = res.data[i].contacts
  1181. this.dataObj.senderPhone = res.data[i].contactPhone
  1182. }
  1183. if (res.data[i].defaultReceipt == 1 && type == 1) {
  1184. this.dataObj.unloadDetailedAddress = res.data[i].detailedAddress
  1185. this.dataObj.unloadCity = res.data[i].city
  1186. this.dataObj.unloadArea = res.data[i].area
  1187. this.dataObj.unloadPrivate = res.data[i].province
  1188. this.dataObj.unsendLongitude = res.data[i].longitude
  1189. this.dataObj.unsendLatitude = res.data[i].latitude
  1190. this.dataObj.receiver = res.data[i].contacts
  1191. this.dataObj.receiverPhone = res.data[i].contactPhone
  1192. }
  1193. }
  1194. if (this.dataObj.sendLatitude && this.dataObj.sendLongitude && this.dataObj.unsendLatitude &&
  1195. this.dataObj.unsendLongitude) {
  1196. this.dataObj.cargoDistance = this.$helper.getDistance(this.dataObj.unsendLatitude, this
  1197. .dataObj
  1198. .unsendLongitude, this.dataObj.sendLatitude, this.dataObj.sendLongitude)
  1199. }
  1200. })
  1201. .catch(res => {
  1202. uni.hideLoading()
  1203. uni.showToast({
  1204. title: res.message,
  1205. icon: 'none',
  1206. duration: 2000
  1207. })
  1208. });
  1209. },
  1210. changeHandler(e) {
  1211. const {
  1212. columnIndex,
  1213. value,
  1214. values,
  1215. index,
  1216. picker = this.$refs.uPicker
  1217. } = e
  1218. },
  1219. selectAddress(type) {
  1220. uni.$u.route('/pages/release/selectAddress', {
  1221. type: type,
  1222. });
  1223. },
  1224. selectValidityPeriod(type) {
  1225. this.funDate()
  1226. this.isShowPopup4 = true
  1227. },
  1228. }
  1229. }
  1230. </script>
  1231. <style scoped lang="scss">
  1232. .input {
  1233. text-align: right;
  1234. width: 100%;
  1235. }
  1236. .content {
  1237. height: 100vh;
  1238. overflow: scroll;
  1239. }
  1240. .title {
  1241. padding: 0 20rpx;
  1242. display: flex;
  1243. justify-content: center;
  1244. position: relative;
  1245. .nav-title {
  1246. font-size: 32rpx;
  1247. }
  1248. .back {
  1249. position: absolute;
  1250. left: 20rpx;
  1251. }
  1252. .search {
  1253. display: flex;
  1254. align-items: center;
  1255. position: absolute;
  1256. right: 20rpx;
  1257. }
  1258. }
  1259. .fixed1 {
  1260. height: var(--status-bar-height);
  1261. }
  1262. .row {
  1263. display: flex;
  1264. justify-content: space-between;
  1265. }
  1266. .content1 {
  1267. background: white;
  1268. margin: 40rpx 20rpx 0 20rpx;
  1269. border-radius: 20rpx;
  1270. padding: 40rpx;
  1271. .select-sf {
  1272. color: #171717;
  1273. font-size: 34rpx;
  1274. font-weight: 600;
  1275. }
  1276. .select-sf1 {
  1277. color: #999999;
  1278. }
  1279. .right {
  1280. color: #CBCBCB
  1281. }
  1282. }
  1283. .content2,
  1284. .content3,
  1285. .content5 {
  1286. box-sizing: border-box;
  1287. background: white;
  1288. border-radius: 20rpx;
  1289. padding: 20rpx;
  1290. margin: 20rpx;
  1291. .row {
  1292. margin: 30rpx;
  1293. }
  1294. .row1,
  1295. .row2 {
  1296. display: flex;
  1297. justify-content: space-between;
  1298. align-items: center;
  1299. .left .top {
  1300. display: flex;
  1301. }
  1302. }
  1303. }
  1304. .select-type {
  1305. display: flex;
  1306. justify-content: flex-end;
  1307. }
  1308. .top-title {
  1309. background: #fff;
  1310. padding: 20rpx;
  1311. position: fixed;
  1312. z-index: 100;
  1313. top: 0;
  1314. box-sizing: border-box;
  1315. width: 100%;
  1316. }
  1317. .content2 {
  1318. padding: 40rpx;
  1319. .row1,
  1320. .row2 {
  1321. .left {
  1322. width: 100%;
  1323. }
  1324. .right {
  1325. color: #CBCBCB
  1326. }
  1327. }
  1328. .row2 {
  1329. margin-top: 40rpx;
  1330. }
  1331. .top {
  1332. display: flex;
  1333. align-items: center;
  1334. }
  1335. .bottom {
  1336. margin-top: 10rpx;
  1337. padding-left: 72rpx;
  1338. }
  1339. .title {
  1340. font-size: 36rpx;
  1341. font-weight: 700;
  1342. color: #171717;
  1343. width: 90%;
  1344. justify-content: flex-start;
  1345. // text-align:left;
  1346. }
  1347. .collect {
  1348. width: 40rpx;
  1349. height: 40rpx;
  1350. line-height: 40rpx;
  1351. background: #F5BA3C;
  1352. color: white;
  1353. // font-size:1px;
  1354. padding: 6rpx;
  1355. border-radius: 50%;
  1356. text-align: center;
  1357. }
  1358. .send {
  1359. width: 40rpx;
  1360. height: 40rpx;
  1361. line-height: 40rpx;
  1362. background: #101010;
  1363. color: white;
  1364. padding: 6rpx;
  1365. border-radius: 50%;
  1366. text-align: center;
  1367. }
  1368. }
  1369. .content3 {}
  1370. .content4 {
  1371. margin: 20rpx;
  1372. padding-left: 20rpx;
  1373. .title {
  1374. color: #999999;
  1375. }
  1376. .btn-text {
  1377. color: #F5BA3C;
  1378. border: 1px solid #F5BA3C;
  1379. border-radius: 40rpx;
  1380. padding: 0rpx 10rpx;
  1381. box-sizing: border-box;
  1382. }
  1383. }
  1384. .submit {
  1385. width: 90%;
  1386. margin: 50rpx auto;
  1387. font-size: 36rpx;
  1388. font-weight: 500;
  1389. color: #FFFFFF;
  1390. background: #F5BA3C;
  1391. text-align: center;
  1392. padding: 20rpx 0;
  1393. border-radius: 50rpx;
  1394. }
  1395. .fa-submit {
  1396. width: 90%;
  1397. margin: 50rpx auto;
  1398. font-size: 36rpx;
  1399. font-weight: 500;
  1400. color: #FFFFFF;
  1401. background: rgb(153, 153, 153);
  1402. text-align: center;
  1403. padding: 20rpx 0;
  1404. border-radius: 50rpx;
  1405. }
  1406. .select-data {
  1407. color: #999999;
  1408. }
  1409. .row-bgc {
  1410. background: #F7F8FA;
  1411. padding: 20rpx 30rpx;
  1412. box-sizing: border-box;
  1413. border-radius: 10rpx;
  1414. }
  1415. .car-input {
  1416. // padding:20rpx;
  1417. // box-sizing: border-box;
  1418. // border-radius: 10px;
  1419. }
  1420. .car-line {
  1421. margin: 0 20rpx;
  1422. }
  1423. .car-row {
  1424. display: flex;
  1425. background: white;
  1426. padding: 20rpx;
  1427. box-sizing: border-box;
  1428. border-radius: 10rpx;
  1429. }
  1430. uni-navigator {
  1431. display: inline-block;
  1432. color: #F5BA3C;
  1433. }
  1434. .popup .title {
  1435. position: relative;
  1436. top: -30rpx;
  1437. font-size: 36rpx;
  1438. font-weight: 700;
  1439. }
  1440. .price-item {
  1441. display: inline-block;
  1442. background: rgb(243, 243, 243);
  1443. border: 1px solid rgb(243, 243, 243);
  1444. text-align: center;
  1445. margin-left: 20rpx;
  1446. padding: 14rpx 30rpx;
  1447. box-sizing: border-box;
  1448. font-size: 28rpx;
  1449. border-radius: 10rpx;
  1450. }
  1451. .cartype-item {
  1452. display: inline-block;
  1453. width: calc(25% - 40rpx);
  1454. background: rgb(243, 243, 243);
  1455. border: 1px solid rgb(243, 243, 243);
  1456. text-align: center;
  1457. margin: 20rpx;
  1458. padding: 14rpx 10rpx;
  1459. box-sizing: border-box;
  1460. font-size: 28rpx;
  1461. border-radius: 10rpx;
  1462. }
  1463. .active {
  1464. background: rgb(251, 240, 229) !important;
  1465. border: 1px solid rgb(255, 134, 0) !important;
  1466. color: rgb(255, 134, 0);
  1467. }
  1468. .y-price {
  1469. justify-content: space-between;
  1470. .left {
  1471. width: 320rpx;
  1472. }
  1473. .right {
  1474. width: 100%;
  1475. }
  1476. }
  1477. .date-list-item {
  1478. display: inline-block;
  1479. background: rgb(243, 243, 243);
  1480. border: 1px solid rgb(243, 243, 243);
  1481. box-sizing: border-box;
  1482. width: calc(25% - 20rpx);
  1483. text-align: center;
  1484. margin: 10rpx;
  1485. padding: 10rpx 0;
  1486. border-radius: 10rpx;
  1487. }
  1488. .title-two {
  1489. margin: 20rpx 0;
  1490. }
  1491. .time1 {
  1492. width: 100%;
  1493. margin: 0 auto;
  1494. background-color: #FFFFFF;
  1495. color: #000;
  1496. height: 450rpx;
  1497. .top {
  1498. width: 690rpx;
  1499. margin: 0 auto;
  1500. height: 100rpx;
  1501. line-height: 100rpx;
  1502. text {
  1503. font-weight: bold;
  1504. &:nth-child(1) {
  1505. font-size: 28rpx;
  1506. color: #999;
  1507. }
  1508. &:nth-child(2) {
  1509. font-size: 28rpx;
  1510. color: #0A84FF;
  1511. }
  1512. }
  1513. }
  1514. .tip12 {
  1515. width: 100%;
  1516. height: 100rpx;
  1517. view {
  1518. width: 50%;
  1519. text-align: center;
  1520. line-height: 100rpx;
  1521. font-size: 40rpx;
  1522. color: #000000;
  1523. }
  1524. }
  1525. .hours {
  1526. font-size: 30rpx;
  1527. font-weight: bold;
  1528. color: #000;
  1529. }
  1530. .minutes {
  1531. font-size: 30rpx;
  1532. font-weight: bold;
  1533. color: #000;
  1534. }
  1535. }
  1536. .picker {
  1537. width: 100%;
  1538. height: 300rpx;
  1539. }
  1540. </style>