release.vue 38 KB

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