index.vue 24 KB

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