index.vue 22 KB

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