index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975
  1. <!-- 货源 -->
  2. <template>
  3. <view class="content">
  4. <view class="fixed1"></view>
  5. <!-- <view v-if="!isSearch"> -->
  6. <!-- <view class="fixed">
  7. <view class='title flex flex-center'>
  8. <view>订单</view>
  9. <u-icon class="search" name="search" color="" size="28" @click="search"></u-icon>
  10. </view>
  11. <u-tabs :list="tabList" @click="clickTab" lineColor='#2772FB' :current='tabIndex' :activeStyle="{
  12. color: '#2772FB',
  13. fontWeight: 'bold',
  14. transform: 'scale(1.05)'
  15. }"></u-tabs>
  16. </view> -->
  17. <view class="top-content">
  18. <u-search placeholder="搜索订单" v-model="searchKeyWord" bgColor='white' :actionStyle='searchStyle'
  19. @custom="getSearch" @search="getSearch" :clearabled="true"></u-search>
  20. <view class="tab-content">
  21. <u-tabs :list="tabList" @click="clickTab" lineColor='transparent' :current='tabIndex'
  22. :inactiveStyle="{color:'white'}" :activeStyle="{
  23. color: '#2772FB',
  24. fontWeight: 'bold',
  25. transform: 'scale(1.05)',
  26. background:'white',
  27. padding:'10rpx 20rpx',
  28. 'border-radius':'40rpx'
  29. }" class="tabs"></u-tabs>
  30. <view class="right-btn" @click="showMenu=true">
  31. <u-icon name="grid-fill" color="white" size="28"></u-icon>
  32. <view class="">
  33. 全部
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="all-menu">
  39. <u-transition :show="showMenu" mode="fade">
  40. <view class="transition">
  41. <view v-for="(item,index) in tabList" :key='index' class="transition-item-style"
  42. :class="tabIndex==index?'menu-active':''" @click="clickTab({index:index})">
  43. {{item.name}}
  44. </view>
  45. </view>
  46. </u-transition>
  47. <view class="modal-black" v-show="showMenu" @click="closeMenu"></view>
  48. </view>
  49. <mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" class="mescroll">
  50. <view :id="'good'+good.id" class="good-list" v-for="good in goods" :key="good.id"
  51. @click="toDetail(good.id)">
  52. <view style="padding: 0 35rpx 20rpx 35rpx;">
  53. <view class="flex flex-space-between row1">
  54. <view class="item1">
  55. {{good.orderNo}}
  56. <!-- {{good.goodsName}} -->
  57. </view>
  58. <view class="item2">
  59. {{good.cargoOwnerStatus}}
  60. </view>
  61. </view>
  62. <view class="flex row2">
  63. <view class="left">
  64. <view class="top">
  65. <view class="ssx">{{$helper.getProvinceAbbreviation(good.sendPrivate)}}</view>
  66. <view class="level2-title">{{$helper.filterUrban(good.sendCity)}}</view>
  67. </view>
  68. <view class="bottom">{{$helper.filterArea(good.sendArea)}}</view>
  69. </view>
  70. <view class="jt-image">
  71. <image class="jt-icon" src="@/static/images/order/jt.png" mode='widthFix'>
  72. </image>
  73. </view>
  74. <view class="right">
  75. <view class="top">
  76. <view class="ssx">
  77. {{$helper.getProvinceAbbreviation(good.unloadPrivate)}}
  78. </view>
  79. <view class="level2-title">{{$helper.filterUrban(good.unloadCity)}}</view>
  80. </view>
  81. <view class="bottom">
  82. {{$helper.filterArea(good.unloadArea)}}
  83. </view>
  84. </view>
  85. </view>
  86. <view class="flex row3 s-row">
  87. <view class="flex align-center">
  88. <image class="hz" src="@/static/images/news/sj.png"></image>
  89. <view style="margin-right: 20rpx;">{{good.driverName}}</view>
  90. <!-- <view style="margin-right: 20rpx;">{{good.driverCall}}</view> -->
  91. <image class="hz-good" src="@/static/images/order/good-img.png"></image>
  92. <view>{{good.goodsName}}</view>
  93. </view>
  94. <view class="flex align-center">
  95. <view style="margin-right: 20rpx;">运距 {{good.distance}}km</view>
  96. <view class="car">{{good.freight}}{{good.illingMethod==0?'元/吨':'元/车'}}</view>
  97. </view>
  98. <!-- <view class="right">
  99. <view class="flex fontsize-26 row">
  100. <view>{{good.compName}}</view>
  101. <view class="sline"></view>
  102. <view>{{good.cargoOwner}}</view>
  103. </view>
  104. <view class="flex align-center">
  105. <view class="fontsize-26 ">运距 {{good.distance}}km</view>
  106. </view>
  107. </view> -->
  108. </view>
  109. <view class="row4 flex align-center">
  110. <view class="time">{{good.updateDate}}</view>
  111. </view>
  112. <view class="row5 flex flex-end">
  113. <!-- <image class="jt-icon" src="@/static/images/order/position.png" mode='widthFix'
  114. @click.stop="toMap(good)">
  115. </image> -->
  116. <view class="start normal look-map" @click.stop="toMap(good)">
  117. 查看轨迹</view>
  118. <view class="stop" @click.stop="accept(good,1)" v-if="good.cargoOwnerStatus=='待接单'">接受
  119. </view>
  120. <!-- <view class="stop active" @click.stop="accept(good,1)">接受</view> -->
  121. <view class="normal" @click.stop="accept(good,2)" v-if="good.cargoOwnerStatus=='待接单'">拒绝
  122. </view>
  123. <view class="normal" @click.stop="stop(good)" v-if="good.cargoOwnerStatus=='未装车'">终止</view>
  124. <!-- <view class="stop active" @click.stop="stop(good)">终止</view> -->
  125. <!-- confirmLoading(good,3) -->
  126. <view class="start normal" @click.stop="toDetail(good.id)"
  127. v-if="good.cargoOwnerStatus=='待确认装车'">确认装车</view>
  128. <!-- <view class="start normal" @click.stop="confirmLoading(good,1)">确认装车</view> -->
  129. <view class="start normal" v-if="good.cargoOwnerStatus!='待接单'&&good.cargoOwnerStatus!='未装车'">
  130. 联系客服</view>
  131. <view class="start normal" @click.stop="confirmLoading(good,4)"
  132. v-if="good.cargoOwnerStatus=='待收货'">确认卸车</view>
  133. <!-- <view class="start normal" @click.stop="confirmLoading(good,2)">确认卸车</view> -->
  134. <view class="normal" @click.stop="stop(good)" v-if="good.cargoOwnerStatus=='已结算'">付款</view>
  135. <view class="normal" @click.stop="stop(good)"
  136. v-if="good.cargoOwnerStatus=='待还款'||good.cargoOwnerStatus=='已还款'">还款</view>
  137. <!-- <view class="start normal" @click.stop="closed(good)" v-if="good.cargoOwnerStatus=='结算中'">完结</view> -->
  138. </view>
  139. </view>
  140. </view>
  141. </mescroll-body>
  142. <!-- </view> -->
  143. <!-- <view v-else class="search-view">
  144. <view class="flex">
  145. <u-icon name="arrow-left" color="" size="20" class="back-icon" @click="back()"></u-icon>
  146. <u-search placeholder="可按编号、货主、收发地查找" placeholderColor="#AFB3BF" :actionStyle="textColor"
  147. bgColor="#F5F6FA" v-model="searchKeyWord" actionText='取消' @custom="cancel" @search="getSearch">
  148. </u-search>
  149. </view>
  150. <view class="near-search">
  151. <view class="flex flex-space-between">
  152. <view class="near-search-text">最近搜索</view>
  153. <u-icon name="trash-fill" color="#AFB3BF" size="20" class="back-icon" @click="del"></u-icon>
  154. </view>
  155. <view class="">
  156. <view v-for="(item,index) in useSearchList" :key="index" class="item-style inline-block">
  157. {{item}}
  158. </view>
  159. </view>
  160. </view>
  161. </view> -->
  162. <u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :confirmText='confirmText'
  163. :closeOnClickOverlay='true' :showCancelButton='showCancelButton' @confirm="confirmClick"
  164. @close="cancelClick" @cancel="cancelClick" class="modal">
  165. <u-radio-group v-model="radiovalue1" placement="" v-if='isShowTerminationReason' class='row'>
  166. <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
  167. :label="item.name" :name="item.name" @change="radioChange">
  168. </u-radio>
  169. </u-radio-group>
  170. <u--textarea class="row" v-model="value2" placeholder="终止原因描述" count maxlength='50'
  171. v-if='isShowTerminationReason'>
  172. </u--textarea>
  173. </u-modal>
  174. <u-toast ref="uToast"></u-toast>
  175. </view>
  176. </template>
  177. <script>
  178. var that
  179. import {
  180. mapState
  181. } from 'vuex';
  182. import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
  183. import {
  184. apiGoods
  185. } from "@/api/mock.js"
  186. export default {
  187. mixins: [MescrollMixin], // 使用mixin
  188. data() {
  189. return {
  190. confirmText: '',
  191. showCancelButton: true,
  192. type: null,
  193. objData: {},
  194. showMenu: false,
  195. searchStyle: {
  196. background: "#317AFE",
  197. color: 'white',
  198. position: "absolute",
  199. right: "30rpx",
  200. padding: "6rpx 20rpx",
  201. "border-radius": '30rpx'
  202. },
  203. searchKeyWord: '',
  204. useSearchList: [],
  205. mescroll: null,
  206. isShowTerminationReason: false,
  207. id: '',
  208. value2: '',
  209. radiolist1: [{
  210. name: '已与货主协商',
  211. disabled: false
  212. },
  213. {
  214. name: '货主原因终止',
  215. disabled: false
  216. },
  217. {
  218. name: '司机个人原因终止',
  219. disabled: false
  220. }, {
  221. name: '其他',
  222. disabled: false
  223. }
  224. ],
  225. radiovalue1: '已与货主协商',
  226. confirmText: '终止',
  227. alertTitle: '确定终止订单?',
  228. alertContent: "",
  229. isShowAlert: false,
  230. textColor: {
  231. "color": "#AFB3BF"
  232. },
  233. isSearch: false,
  234. startPlace: '齐齐哈尔齐齐哈尔',
  235. endPlace: '全国',
  236. goods: [], // 数据列表
  237. src: 'https://cdn.uviewui.com/uview/album/1.jpg',
  238. height: "", // 需要固定swiper的高度
  239. tabList: [{
  240. name: '全部'
  241. }, {
  242. name: '待接单'
  243. }, {
  244. name: '未发运'
  245. }, {
  246. name: '运输中'
  247. }, {
  248. name: '待收货'
  249. },
  250. {
  251. name: '待结算'
  252. },
  253. {
  254. name: '已结算'
  255. },
  256. {
  257. name: '待还款'
  258. },
  259. {
  260. name: '已还款'
  261. },
  262. {
  263. name: '已完结'
  264. },
  265. // {
  266. // name: '评价'
  267. // },
  268. ],
  269. tabIndex: 0,
  270. scrollTop: 0
  271. }
  272. },
  273. computed: {
  274. ...mapState(['hasLogin', 'userInfo', 'firstAuthentication'])
  275. },
  276. onTabItemTap(e) {
  277. // tab 点击时执行,此处直接接收单击事件
  278. uni.pageScrollTo({
  279. scrollTop: 0,
  280. duration: 300
  281. });
  282. },
  283. created() {
  284. //#ifdef APP-PLUS
  285. // this.getLngLat();
  286. //#endif
  287. },
  288. async onLoad() {
  289. that = this
  290. // #ifdef APP-PLUS
  291. let _status = await that.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
  292. phone: this.userInfo.phone,
  293. }).then(res => {
  294. return res.data.authenticationStatus
  295. })
  296. if (_status == '已禁用') {
  297. this.isShowAlert = true
  298. this.alertTitle = '账号审核中'
  299. this.confirmText = '退出APP'
  300. this.showCancelButton = false
  301. } else {
  302. console.log(1231233212332312312213)
  303. }
  304. // #endif
  305. },
  306. onShow() {
  307. this.upCallback({
  308. size: 10,
  309. num: 1
  310. })
  311. that.$request.baseRequest('get', '/newsInfo/unreadMessage', {
  312. reCommonId: this.userInfo.id,
  313. }).then(res3 => {
  314. if (res3.data) {
  315. let name = 'myTip';
  316. let value = res3.data
  317. if (value == 0) {
  318. uni.removeTabBarBadge({
  319. index: 2
  320. })
  321. }
  322. that.$store.commit('$uStore', {
  323. name,
  324. value
  325. });
  326. if (value != 0 && value) {
  327. uni.setTabBarBadge({
  328. index: 2,
  329. text: value + ""
  330. })
  331. }
  332. }
  333. })
  334. },
  335. // onPageScroll(res) {
  336. // this.scrollTop = res.scrollTop
  337. // console.log("页面滚动了", res.scrollTop)
  338. // if (this.scrollTop > 1200) {
  339. // uni.setTabBarItem({
  340. // index: 1,
  341. // text: '返回顶部',
  342. // iconPath: 'static/images/common/top@2x.png',
  343. // selectedIconPath: 'static/images/common/top@2x.png'
  344. // })
  345. // } else {
  346. // uni.setTabBarItem({
  347. // index: 1,
  348. // text: '订单',
  349. // iconPath: 'static/images/common/dingdan@2x(1).png',
  350. // selectedIconPath: 'static/images/common/dingdan@2x.png'
  351. // })
  352. // }
  353. // },
  354. methods: {
  355. toMap(val) {
  356. uni.$u.route('/pages/order/map', val);
  357. },
  358. closeMenu() {
  359. this.showMenu = false
  360. },
  361. accept(item, type) {
  362. this.objData = item
  363. this.type = type
  364. if (type == 1) {
  365. this.alertTitle = '确定接受订单?'
  366. this.confirmText = '确定'
  367. } else if (type == 2) {
  368. this.alertTitle = '确定拒绝订单?'
  369. this.confirmText = '确定'
  370. } else {
  371. this.alertTitle = '确定终止订单?'
  372. this.confirmText = '终止'
  373. }
  374. this.isShowAlert = true
  375. },
  376. // 完结
  377. closed(item) {
  378. let that = this
  379. this.$request.baseRequest('post', '/orderInfo/api/editEnd', {
  380. id: item.id,
  381. }).then(res => {
  382. if (res.code == 200) {
  383. this.$refs.uToast.show({
  384. type: 'success',
  385. message: "提交成功",
  386. complete() {
  387. that.upCallback({
  388. size: 10,
  389. num: 1
  390. })
  391. }
  392. })
  393. }
  394. })
  395. .catch(res => {
  396. uni.$u.toast(res.message);
  397. });
  398. },
  399. confirmLoading(item, type) {
  400. this.objData = item
  401. this.type = type
  402. if (type == 3) {
  403. this.alertTitle = '确认装车?'
  404. this.confirmText = '确定'
  405. } else if (type == 4) {
  406. this.alertTitle = '确认卸车?'
  407. this.confirmText = '确定'
  408. }
  409. this.isShowAlert = true
  410. // uni.$u.route('/pages/order/confirmLoading', item);
  411. },
  412. // confirmUnLoading(item) {
  413. // uni.$u.route('/pages/order/confirmUnloading', item);
  414. // },
  415. back() {
  416. uni.navigateBack(-1)
  417. },
  418. mescrollInit(mescroll) {
  419. this.mescroll = mescroll;
  420. },
  421. radioChange(n) {
  422. console.log('radioChange', n);
  423. },
  424. stop(item) {
  425. // // 货主接单
  426. // if (item.orderStatusKey == 1) {
  427. // this.isShowTerminationReason = false
  428. // } else {
  429. // this.isShowTerminationReason = true
  430. // }
  431. this.id = item.id
  432. this.isShowAlert = true
  433. },
  434. init() {
  435. },
  436. del() {
  437. this.isShowAlert = true
  438. },
  439. confirmClick() {
  440. // #ifdef APP-PLUS
  441. if (this.alertTitle == '账号审核中') {
  442. if (uni.getSystemInfoSync().platform == 'ios') {
  443. plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
  444. } else if (uni.getSystemInfoSync().platform == 'android') {
  445. plus.runtime.quit();
  446. }
  447. return
  448. }
  449. // #endif
  450. that.isShowAlert = false
  451. if (this.type == 1 || this.type == 2) {
  452. let _title = ''
  453. this.$request.baseRequest('post', '/orderInfo/api/orderReceiving', {
  454. id: this.objData.id,
  455. flag: this.type
  456. }).then(res => {
  457. if (res.code == 200) {
  458. if (this.type == 1) {
  459. _title = '接单单成功'
  460. } else {
  461. _title = '拒绝订单成功'
  462. }
  463. this.$refs.uToast.show({
  464. type: 'success',
  465. message: _title,
  466. complete() {
  467. that.mescroll.resetUpScroll()
  468. }
  469. })
  470. } else {
  471. if (this.type == 1) {
  472. _title = '接单失败'
  473. } else {
  474. _title = '拒绝订单失败'
  475. }
  476. this.$refs.uToast.show({
  477. type: 'success',
  478. message: _title,
  479. complete() {
  480. that.mescroll.resetUpScroll()
  481. }
  482. })
  483. }
  484. })
  485. .catch(res => {
  486. uni.$u.toast(res.message);
  487. });
  488. } else if (this.type == 3 || this.type == 4) {
  489. let _flag = ''
  490. if (this.type == 3) _flag = 1
  491. if (this.type == 4) _flag = 2
  492. this.$request.baseRequest('post', '/carrierInfo/cargoOwnerLoadingAdd', {
  493. id: this.objData.id,
  494. loadingFlag: _flag,
  495. flag: 1
  496. }).then(res => {
  497. if (res.code == 200) {
  498. this.$refs.uToast.show({
  499. type: 'success',
  500. message: "提交成功",
  501. complete() {
  502. that.upCallback({
  503. size: 10,
  504. num: 1
  505. })
  506. }
  507. })
  508. }
  509. })
  510. .catch(res => {
  511. uni.$u.toast(res.message);
  512. });
  513. } else {
  514. this.$request.baseRequest('post', '/orderInfo/api/end', {
  515. id: this.id,
  516. terminator: 2,
  517. }).then(res => {
  518. if (res.code == 200) {
  519. this.$refs.uToast.show({
  520. type: 'success',
  521. message: '终止订单成功',
  522. })
  523. } else {
  524. this.$refs.uToast.show({
  525. type: 'success',
  526. message: '终止订单失败',
  527. })
  528. }
  529. that.mescroll.resetUpScroll()
  530. })
  531. .catch(res => {
  532. uni.$u.toast(res.message);
  533. });
  534. }
  535. },
  536. cancelClick() {
  537. this.isShowAlert = false
  538. },
  539. getSearch(e) {
  540. // = uni.getStorageSync('useSearchList')
  541. // this.useSearchList.unshift(e)
  542. // uni.setStorageSync("useSearchList", this.useSearchList)
  543. console.log("点击搜索", e)
  544. this.upCallback({
  545. size: 10,
  546. num: 1
  547. })
  548. },
  549. cancel() {
  550. this.isSearch = false
  551. },
  552. toDetail(id) {
  553. uni.$u.route('/pages/order/orderDetails', {
  554. id: id,
  555. });
  556. },
  557. upCallback(page) {
  558. if (this.searchType == 0) this.searchType = ''
  559. this.$request.baseRequest('get', '/orderInfo/selectCargoOwnerOrder', {
  560. cargoCommonId: this.userInfo.id,
  561. searchKeyWord: this.searchKeyWord,
  562. searchType: this.searchType,
  563. pageSize: page.size,
  564. currentPage: page.num
  565. }).then(res => {
  566. this.isSearch = false
  567. if (page.num == 1) this.goods = [];
  568. this.goods = this.goods.concat(res.data.records); //追加新数据
  569. this.mescroll.endBySize(res.data.records.length, res.data.total);
  570. uni.hideLoading()
  571. })
  572. .catch(res => {
  573. uni.$u.toast(res.message);
  574. });
  575. },
  576. clickTab(val) {
  577. uni.showLoading({
  578. mask: true
  579. })
  580. console.log(val)
  581. this.searchType = val.index
  582. this.tabIndex = val.index
  583. this.upCallback({
  584. size: 10,
  585. num: 1
  586. })
  587. this.showMenu = false
  588. },
  589. search() {
  590. this.isSearch = true
  591. //获取缓存搜索数据
  592. this.useSearchList = uni.getStorageSync('useSearchList')
  593. if (!this.useSearchList) this.useSearchList = [];
  594. }
  595. }
  596. }
  597. </script>
  598. <style scoped lang="scss">
  599. .top-content {
  600. background: url(../../static/images/order/bg.png) no-repeat;
  601. background-size: cover;
  602. padding: 20rpx;
  603. padding-bottom: 320rpx;
  604. }
  605. // .banner {
  606. // width: 100%;
  607. // position: relative;
  608. // }
  609. // .fixed,
  610. // .fixed1 {
  611. // background: #2772FB;
  612. // position: fixed;
  613. // top: var(--status-bar-height);
  614. // z-index: 999;
  615. // width: 100%;
  616. // }
  617. // .fixed {
  618. // .title {
  619. // background: white;
  620. // position: relative;
  621. // font-size: 36rpx;
  622. // font-weight: 500;
  623. // color: rgba(0, 0, 0, 0.85);
  624. // .search {
  625. // position: absolute;
  626. // right: 20rpx;
  627. // }
  628. // }
  629. // }
  630. .fixed1 {
  631. top: 0;
  632. height: var(--status-bar-height);
  633. background: #317AFE;
  634. }
  635. // .banner-img {
  636. // width: 100%;
  637. // }
  638. // .head {
  639. // position: absolute;
  640. // width: calc(100% - 108rpx);
  641. // bottom: 0;
  642. // background: white;
  643. // margin: 0 20rpx;
  644. // border-radius: 20rpx;
  645. // .item1,
  646. // .item3 {
  647. // width: 40%;
  648. // .text {
  649. // text-overflow: ellipsis;
  650. // overflow: hidden;
  651. // white-space: nowrap;
  652. // }
  653. // }
  654. // .item1 .text {
  655. // text-align: left;
  656. // }
  657. // .item3 .text {
  658. // text-align: right;
  659. // }
  660. // }
  661. .change-btn {
  662. width: 86rpx;
  663. height: 86rpx;
  664. }
  665. .good-list {
  666. background-color: white;
  667. margin: 20rpx;
  668. padding: 20rpx 0rpx 0 0;
  669. border-radius: 20rpx;
  670. .row1 {
  671. .item1 {
  672. color: #333333;
  673. }
  674. .item2 {
  675. color: #FE6300;
  676. }
  677. }
  678. .row2 {
  679. margin: 30rpx 0;
  680. display: flex;
  681. justify-content: center;
  682. .left {
  683. float: left;
  684. width: 40%;
  685. display: flex;
  686. flex-direction: column;
  687. align-items: center;
  688. .top {
  689. display: flex;
  690. justify-content: flex-start;
  691. }
  692. .bottom {
  693. display: flex;
  694. justify-content: flex-start;
  695. font-size: 24rpx;
  696. color: #878787;
  697. margin-top: 10rpx;
  698. }
  699. }
  700. .right {
  701. float: right;
  702. display: flex;
  703. flex-direction: column;
  704. align-items: center;
  705. width: 40%;
  706. .top {
  707. display: flex;
  708. justify-content: flex-end;
  709. }
  710. .bottom {
  711. display: flex;
  712. justify-content: flex-end;
  713. font-size: 24rpx;
  714. color: #878787;
  715. margin-top: 10rpx;
  716. }
  717. }
  718. }
  719. .row3 {
  720. background: #F5F6FA;
  721. padding: 20rpx;
  722. border-radius: 10rpx;
  723. color: #333333;
  724. .hz {
  725. width: 74rpx;
  726. height: 74rpx;
  727. margin-right: 30rpx;
  728. }
  729. .hz-good {
  730. width: 44rpx;
  731. height: 44rpx;
  732. margin: 0 30rpx;
  733. }
  734. }
  735. .row4 {
  736. margin: 20rpx 0;
  737. .time {
  738. color: #999999;
  739. margin-right: 20rpx;
  740. }
  741. .car {
  742. font-size: 28rpx;
  743. color: #000000;
  744. }
  745. }
  746. .row5 {
  747. margin: 20rpx 0;
  748. font-size: 28rpx;
  749. .stop {
  750. border-radius: 33px;
  751. border: 1px solid #FE6300;
  752. padding: 13rpx 31rpx;
  753. margin-right: 20rpx;
  754. color: #FE6300;
  755. }
  756. .normal {
  757. border-radius: 33px;
  758. border: 1px solid #CDCDCD;
  759. padding: 6px 15px;
  760. margin-right: 10px;
  761. }
  762. }
  763. }
  764. .jt-icon {
  765. position: relative;
  766. top: 6rpx;
  767. width: 60rpx;
  768. margin: 0 20rpx;
  769. }
  770. .row {
  771. margin: 10rpx 0;
  772. align-items: center;
  773. }
  774. // .item-bottom {
  775. // background: #F0F5FF;
  776. // padding: 0 30rpx;
  777. // .name {
  778. // font-size: 26rpx;
  779. // font-weight: 700;
  780. // color: #000000;
  781. // margin-left: 30rpx;
  782. // }
  783. // .hp {
  784. // margin: 30rpx;
  785. // }
  786. // .number-color {
  787. // margin: 0 10rpx;
  788. // }
  789. // .qd {
  790. // background: linear-gradient(97deg, #4FABFD 0%, #2772FB 100%);
  791. // border-radius: 13px;
  792. // font-size: 29rpx;
  793. // font-weight: 400;
  794. // color: #FFFFFF;
  795. // padding: 10rpx 35rpx;
  796. // }
  797. // }
  798. .dw {
  799. align-items: center;
  800. }
  801. .mescroll {
  802. // margin-top: calc(var(--status-bar-height) + 140rpx);
  803. top: -320rpx;
  804. }
  805. .sline {
  806. height: 28rpx;
  807. width: 1px;
  808. background: black;
  809. margin: 0 20rpx;
  810. }
  811. .search-view {
  812. margin-top: var(--status-bar-height);
  813. background: white;
  814. padding: 0 20rpx;
  815. }
  816. .back-icon {
  817. margin-right: 20rpx;
  818. }
  819. .near-search-text {
  820. margin: 20rpx 0;
  821. }
  822. .item-style {
  823. background: #F5F6FA;
  824. padding: 11rpx 24rpx;
  825. margin-right: 20rpx;
  826. border-radius: 10px;
  827. font-size: 26rpx;
  828. color: #333333;
  829. }
  830. /deep/.u-modal__content {
  831. flex-direction: column;
  832. }
  833. .tab-content {
  834. position: relative;
  835. padding-right: 100rpx;
  836. }
  837. .right-btn {
  838. position: absolute;
  839. width: 88rpx;
  840. height: 88rpx;
  841. background: #317AFE;
  842. box-shadow: -14px 0px 8px -8px rgba(0, 53, 149, 0.21);
  843. display: flex;
  844. flex-direction: column;
  845. right: 0;
  846. top: 0;
  847. bottom: 0;
  848. margin: auto;
  849. color: white;
  850. align-items: center;
  851. justify-content: center;
  852. }
  853. .tabs {
  854. // background: red;
  855. margin-top: 20rpx;
  856. overflow-x: scroll;
  857. }
  858. /deep/.u-transition {
  859. border-radius: 0 0 50rpx 50rpx;
  860. }
  861. .transition {
  862. background: white;
  863. padding-bottom: 40rpx;
  864. .transition-item-style {
  865. display: inline-block;
  866. width: calc(25% - 40rpx);
  867. text-align: center;
  868. box-sizing: border-box;
  869. background: #F7F8FA;
  870. border-radius: 40px;
  871. margin: 20rpx 20rpx 0 20rpx;
  872. padding: 16rpx 0;
  873. }
  874. .menu-active {
  875. background: #2772FB;
  876. color: white;
  877. }
  878. }
  879. .modal-black {
  880. background: black;
  881. height: 100vh;
  882. width: 100vw;
  883. position: absolute;
  884. z-index: 999;
  885. opacity: 0.3;
  886. }
  887. .all-menu {
  888. position: absolute;
  889. z-index: 99;
  890. top: 260rpx;
  891. }
  892. .look-map {
  893. background: #2772FB;
  894. color: white;
  895. }
  896. </style>