release.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387
  1. <template>
  2. <view class="content">
  3. <!-- <u-navbar title="发布" :placeholder="true" rightText="记录" @rightClick="goToRecord" @leftClick="back()"> -->
  4. <!-- view class="u-nav-slot" slot="left">
  5. <u-icon name="arrow-left" size="19"></u-icon>
  6. <u-line direction="column" :hairline="false" length="16" margin="0 8px"></u-line>
  7. <u-icon name="home" size="20"></u-icon>
  8. </view> -->
  9. <!-- </u-navbar> -->
  10. <!-- <view class="fixed1"></view>
  11. <view class='title top-title flex'>
  12. <u-icon class="back" name="arrow-left" color="" size="20" @click="back"></u-icon>
  13. <view class="nav-title">发布</view>
  14. <view class="search" @click="goToRecord">
  15. <u-icon class="" name="order" color="" size="28"></u-icon>
  16. <view>
  17. 记录
  18. </view>
  19. </view>
  20. </view> -->
  21. <view class="content1">
  22. <view class="row" @click="selectCargoOwner">
  23. <view class="left select-sf" :class='dataObj.cargoOwner?"":"select-sf1"'>{{dataObj.cargoOwner?dataObj.cargoOwner:'选择货主身份'}}</view>
  24. <view class="right"><image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;"></image></view>
  25. </view>
  26. <!-- <view class="row" @click="selectCargoOwner" v-if="dataObj.cargoOwner">
  27. <view class="left">{{dataObj.cargoOwner}}</view>
  28. <view class="right">></view>
  29. </view> -->
  30. <u-picker :show="show" :columns="columns" :closeOnClickOverlay='true' @close='selectCargoOwnerClose'
  31. @cancel='selectCargoOwnerClose' @confirm='confirmSelectCargoOwner'></u-picker>
  32. </view>
  33. <view class="content2">
  34. <view class="row1">
  35. <view class="left">
  36. <view class="top" @click="selectAddress(0)">
  37. <view class="send">发</view>
  38. <view class="title">
  39. {{dataObj.sendArea?(dataObj.sendPrivate + dataObj.sendCity+dataObj.sendArea):'选择发货地区'}}
  40. </view>
  41. </view>
  42. <view class="bottom">
  43. <input type="text" value="" placeholder="输入详细地址" v-model="dataObj.sendDetailedAddress" />
  44. </view>
  45. </view>
  46. <view class="right" @click="selectAddress(0)" v-if="!dataObj.sendArea">
  47. <view v-if='dataObj.sendArea' class="right"></view>
  48. <view class="right" v-else><image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;"></image></view>
  49. </view>
  50. </view>
  51. <view class="row2">
  52. <view class="left">
  53. <view class="top" @click="selectAddress(1)">
  54. <view class="collect">收</view>
  55. <view class="title">
  56. {{dataObj.unloadArea?(dataObj.unloadPrivate + dataObj.unloadCity+dataObj.unloadArea):'选择收货地区'}}
  57. </view>
  58. </view>
  59. <view class="bottom">
  60. <input type="text" value="" placeholder="输入详细地址" v-model="dataObj.unloadDetailedAddress" />
  61. </view>
  62. </view>
  63. <view class="right" @click="selectAddress(1)" v-if="!dataObj.unloadArea">
  64. <view v-if='dataObj.unloadArea' class="right">{{(dataObj.unloadCity+dataObj.unloadArea)}}</view>
  65. <view class="right" v-else><image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;"></image></view>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="content3">
  70. <view class="row">
  71. <view class="left">距离</view>
  72. <!-- <input type="text" value="" class="input" placeholder="自动计算" v-model="dataObj.distance" disabled /> -->
  73. {{dataObj.distance }}
  74. km
  75. </view>
  76. <view class="row">
  77. <view class="left">货物类别</view>
  78. <view class="right" @click="goodstypeChange">{{dataObj.goodsType?dataObj.goodsType:"请选择货物类别"}}</view>
  79. </view>
  80. <view class="row">
  81. <view class="left">货名</view>
  82. <view class="right"><input type="text" class="input" value="" placeholder="输入货物名称"
  83. v-model="dataObj.goodsName" /></view>
  84. </view>
  85. <view class="row">
  86. <view class="left">收货方</view>
  87. <view class="right flex">
  88. <input type="text" value="" placeholder="输入收货人姓名或企业名" class="input" v-model="dataObj.receiver" />
  89. </view>
  90. </view>
  91. <view class="row">
  92. <view class="left">收货方手机号</view>
  93. <view class="right flex">
  94. <input type="number" maxlength="11" placeholder="输入收货方手机号" class="input"
  95. v-model="dataObj.receiverPhone" />
  96. </view>
  97. </view>
  98. <view class="row">
  99. <view class="left">收货人身份证号</view>
  100. <view class="right flex">
  101. <input type="number" maxlength="18" placeholder="输入收货人身份证号" class="input"
  102. v-model="dataObj.receiverIdcard" />
  103. </view>
  104. </view>
  105. <view class="row">
  106. <view class="left">收货方信用代码(选填)</view>
  107. <view class="right flex">
  108. <input maxlength="18" placeholder="统一社会信用代码" class="input" v-model="dataObj.receiverCreditCode" />
  109. </view>
  110. </view>
  111. <view class="flex row">
  112. <view class="left-text">运费计算方式</view>
  113. <u-radio-group placement="row" v-model="dataObj.billingMethod" class="select-type">
  114. <u-radio :customStyle="radioCustomStyle" v-for="(item, index) in radiolist1" :key="index"
  115. :label="item.name" :name="item.name" @change="radioChange">
  116. </u-radio>
  117. </u-radio-group>
  118. </view>
  119. <view class="row">
  120. <view class="left">运费单价</view>
  121. <view class="right"><input type="number" value="" placeholder="输入运费单价" class="input"
  122. v-model="dataObj.freightPrice" /></view>
  123. </view>
  124. <view v-if='freightAdvance' class="row">
  125. <view class="left">该任务申请运费垫付</view>
  126. <view class="right">
  127. <u-switch v-model="dataObj.freightAdvance" @change="change" size="20"></u-switch>
  128. </view>
  129. </view>
  130. </view>
  131. <view class="content4 flex">
  132. <view class="title">以下为附加信息</view>
  133. <view class="btn-text">选填</view>
  134. </view>
  135. <view class="content5">
  136. <view class="row">
  137. <view class="left">发货联系人</view>
  138. <view class="right flex">
  139. <input type="text" value="" placeholder="输入发货联系人姓名" class="input" v-model="dataObj.sender" />
  140. </view>
  141. </view>
  142. <view class="row">
  143. <view class="left">发货联系人电话</view>
  144. <view class="right flex">
  145. <input type="number" maxlength="11" value="" placeholder="输入发货联系人手机号" class="input"
  146. v-model="dataObj.senderPhone" />
  147. </view>
  148. </view>
  149. <view class="row">
  150. <view class="left">重量(吨)</view>
  151. <view class="right flex">
  152. <input type="number" value="" placeholder="输入预计发运重量" class="number" v-model="dataObj.weight"
  153. style="text-align: right;" />
  154. </view>
  155. </view>
  156. <view class="flex row" @click="selectValidityPeriod(0)">
  157. <view class="left-text">预计装车日期起</view>
  158. <view :class="!dataObj.loadingDateStart?'select-data':''">
  159. {{dataObj.loadingDateStart?dataObj.loadingDateStart:'选择有效截止日期>'}}
  160. </view>
  161. </view>
  162. <view class="flex row" @click="selectValidityPeriod(1)">
  163. <view class="left-text">预计装车日期止</view>
  164. <view :class="!dataObj.loadingDateEnd?'select-data':''">
  165. {{dataObj.loadingDateEnd?dataObj.loadingDateEnd:'选择有效截止日期>'}}
  166. </view>
  167. </view>
  168. <view class="row">
  169. <view class="left">车长要求(米)</view>
  170. </view>
  171. <view class="row flex-space-between row-bgc">
  172. <view class="car-row">
  173. <input type="number" value="" placeholder="最短不限" class="" v-model="dataObj.carLengthSmall"
  174. class="car-input" />
  175. <view>m</view>
  176. </view>
  177. <view class="car-line">-</view>
  178. <view class="car-row">
  179. <input type="number" value="" placeholder="最长不限" class="" v-model="dataObj.carLength"
  180. class="car-input" />
  181. <view>m</view>
  182. </view>
  183. </view>
  184. <view class="row">
  185. <view class="left">载重要求(吨)</view>
  186. </view>
  187. <view class="row flex-space-between row-bgc">
  188. <view class="car-row">
  189. <input type="number" value="" placeholder="最小不限" class="car-input"
  190. v-model="dataObj.loadWeightSmall" />
  191. <view>吨</view>
  192. </view>
  193. <view class="car-line">-</view>
  194. <view class="car-row">
  195. <input type="number" value="" placeholder="最大不限" class="car-input" v-model="dataObj.loadWeight" />
  196. <view>吨</view>
  197. </view>
  198. </view>
  199. <view class="row">
  200. <view class="left">车型要求</view>
  201. </view>
  202. <view class="row">
  203. <u-checkbox-group v-model="checkboxValue1" placement="row" @change="checkboxChange">
  204. <u-checkbox :customStyle="radioCustomStyle" v-for="(item, index) in checkboxList1" :key="index"
  205. :label="item.name" :name="item.name">
  206. </u-checkbox>
  207. </u-checkbox-group>
  208. </view>
  209. <view class="row">
  210. <view class="left">任务描述</view>
  211. </view>
  212. <view class="row">
  213. <u--textarea v-model="dataObj.taskDescription" placeholder="请输入内容" :count='true' maxlength='200'>
  214. </u--textarea>
  215. </view>
  216. <view class="flex row noborder" @click="selectValidityPeriodcq">
  217. <view class="left-text">任务有效期</view>
  218. <view :class="dataObj.taskValidity?'':'select-data'">
  219. {{dataObj.taskValidity?dataObj.taskValidity:'选择任务有效期>'}}
  220. </view>
  221. </view>
  222. <u-picker :show="isShowcardValidity" ref="uPicker" :columns="validityPeriodcq"
  223. @confirm="confirmValidityPeriodcq" @change="changeHandler" @close='isShowcardValidity=false'
  224. @cancel='isShowcardValidity=false' :closeOnClickOverlay='true'>
  225. </u-picker>
  226. </view>
  227. <view class="submit" @click="submit">立即发布</view>
  228. <u-picker :show="isShowValidity" ref="uPicker" :columns="validityPeriod" @confirm="confirmValidityPeriod"
  229. :closeOnClickOverlay='true' @close='isShowValidity=false' @cancel='isShowValidity=false'>
  230. </u-picker>
  231. <!-- //货物类别 -->
  232. <u-picker :show="isGoodsType" ref="uPicker" :columns="goodsList" keyName="constValue" @confirm="goodsSubmit"
  233. :closeOnClickOverlay='true' @close='isGoodsType=false' @cancel='isGoodsType=false'>
  234. </u-picker>
  235. <u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :closeOnClickOverlay='false'
  236. :showCancelButton='showCancelButton' confirmColor='#2772FB' @confirm="$u.throttle(confirmClick(), 5000)" @close="cancelClick"
  237. @cancel="cancelClick"></u-modal>
  238. <u-modal :show="isShowAlert1" :title="alertTitle" :confirmText='confirmText' :content='alertContent'
  239. :closeOnClickOverlay='false' :showCancelButton='showCancelButton' confirmColor='#2772FB'
  240. @confirm="$u.throttle(confirmClick(), 5000)" @close="cancelClick" @cancel="cancelClick"></u-modal>
  241. <u-toast ref="uToast"></u-toast>
  242. </view>
  243. </template>
  244. <script>
  245. var _this;
  246. import {
  247. mapState
  248. } from 'vuex';
  249. export default {
  250. data() {
  251. return {
  252. showCancelButton: true,
  253. qyList: [],
  254. isShowAlert: false,
  255. alertTitle: '确定发布运输任务?',
  256. alertContent: null,
  257. radioCustomStyle: {
  258. margin: '0 0 0 20rpx'
  259. },
  260. show: false,
  261. columns: [
  262. []
  263. ],
  264. freightAdvance: false,
  265. dataObj: {
  266. commonId: '',
  267. cargoOwner: '',
  268. sendPrivate: '',
  269. sendCity: '',
  270. sendArea: '',
  271. sendDetailedAddress: '',
  272. unloadPrivate: '',
  273. unloadCity: '',
  274. unloadArea: '',
  275. unloadDetailedAddress: '',
  276. distance: '',
  277. goodsName: '',
  278. billingMethod: '元/吨',
  279. freightPrice: '',
  280. freightAdvance: false,
  281. sender: '',
  282. senderPhone: '',
  283. receiver: '',
  284. receiverPhone: '',
  285. weight: '',
  286. loadingDateStart: '',
  287. loadingDateEnd: '',
  288. carLengthSmall: '',
  289. carLength: '',
  290. loadWeightSmall: '',
  291. loadWeight: '',
  292. carModel: '',
  293. taskDescription: '',
  294. taskValidity: '',
  295. sendLongitude: '',
  296. sendLatitude: '',
  297. unsendLongitude: '',
  298. unsendLatitude: '',
  299. },
  300. confirmText: '',
  301. isShowAlert1: false,
  302. checkboxValue1: ['不限'],
  303. checkboxList1: [{
  304. name: '不限',
  305. disabled: false
  306. },
  307. {
  308. name: '高栏',
  309. disabled: false
  310. },
  311. {
  312. name: '集装箱',
  313. disabled: false
  314. },
  315. {
  316. name: '自卸车',
  317. disabled: false
  318. }
  319. ],
  320. value: true,
  321. isShowcardValidity: false,
  322. ValidityPeriodType: '',
  323. validityPeriod: [],
  324. validityPeriodcq: [],
  325. isShowValidity: false,
  326. dataDetails: {
  327. type: '元/吨'
  328. },
  329. radiolist1: [{
  330. name: '元/吨',
  331. disabled: false
  332. },
  333. {
  334. name: '元/车',
  335. disabled: false
  336. },
  337. ],
  338. // 货物类别
  339. isGoodsType:false,
  340. goodsList:[]
  341. }
  342. },
  343. onNavigationBarButtonTap(e) {
  344. console.log("success")
  345. this.goToRecord()
  346. },
  347. onShow() {
  348. _this = this
  349. // #ifdef APP-PLUS
  350. // let _status = this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
  351. // phone: this.userInfo.phone
  352. // }).then(res => {
  353. // uni.setStorageSync("firstAuthentication",res.data)
  354. // return res.data.authenticationStatus
  355. // })
  356. // if (_status == '已禁用') {
  357. // this.isShowAlert = true
  358. // this.alertTitle = '账号审核中'
  359. // this.confirmText = '退出APP'
  360. // this.showCancelButton = false
  361. // return
  362. // } else {
  363. // }
  364. // #endif
  365. if (!this.hasLogin) {
  366. uni.$u.route('/pages/public/login');
  367. return
  368. }
  369. this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
  370. phone: this.userInfo.phone
  371. }).then(res => {
  372. uni.setStorageSync("firstAuthentication", res.data)
  373. let _obj = res.data
  374. if (_obj.authenticationStatus == '已认证') {
  375. uni.$u.route('/pages/components/empty/index');
  376. } else if (_obj.authenticationStatus == '审核中') {
  377. uni.showToast({
  378. title: '身份信息审核中',
  379. icon: 'none'
  380. })
  381. } else if (_obj.authenticationStatus == '已过期') {
  382. this.alertTitle = '身份信息已过期!'
  383. this.showCancelButton = false
  384. this.confirmText = '立即修改'
  385. this.isShowAlert1 = true
  386. } else {
  387. this.alertTitle = '身份信息未认证,去认证?'
  388. this.confirmText = '确认'
  389. this.showCancelButton = false
  390. this.isShowAlert = true
  391. }
  392. })
  393. this.validityPeriod = this.$helper.makeValidityPeriod(0, '随时')
  394. this.validityPeriodcq = this.$helper.makeValidityPeriod(0, '长期')
  395. let _faddress = uni.getStorageSync('storage_faddress');
  396. let _saddress = uni.getStorageSync('storage_saddress');
  397. if (_faddress) {
  398. this.dataObj.sendCity = _faddress.city
  399. this.dataObj.sendArea = _faddress.area
  400. this.dataObj.sendPrivate = _faddress.province
  401. this.dataObj.sendDetailedAddress = _faddress.detailedAddress
  402. this.dataObj.sendLongitude = _faddress.longitude
  403. this.dataObj.sendLatitude = _faddress.latitude
  404. if(_faddress.contactPhone){
  405. this.dataObj.senderPhone = _faddress.contactPhone
  406. }
  407. if(_faddress.contacts){
  408. this.dataObj.sender = _faddress.contacts
  409. }
  410. } else {
  411. this.getDefaultPlace(0)
  412. }
  413. if (_saddress) {
  414. this.dataObj.unloadDetailedAddress = _saddress.detailedAddress
  415. this.dataObj.unloadCity = _saddress.city
  416. this.dataObj.unloadArea = _saddress.area
  417. this.dataObj.unloadPrivate = _saddress.province
  418. this.dataObj.unsendLongitude = _saddress.longitude
  419. this.dataObj.unsendLatitude = _saddress.latitude
  420. if(_saddress.contacts){
  421. this.dataObj.receiver = _saddress.contacts
  422. }
  423. if(_saddress.contactPhone){
  424. this.dataObj.receiverPhone = _saddress.contactPhone
  425. }
  426. } else {
  427. this.getDefaultPlace(1)
  428. }
  429. if (this.dataObj.sendLatitude && this.dataObj.sendLongitude && this.dataObj.unsendLatitude && this.dataObj
  430. .unsendLongitude) {
  431. this.dataObj.distance = this.$helper.getDistance(this.dataObj.unsendLatitude, this.dataObj
  432. .unsendLongitude,
  433. this.dataObj.sendLatitude, this.dataObj.sendLongitude)
  434. }
  435. this.dataObj.loadingDateStart = '随时'
  436. this.dataObj.loadingDateEnd = '随时'
  437. this.dataObj.taskValidity = '长期'
  438. this.getSFList()
  439. },
  440. async onLoad() {
  441. //货物类别(默认上一次)
  442. this.queryGoodsList() // 查询货物类别
  443. let goods = uni.getStorageSync("goodsType")
  444. if(goods){
  445. this.dataObj.goodsType = goods.name
  446. this.dataObj.goodsTypeKey = goods.key
  447. }
  448. // _this = this
  449. // // #ifdef APP-PLUS
  450. // let _status = await this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
  451. // phone: this.userInfo.phone,
  452. // }).then(res => {
  453. // if(res.data){
  454. // return res.data.authenticationStatus
  455. // }
  456. // })
  457. // if (_status == '已禁用') {
  458. // this.isShowAlert = true
  459. // this.alertTitle = '账号审核中'
  460. // this.confirmText = '退出APP'
  461. // this.showCancelButton = false
  462. // return
  463. // } else {}
  464. // // #endif
  465. },
  466. computed: {
  467. ...mapState(['hasLogin', 'userInfo']),
  468. },
  469. methods: {
  470. queryGoodsList(){
  471. this.$request.baseRequest('get', '/commonSysParameter/getInfo', {
  472. constId: "CON1"
  473. }).then(res => {
  474. this.goodsList.push(res.data)
  475. console.log(this.goodsList)
  476. })
  477. },
  478. goodstypeChange(){
  479. this.isGoodsType = true
  480. },
  481. goodsSubmit(e){
  482. this.dataObj.goodsType = e.value[0].constValue
  483. this.dataObj.goodsTypeKey = e.value[0].constKey
  484. let _obj={
  485. name:e.value[0].constValue,
  486. key:e.value[0].constKey
  487. }
  488. uni.setStorageSync("goodsType",_obj)
  489. this.isGoodsType = false
  490. },
  491. getSFList() {
  492. this.dataObj.commonId = this.userInfo.id
  493. this.$request.baseRequest('get', '/cargoOwnerCompInfo/cargoOwnerList', {
  494. commonId: this.userInfo.id
  495. }).then(res => {
  496. if (uni.getStorageSync('releaseCargoOwner')) {
  497. this.dataObj.cargoOwner = uni.getStorageSync('releaseCargoOwner')
  498. this.dataObj.compId =uni.getStorageSync('releasecompId')
  499. }
  500. // 可用企业货主
  501. this.qyList = []
  502. // 自己法人
  503. // let _self = res.data.companyInfoList
  504. let _self = res.data.hyCompanyInfoList
  505. //代理货主
  506. // let _dlhz = res.data.cargoOwnerCompInfoList
  507. let _dlhz = res.data.hyCargoOwnerCompInfoList
  508. if (!_dlhz) _dlhz = []
  509. if (!_self) _self = []
  510. if (_self.length > 0) {
  511. for (let i = 0; i < _self.length; i++) {
  512. _self[i].compStatus='wd'
  513. if (_self[i].status == '已认证') {
  514. this.qyList.push(_self[i])
  515. }
  516. }
  517. }
  518. if (_dlhz.length > 0) {
  519. for (let i = 0; i < _dlhz.length; i++) {
  520. _dlhz[i].compStatus='ss'
  521. if (_dlhz[i].status == '已认证') {
  522. this.qyList.push(_dlhz[i])
  523. }
  524. }
  525. }
  526. this.columns = [
  527. []
  528. ]
  529. let obj = uni.getStorageSync("firstAuthentication")
  530. if (obj && obj.authenticationStatus == '已认证') {
  531. this.columns[0].push("个人货主")
  532. }
  533. for (let i = 0; i < this.qyList.length; i++) {
  534. this.columns[0].push(this.qyList[i].company ? this.qyList[i].company : this.qyList[i]
  535. .companyName)
  536. }
  537. this.$forceUpdate()
  538. })
  539. .catch(res => {});
  540. },
  541. validate() {
  542. if (uni.$u.test.isEmpty(this.dataObj.cargoOwner)) {
  543. this.$refs.uToast.show({
  544. type: 'error',
  545. message: "货主不能为空!",
  546. })
  547. return true
  548. }
  549. if (uni.$u.test.isEmpty(this.dataObj.sendArea)) {
  550. this.$refs.uToast.show({
  551. type: 'error',
  552. message: "请选择发货地区!",
  553. })
  554. return true
  555. }
  556. if (uni.$u.test.isEmpty(this.dataObj.sendDetailedAddress)) {
  557. this.$refs.uToast.show({
  558. type: 'error',
  559. message: "发货详细地址不能为空!",
  560. })
  561. return true
  562. }
  563. if (uni.$u.test.isEmpty(this.dataObj.unloadArea)) {
  564. this.$refs.uToast.show({
  565. type: 'error',
  566. message: "请选择收货地区!",
  567. })
  568. return true
  569. }
  570. if (uni.$u.test.isEmpty(this.dataObj.unloadDetailedAddress)) {
  571. this.$refs.uToast.show({
  572. type: 'error',
  573. message: "收货详细地址不能为空!",
  574. })
  575. return true
  576. }
  577. if (uni.$u.test.isEmpty(this.dataObj.goodsType)) {
  578. this.$refs.uToast.show({
  579. type: 'error',
  580. message: "货物类别不能为空!",
  581. })
  582. return true
  583. }
  584. if (uni.$u.test.isEmpty(this.dataObj.goodsName)) {
  585. this.$refs.uToast.show({
  586. type: 'error',
  587. message: "货名不能为空!",
  588. })
  589. return true
  590. }
  591. if (!uni.$u.test.chinese(this.dataObj.goodsName)) {
  592. this.$refs.uToast.show({
  593. type: 'error',
  594. message: "货名输入错误!",
  595. })
  596. return true
  597. }
  598. console.log(this.dataObj.receiver,"收货方")
  599. console.log(this.dataObj.receiverPhone,"收货方手机号")
  600. if (uni.$u.test.isEmpty(this.dataObj.receiver)) {
  601. this.$refs.uToast.show({
  602. type: 'error',
  603. message: "收货方不能为空!",
  604. })
  605. return true
  606. }
  607. if (uni.$u.test.isEmpty(this.dataObj.receiverPhone)) {
  608. this.$refs.uToast.show({
  609. type: 'error',
  610. message: "收货方手机号不能为空!",
  611. })
  612. return true
  613. }
  614. // if (uni.$u.test.isEmpty(this.dataObj.receiverIdcard)) {
  615. // this.$refs.uToast.show({
  616. // type: 'error',
  617. // message: "收货人身份证不能为空!",
  618. // })
  619. // return true
  620. // }
  621. if (!this.dataObj.receiverIdcard && !this.dataObj.receiverCreditCode) {
  622. this.$refs.uToast.show({
  623. type: 'error',
  624. message: "信用代码和身份证号码至少填写一个!",
  625. duration:2000
  626. })
  627. return true
  628. }
  629. // if(this.dataObj.receiverIdcard&&!uni.$u.test.rangeLength(this.dataObj.receiverIdcard, [18, 18])){
  630. // this.$refs.uToast.show({
  631. // type: 'error',
  632. // message: "身份证号输入错误!",
  633. // })
  634. // return true
  635. // }
  636. if(this.dataObj.receiverIdcard&&this.dataObj.receiverIdcard.length!=18){
  637. this.$refs.uToast.show({
  638. type: 'error',
  639. message: "身份证号输入错误!",
  640. })
  641. return true
  642. }
  643. if(this.dataObj.receiverCreditCode&&this.dataObj.receiverCreditCode.length!=18){
  644. this.$refs.uToast.show({
  645. type: 'error',
  646. message: "信用代码输入错误!",
  647. })
  648. return true
  649. }
  650. if (uni.$u.test.isEmpty(this.dataObj.freightPrice)) {
  651. this.$refs.uToast.show({
  652. type: 'error',
  653. message: "运费单价不能为空!",
  654. })
  655. return true
  656. }
  657. if (
  658. this.dataObj.freightPrice < 0 || this.dataObj.freightPrice > 100000 || (
  659. String(this.dataObj.freightPrice).indexOf('.') != -1 && String(this.dataObj.freightPrice).length -
  660. (String(this.dataObj.freightPrice).indexOf(
  661. '.') + 1) > 2)
  662. ) {
  663. uni.showToast({
  664. title: '运费单价输入错误!',
  665. duration: 2000,
  666. icon: "none",
  667. });
  668. return true
  669. }
  670. if (this.dataObj.weight) {
  671. if (
  672. this.dataObj.weight < 0.1 || this.dataObj.weight > 10000000 || (
  673. String(this.dataObj.weight).indexOf('.') != -1 && String(tthis.dataObj.weight).length -
  674. (String(this.dataObj.weight).indexOf(
  675. '.') + 1) > 2)
  676. ) {
  677. uni.showToast({
  678. title: '重量输入错误!',
  679. duration: 2000,
  680. icon: "none",
  681. });
  682. return true
  683. }
  684. }
  685. if (this.dataObj.carLengthSmall) {
  686. if (this.dataObj.carLengthSmall < 2 || this.dataObj.carLengthSmall > 30) {
  687. uni.showToast({
  688. title: '最小车长输入错误!',
  689. duration: 2000,
  690. icon: "none",
  691. });
  692. return true
  693. }
  694. }
  695. if (this.dataObj.carLength) {
  696. if (this.dataObj.carLength < 2 || this.dataObj.carLength > 30) {
  697. uni.showToast({
  698. title: '最大车长输入错误!',
  699. duration: 2000,
  700. icon: "none",
  701. });
  702. return true
  703. }
  704. }
  705. if (this.dataObj.carLengthSmall && this.dataObj.carLength && (Number(this.dataObj.carLengthSmall) > Number(
  706. this.dataObj
  707. .carLength))) {
  708. uni.showToast({
  709. title: '最小车长应小于最大车长!',
  710. duration: 2000,
  711. icon: "none",
  712. });
  713. return true
  714. }
  715. if (this.dataObj.loadWeightSmall) {
  716. if (
  717. this.dataObj.loadWeightSmall < 0.1 || this.dataObj.loadWeightSmall > 100 || (
  718. String(this.dataObj.loadWeightSmall).indexOf('.') != -1 && String(tthis.dataObj
  719. .loadWeightSmall).length -
  720. (String(this.dataObj.loadWeightSmall).indexOf(
  721. '.') + 1) > 3)
  722. ) {
  723. uni.showToast({
  724. title: '载量输入错误!',
  725. duration: 2000,
  726. icon: "none",
  727. });
  728. return true
  729. }
  730. }
  731. if (this.dataObj.loadWeight) {
  732. if (
  733. this.dataObj.loadWeight < 0.1 || this.dataObj.loadWeight > 100 || (
  734. String(this.dataObj.loadWeight).indexOf('.') != -1 && String(tthis.dataObj.loadWeight).length -
  735. (String(this.dataObj.loadWeight).indexOf(
  736. '.') + 1) > 3)
  737. ) {
  738. uni.showToast({
  739. title: '载量输入错误!',
  740. duration: 2000,
  741. icon: "none",
  742. });
  743. return true
  744. }
  745. }
  746. if (this.dataObj.loadWeightSmall && this.dataObj.loadWeight && (Number(this.dataObj.loadWeightSmall) >
  747. Number(this.dataObj
  748. .loadWeight))) {
  749. uni.showToast({
  750. title: '最小载重应小于最大载重!',
  751. duration: 2000,
  752. icon: "none",
  753. });
  754. return true
  755. }
  756. },
  757. confirmClick() {
  758. uni.$u.throttle(this.requestdata, 500)
  759. },
  760. requestdata(){
  761. console.log(this.dataObj)
  762. // // #ifdef APP-PLUS
  763. // if (this.alertTitle == '账号审核中') {
  764. // if (uni.getSystemInfoSync().platform == 'ios') {
  765. // plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
  766. // } else if (uni.getSystemInfoSync().platform == 'android') {
  767. // plus.runtime.quit();
  768. // }
  769. // return
  770. // }
  771. // // #endif
  772. // if (this.alertTitle == '身份信息未认证,去认证?') {
  773. // uni.switchTab({
  774. // url: '/pages/mine/index'
  775. // })
  776. // return
  777. // }
  778. // this.isShowAlert = false
  779. if (this.dataDetails.type == '元/吨') {
  780. this.dataObj.billingMethod = 0
  781. } else {
  782. this.dataObj.billingMethod = 1
  783. }
  784. if (this.dataObj.freightAdvance) {
  785. this.dataObj.freightAdvance = 1
  786. } else {
  787. this.dataObj.freightAdvance = 0
  788. }
  789. if(!this.dataObj.receiverIdcard){
  790. this.dataObj.receiverIdcard=''
  791. }
  792. if(!this.dataObj.receiverCreditCode){
  793. this.dataObj.receiverCreditCode=''
  794. }
  795. let _list = []
  796. for (let i = 0; i < this.checkboxValue1.length; i++) {
  797. if (this.checkboxValue1[i] == '不限') {
  798. _list.push(1)
  799. } else if (this.checkboxValue1[i] == '高栏') {
  800. _list.push(2)
  801. } else if (this.checkboxValue1[i] == '集装箱') {
  802. _list.push(3)
  803. } else if (this.checkboxValue1[i] == '自卸车') {
  804. _list.push(4)
  805. }
  806. }
  807. this.dataObj.carModel = _list.toString()
  808. this.dataObj.commonId = this.userInfo.id
  809. this.$request.baseRequest('post', '/publishTaskInfo/api/addTask', this.dataObj).then(res => {
  810. uni.removeStorage({
  811. key: 'storage_saddress'
  812. });
  813. uni.removeStorage({
  814. key: 'storage_faddress'
  815. });
  816. uni.removeStorage({
  817. key: 'releaseCargoOwner'
  818. });
  819. uni.removeStorage({
  820. key: 'releasecompId'
  821. });
  822. this.$refs.uToast.show({
  823. type: 'success',
  824. message: "发布成功",
  825. complete() {
  826. _this.dataObj = {
  827. commonId: '',
  828. cargoOwner: '',
  829. sendPrivate: '',
  830. sendCity: '',
  831. sendArea: '',
  832. sendDetailedAddress: '',
  833. unloadPrivate: '',
  834. unloadCity: '',
  835. unloadArea: '',
  836. unloadDetailedAddress: '',
  837. distance: '',
  838. goodsName: '',
  839. billingMethod: '元/吨',
  840. freightPrice: '',
  841. freightAdvance: true,
  842. sender: '',
  843. senderPhone: '',
  844. receiver: '',
  845. receiverPhone: '',
  846. weight: '',
  847. loadingDateStart: '',
  848. loadingDateEnd: '',
  849. carLengthSmall: '',
  850. carLength: '',
  851. loadWeightSmall: '',
  852. loadWeight: '',
  853. carModel: '',
  854. taskDescription: '',
  855. taskValidity: '',
  856. sendLongitude: '',
  857. receiverIdcard:'',
  858. sendLatitude: '',
  859. receiverCreditCode:'',
  860. unsendLongitude: '',
  861. unsendLatitude: '',
  862. }
  863. _this.checkboxValue1 = ['不限']
  864. // uni.$u.route("/pages/release/record")
  865. }
  866. })
  867. this.isShowAlert = false
  868. })
  869. .catch(res => {
  870. uni.showToast({
  871. title: res.message,
  872. icon: 'none',
  873. duration: 2000
  874. })
  875. });
  876. },
  877. cancelClick() {
  878. this.isShowAlert = false
  879. },
  880. //获取默认发货地、收货地
  881. getDefaultPlace(type) {
  882. // 0时获取默认发货地址,1时获取默认收货地址 通过选择获取的地址无需获取默认地址
  883. uni.showLoading({
  884. mask: true,
  885. title: '加载中...'
  886. })
  887. this.$request.baseRequest('get', '/cargoOwnerAddressInfo/addressList', {
  888. commonId: this.userInfo.id
  889. }).then(res => {
  890. for (let i = 0; i < res.data.length; i++) {
  891. if (res.data[i].defaultShipment == 1 && type == 0) {
  892. this.dataObj.sendCity = res.data[i].city
  893. this.dataObj.sendArea = res.data[i].area
  894. this.dataObj.sendPrivate = res.data[i].province
  895. this.dataObj.sendDetailedAddress = res.data[i].detailedAddress
  896. this.dataObj.sendLongitude = res.data[i].longitude
  897. this.dataObj.sendLatitude = res.data[i].latitude
  898. this.dataObj.sender = res.data[i].contacts
  899. this.dataObj.senderPhone = res.data[i].contactPhone
  900. }
  901. if (res.data[i].defaultReceipt == 1 && type == 1) {
  902. this.dataObj.unloadDetailedAddress = res.data[i].detailedAddress
  903. this.dataObj.unloadCity = res.data[i].city
  904. this.dataObj.unloadArea = res.data[i].area
  905. this.dataObj.unloadPrivate = res.data[i].province
  906. this.dataObj.unsendLongitude = res.data[i].longitude
  907. this.dataObj.unsendLatitude = res.data[i].latitude
  908. this.dataObj.receiver = res.data[i].contacts
  909. this.dataObj.receiverPhone = res.data[i].contactPhone
  910. }
  911. }
  912. if (this.dataObj.sendLatitude && this.dataObj.sendLongitude && this.dataObj.unsendLatitude &&
  913. this.dataObj.unsendLongitude) {
  914. this.dataObj.distance = this.$helper.getDistance(this.dataObj.unsendLatitude, this.dataObj
  915. .unsendLongitude, this.dataObj.sendLatitude, this.dataObj.sendLongitude)
  916. }
  917. uni.hideLoading()
  918. })
  919. .catch(res => {
  920. uni.showToast({
  921. title: res.message,
  922. icon: 'none',
  923. duration: 2000
  924. })
  925. });
  926. },
  927. changeHandler(e) {
  928. const {
  929. columnIndex,
  930. value,
  931. values,
  932. index,
  933. picker = this.$refs.uPicker
  934. } = e
  935. // if (columnIndex === 0) {
  936. //
  937. // if (e.index != 0) {
  938. // picker.setColumnValues(1, this.validityPeriod[1].shift())
  939. // }
  940. // } else if (columnIndex === 1) {
  941. // if (e.index != 0) {
  942. // picker.setColumnValues(2, this.validityPeriod[2].shift())
  943. // }
  944. // }
  945. },
  946. selectCargoOwnerClose() {
  947. this.show = false
  948. },
  949. confirmSelectCargoOwner(e) {
  950. this.dataObj.cargoOwner = e.value[0]
  951. for (let i = 0; i < this.qyList.length; i++) {
  952. let _name = this.qyList[i].company ? this.qyList[i].company : this.qyList[i].companyName
  953. if (_name == e.value[0]) {
  954. if(e.value[0]!='个人货主'){
  955. this.freightAdvance=true
  956. if(this.qyList[i].compStatus=='ss'){
  957. this.dataObj.compId=this.qyList[i].compId
  958. }else{
  959. this.dataObj.compId=this.qyList[i].id
  960. }
  961. // console.log(this.qyList[i].compStatus,this.dataObj.compId)
  962. uni.setStorageSync('releasecompId', this.dataObj.compId)
  963. }else{
  964. this.freightAdvance=false
  965. }
  966. this.dataObj.freightAdvance = this.qyList[i].advanceFreightService == 1 ? true : false
  967. }
  968. }
  969. uni.setStorageSync('releaseCargoOwner', this.dataObj.cargoOwner)
  970. this.show = false
  971. },
  972. selectCargoOwner() {
  973. this.show = true
  974. },
  975. selectAddress(type) {
  976. // uni.removeStorage({
  977. // key: 'storage_faddress'
  978. // });
  979. // uni.removeStorage({
  980. // key: 'storage_saddress'
  981. // });
  982. uni.$u.route('/pages/release/selectAddress', {
  983. type: type,
  984. });
  985. },
  986. checkboxChange(n) {
  987. if (n.length > 1 && n.length < 4 && n.includes('不限')) {
  988. n.shift(0)
  989. } else if (n.length == 4) {
  990. this.checkboxValue1 = n.splice(1, 4)
  991. }
  992. },
  993. selectValidityPeriodcq() {
  994. this.isShowcardValidity = true
  995. },
  996. confirmValidityPeriod(e) {
  997. if (e.value[0] == '随时') {
  998. switch (this.ValidityPeriodType) {
  999. case 0:
  1000. this.dataObj.loadingDateStart = e.value[0]
  1001. break
  1002. case 1:
  1003. this.dataObj.loadingDateEnd = e.value[0]
  1004. break
  1005. }
  1006. } else {
  1007. if (!e.value[1] || !e.value[2]) {
  1008. this.$refs.uToast.show({
  1009. type: 'error',
  1010. message: "日期格式错误,请重新选择!",
  1011. })
  1012. return
  1013. }
  1014. switch (this.ValidityPeriodType) {
  1015. case 0:
  1016. this.dataObj.loadingDateStart = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  1017. break
  1018. case 1:
  1019. this.dataObj.loadingDateEnd = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  1020. break
  1021. }
  1022. }
  1023. this.isShowValidity = false
  1024. },
  1025. getTime: function() {
  1026. var date = new Date().getTime()
  1027. year = date.getFullYear(),
  1028. month = date.getMonth() + 1,
  1029. day = date.getDate(),
  1030. month >= 1 && month <= 9 ? (month = "0" + month) : "";
  1031. day >= 0 && day <= 9 ? (day = "0" + day) : "";
  1032. var timer = year + '-' + month + '-' + day
  1033. return timer;
  1034. },
  1035. confirmValidityPeriodcq(e) {
  1036. if (e.value[0] == '长期') {
  1037. if(e.value[1]||e.value[2]){
  1038. this.$refs.uToast.show({
  1039. type: 'error',
  1040. message: "选择长期时不允许选择月日!",
  1041. })
  1042. return
  1043. }
  1044. this.dataObj.taskValidity = e.value[0]
  1045. } else {
  1046. if (!e.value[1] || !e.value[2]) {
  1047. this.$refs.uToast.show({
  1048. type: 'error',
  1049. message: "日期格式错误,请重新选择!",
  1050. })
  1051. return
  1052. }
  1053. var date=new Date()
  1054. var text='任务已过期!'
  1055. if(e.value[0]<date.getFullYear()){
  1056. this.$refs.uToast.show({
  1057. type: 'error',
  1058. message: text,
  1059. })
  1060. return
  1061. }
  1062. if(e.value[0]==date.getFullYear()&&Number(e.value[1])<(date.getMonth()+1)){
  1063. this.$refs.uToast.show({
  1064. type: 'error',
  1065. message: text,
  1066. })
  1067. return
  1068. }
  1069. if(e.value[0]==date.getFullYear()&&Number(e.value[1])==(date.getMonth()+1)&&Number(e.value[2])<=(date.getDate())){
  1070. this.$refs.uToast.show({
  1071. type: 'error',
  1072. message: text,
  1073. })
  1074. return
  1075. }
  1076. var datetime = new Date().getTime()
  1077. var datetime1 = datetime + (24 * 60 * 60 * 1000 * 30 * 6)
  1078. var currecttime = new Date(e.value[0] + '-' + e.value[1] + '-' + e.value[2]).getTime()
  1079. if (currecttime < datetime || currecttime > datetime1) {
  1080. this.$refs.uToast.show({
  1081. type: 'error',
  1082. message: "请选择未来六个月之内的日期!",
  1083. })
  1084. return
  1085. } else {
  1086. this.dataObj.taskValidity = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  1087. }
  1088. console.log(datetime, currecttime)
  1089. }
  1090. this.isShowcardValidity = false
  1091. },
  1092. selectValidityPeriod(type) {
  1093. this.ValidityPeriodType = type
  1094. this.isShowValidity = true
  1095. },
  1096. change(e) {
  1097. console.log('change', e);
  1098. },
  1099. back() {
  1100. uni.navigateBack({
  1101. delta: 1
  1102. })
  1103. },
  1104. goToRecord() {
  1105. uni.$u.route('/pages/release/record');
  1106. },
  1107. radioChange(n) {
  1108. console.log(n)
  1109. this.dataDetails.type = n
  1110. },
  1111. submit() {
  1112. if (this.validate()) return
  1113. if (this.dataObj.cargoOwner == '个人货主') {
  1114. this.dataObj.compId = ""
  1115. this.dataObj.freightAdvance = 0
  1116. } else {
  1117. for (let i = 0; i < this.qyList.length; i++) {
  1118. if (this.dataObj.cargoOwner == this.qyList[i].companyName) {
  1119. this.dataObj.compId = this.qyList[i].id
  1120. break
  1121. }
  1122. }
  1123. }
  1124. this.isShowAlert = true;
  1125. },
  1126. }
  1127. }
  1128. </script>
  1129. <style scoped lang="scss">
  1130. .input {
  1131. text-align: right;
  1132. }
  1133. .content {
  1134. height: 100vh;
  1135. overflow: scroll;
  1136. }
  1137. .title {
  1138. padding: 0 20rpx;
  1139. display: flex;
  1140. justify-content: center;
  1141. position: relative;
  1142. .nav-title {
  1143. font-size: 32rpx;
  1144. }
  1145. .back {
  1146. position: absolute;
  1147. left: 20rpx;
  1148. }
  1149. .search {
  1150. display: flex;
  1151. align-items: center;
  1152. position: absolute;
  1153. right: 20rpx;
  1154. }
  1155. }
  1156. .fixed1 {
  1157. height: var(--status-bar-height);
  1158. }
  1159. .row {
  1160. display: flex;
  1161. justify-content: space-between;
  1162. }
  1163. .content1 {
  1164. background: white;
  1165. margin: 40rpx 20rpx 0 20rpx;
  1166. border-radius: 20rpx;
  1167. padding: 40rpx;
  1168. .select-sf {
  1169. color: #171717;
  1170. font-size: 34rpx;
  1171. font-weight: 600;
  1172. }
  1173. .select-sf1 {
  1174. color: #999999;
  1175. }
  1176. .right {
  1177. color: #CBCBCB
  1178. }
  1179. }
  1180. .content2,
  1181. .content3,
  1182. .content5 {
  1183. box-sizing: border-box;
  1184. background: white;
  1185. border-radius: 20rpx;
  1186. padding: 20rpx;
  1187. margin: 20rpx;
  1188. .row {
  1189. margin: 30rpx;
  1190. }
  1191. .row1,
  1192. .row2 {
  1193. display: flex;
  1194. justify-content: space-between;
  1195. align-items: center;
  1196. .left .top {
  1197. display: flex;
  1198. }
  1199. }
  1200. }
  1201. .select-type {
  1202. display: flex;
  1203. justify-content: flex-end;
  1204. }
  1205. .top-title {
  1206. background: #fff;
  1207. padding: 20rpx;
  1208. position: fixed;
  1209. z-index: 100;
  1210. top: 0;
  1211. box-sizing: border-box;
  1212. width: 100%;
  1213. }
  1214. .content2 {
  1215. padding: 40rpx;
  1216. .row1,
  1217. .row2 {
  1218. .left {
  1219. width: 100%;
  1220. }
  1221. .right {
  1222. color: #CBCBCB
  1223. }
  1224. }
  1225. .row2 {
  1226. margin-top: 40rpx;
  1227. }
  1228. .top {
  1229. display: flex;
  1230. align-items: center;
  1231. }
  1232. .bottom {
  1233. margin-top: 10rpx;
  1234. padding-left: 72rpx;
  1235. }
  1236. .title {
  1237. font-size: 36rpx;
  1238. font-weight: 700;
  1239. color: #171717;
  1240. }
  1241. .collect {
  1242. width: 40rpx;
  1243. height: 40rpx;
  1244. line-height: 40rpx;
  1245. background: #2772FB;
  1246. color: white;
  1247. padding: 6rpx;
  1248. border-radius: 50%;
  1249. text-align: center;
  1250. }
  1251. .send {
  1252. width: 40rpx;
  1253. height: 40rpx;
  1254. line-height: 40rpx;
  1255. background: #101010;
  1256. color: white;
  1257. padding: 6rpx;
  1258. border-radius: 50%;
  1259. text-align: center;
  1260. }
  1261. }
  1262. .content3 {}
  1263. .content4 {
  1264. margin: 20rpx;
  1265. padding-left: 20rpx;
  1266. .title {
  1267. color: #999999;
  1268. }
  1269. .btn-text {
  1270. color: #2772FB;
  1271. border: 1px solid #2772FB;
  1272. border-radius: 40rpx;
  1273. padding: 0rpx 10rpx;
  1274. box-sizing: border-box;
  1275. }
  1276. }
  1277. .submit {
  1278. width: 90%;
  1279. margin: 100rpx auto;
  1280. font-size: 36rpx;
  1281. font-weight: 500;
  1282. color: #FFFFFF;
  1283. background: #2772FB;
  1284. text-align: center;
  1285. padding: 20rpx 0;
  1286. border-radius: 50rpx;
  1287. }
  1288. .select-data {
  1289. color: #999999;
  1290. }
  1291. .row-bgc {
  1292. background: #F7F8FA;
  1293. padding: 20rpx 30rpx;
  1294. box-sizing: border-box;
  1295. border-radius: 10rpx;
  1296. }
  1297. .car-input {
  1298. // padding:20rpx;
  1299. // box-sizing: border-box;
  1300. // border-radius: 10px;
  1301. }
  1302. .car-line {
  1303. margin: 0 20rpx;
  1304. }
  1305. .car-row {
  1306. display: flex;
  1307. background: white;
  1308. padding: 20rpx;
  1309. box-sizing: border-box;
  1310. border-radius: 10rpx;
  1311. }
  1312. </style>