index.vue 24 KB

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