index.vue 24 KB

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