index.vue 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034
  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.id = item.id
  471. this.isShowAlert = true
  472. },
  473. init() {
  474. },
  475. del() {
  476. this.isShowAlert = true
  477. },
  478. confirmClick() {
  479. // #ifdef APP-PLUS
  480. if (this.alertTitle == '账号审核中') {
  481. if (uni.getSystemInfoSync().platform == 'ios') {
  482. plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
  483. } else if (uni.getSystemInfoSync().platform == 'android') {
  484. plus.runtime.quit();
  485. }
  486. return
  487. }
  488. // #endif
  489. that.isShowAlert = false
  490. if (this.type == 1 || this.type == 2) {
  491. let _title = ''
  492. this.$request.baseRequest('post', '/orderInfo/api/orderReceiving', {
  493. id: this.objData.id,
  494. flag: this.type
  495. }).then(res => {
  496. if (res.code == 200) {
  497. if (this.type == 1) {
  498. _title = '接单成功!'
  499. } else {
  500. _title = '拒绝订单成功!'
  501. }
  502. this.$refs.uToast.show({
  503. type: 'success',
  504. message: _title,
  505. complete() {
  506. that.mescroll.resetUpScroll()
  507. }
  508. })
  509. } else {
  510. if (this.type == 1) {
  511. _title = '接单失败'
  512. } else {
  513. _title = '拒绝订单失败'
  514. }
  515. this.$refs.uToast.show({
  516. type: 'success',
  517. message: _title,
  518. complete() {
  519. that.mescroll.resetUpScroll()
  520. }
  521. })
  522. }
  523. })
  524. .catch(res => {
  525. uni.$u.toast(res.message);
  526. });
  527. } else if (this.type == 3 || this.type == 4) {
  528. let _flag = ''
  529. if (this.type == 3) _flag = 1
  530. if (this.type == 4) _flag = 2
  531. this.$request.baseRequest('post', '/carrierInfo/cargoOwnerLoadingAdd', {
  532. id: this.objData.id,
  533. loadingFlag: _flag,
  534. flag: 1
  535. }).then(res => {
  536. if (res.code == 200) {
  537. this.$refs.uToast.show({
  538. type: 'success',
  539. message: "提交成功",
  540. complete() {
  541. that.upCallback({
  542. size: 10,
  543. num: 1
  544. })
  545. }
  546. })
  547. }
  548. })
  549. .catch(res => {
  550. uni.$u.toast(res.message);
  551. });
  552. } else {
  553. this.$request.baseRequest('post', '/orderInfo/api/end', {
  554. id: this.id,
  555. terminator: 2,
  556. }).then(res => {
  557. if (res.code == 200) {
  558. this.$refs.uToast.show({
  559. type: 'success',
  560. message: '终止订单成功',
  561. })
  562. } else {
  563. this.$refs.uToast.show({
  564. type: 'success',
  565. message: '终止订单失败',
  566. })
  567. }
  568. that.mescroll.resetUpScroll()
  569. })
  570. .catch(res => {
  571. uni.$u.toast(res.message);
  572. });
  573. }
  574. },
  575. cancelClick() {
  576. this.isShowAlert = false
  577. },
  578. getSearch(e) {
  579. console.log("点击搜索", e)
  580. this.upCallback({
  581. size: 10,
  582. num: 1
  583. })
  584. },
  585. cancel() {
  586. this.isSearch = false
  587. },
  588. toDetail(id) {
  589. uni.$u.route('/pages/order/orderDetails', {
  590. id: id,
  591. });
  592. },
  593. upCallback(page) {
  594. if (!this.searchType) {
  595. this.searchType = 0
  596. }
  597. this.$request.baseRequest('get', '/orderInfo/selectCargoOwnerOrder', {
  598. cargoCommonId: this.userInfo.id,
  599. searchKeyWord: this.searchKeyWord,
  600. searchType: this.searchType,
  601. pageSize: page.size,
  602. currentPage: page.num
  603. }).then(res => {
  604. this.isSearch = false
  605. if (page.num == 1) this.goods = [];
  606. this.goods = this.goods.concat(res.data.records); //追加新数据
  607. this.mescroll.endBySize(res.data.records.length, res.data.total);
  608. uni.hideLoading()
  609. })
  610. .catch(res => {
  611. uni.$u.toast(res.message);
  612. });
  613. },
  614. clickTab(val) {
  615. uni.showLoading({
  616. mask: true
  617. })
  618. console.log(val)
  619. this.searchType = val.index
  620. this.tabIndex = val.index
  621. this.upCallback({
  622. size: 10,
  623. num: 1
  624. })
  625. this.showMenu = false
  626. },
  627. search() {
  628. this.isSearch = true
  629. //获取缓存搜索数据
  630. this.useSearchList = uni.getStorageSync('useSearchList')
  631. if (!this.useSearchList) this.useSearchList = [];
  632. }
  633. }
  634. }
  635. </script>
  636. <style scoped lang="scss">
  637. .content{
  638. padding-bottom: 160px;
  639. }
  640. .top-content {
  641. background: url(../../static/images/order/bg.png) no-repeat;
  642. background-size: cover;
  643. padding: 20rpx;
  644. position: fixed;
  645. z-index: 99;
  646. width: 100%;
  647. // margin-top: var(--status-bar-height);
  648. // padding-bottom: 320rpx;
  649. }
  650. .fix-content{
  651. // width: 96%;
  652. margin-right: 20rpx;
  653. }
  654. // .banner {
  655. // width: 100%;
  656. // position: relative;
  657. // }
  658. // .fixed,
  659. // .fixed1 {
  660. // background: #2772FB;
  661. // position: fixed;
  662. // top: var(--status-bar-height);
  663. // z-index: 999;
  664. // width: 100%;
  665. // }
  666. // .fixed {
  667. // .title {
  668. // background: white;
  669. // position: relative;
  670. // font-size: 36rpx;
  671. // font-weight: 500;
  672. // color: rgba(0, 0, 0, 0.85);
  673. // .search {
  674. // position: absolute;
  675. // right: 20rpx;
  676. // }
  677. // }
  678. // }
  679. .fixed1 {
  680. top: 0;
  681. height: var(--status-bar-height);
  682. background: #317AFE;
  683. // position: fixed;
  684. // z-index: 9999;
  685. }
  686. // .banner-img {
  687. // width: 100%;
  688. // }
  689. // .head {
  690. // position: absolute;
  691. // width: calc(100% - 108rpx);
  692. // bottom: 0;
  693. // background: white;
  694. // margin: 0 20rpx;
  695. // border-radius: 20rpx;
  696. // .item1,
  697. // .item3 {
  698. // width: 40%;
  699. // .text {
  700. // text-overflow: ellipsis;
  701. // overflow: hidden;
  702. // white-space: nowrap;
  703. // }
  704. // }
  705. // .item1 .text {
  706. // text-align: left;
  707. // }
  708. // .item3 .text {
  709. // text-align: right;
  710. // }
  711. // }
  712. .change-btn {
  713. width: 86rpx;
  714. height: 86rpx;
  715. }
  716. .good-list {
  717. background-color: white;
  718. margin: 20rpx;
  719. padding: 20rpx 0rpx 0 0;
  720. border-radius: 20rpx;
  721. .row1 {
  722. .item1 {
  723. color: #333333;
  724. }
  725. .item2 {
  726. color: #FE6300;
  727. }
  728. }
  729. .row2 {
  730. margin: 30rpx 0;
  731. display: flex;
  732. justify-content: center;
  733. .left {
  734. float: left;
  735. width: 40%;
  736. display: flex;
  737. flex-direction: column;
  738. align-items: center;
  739. .top {
  740. display: flex;
  741. justify-content: flex-start;
  742. }
  743. .bottom {
  744. display: flex;
  745. justify-content: flex-start;
  746. font-size: 24rpx;
  747. color: #878787;
  748. margin-top: 10rpx;
  749. }
  750. }
  751. .right {
  752. float: right;
  753. display: flex;
  754. flex-direction: column;
  755. align-items: center;
  756. width: 40%;
  757. .top {
  758. display: flex;
  759. justify-content: flex-end;
  760. }
  761. .bottom {
  762. display: flex;
  763. justify-content: flex-end;
  764. font-size: 24rpx;
  765. color: #878787;
  766. margin-top: 10rpx;
  767. }
  768. }
  769. }
  770. .row3 {
  771. background: #F5F6FA;
  772. padding: 20rpx;
  773. border-radius: 10rpx;
  774. color: #333333;
  775. .hz {
  776. width: 74rpx;
  777. height: 74rpx;
  778. margin-right: 30rpx;
  779. }
  780. .hz-good {
  781. width: 44rpx;
  782. height: 44rpx;
  783. margin: 0 30rpx;
  784. }
  785. }
  786. .row4 {
  787. margin: 20rpx 0;
  788. .time {
  789. color: #999999;
  790. margin-right: 20rpx;
  791. }
  792. .car {
  793. font-size: 28rpx;
  794. color: #000000;
  795. }
  796. }
  797. .row5 {
  798. margin: 20rpx 0;
  799. font-size: 28rpx;
  800. .stop {
  801. border-radius: 33px;
  802. border: 1px solid #FE6300;
  803. padding: 13rpx 31rpx;
  804. margin-right: 20rpx;
  805. color: #FE6300;
  806. }
  807. .normal {
  808. border-radius: 33px;
  809. border: 1px solid #CDCDCD;
  810. padding: 6px 15px;
  811. margin-right: 10px;
  812. }
  813. }
  814. }
  815. .jt-icon {
  816. position: relative;
  817. top: 6rpx;
  818. width: 60rpx;
  819. margin: 0 20rpx;
  820. }
  821. .row {
  822. margin: 10rpx 0;
  823. align-items: center;
  824. }
  825. // .item-bottom {
  826. // background: #F0F5FF;
  827. // padding: 0 30rpx;
  828. // .name {
  829. // font-size: 26rpx;
  830. // font-weight: 700;
  831. // color: #000000;
  832. // margin-left: 30rpx;
  833. // }
  834. // .hp {
  835. // margin: 30rpx;
  836. // }
  837. // .number-color {
  838. // margin: 0 10rpx;
  839. // }
  840. // .qd {
  841. // background: linear-gradient(97deg, #4FABFD 0%, #2772FB 100%);
  842. // border-radius: 13px;
  843. // font-size: 29rpx;
  844. // font-weight: 400;
  845. // color: #FFFFFF;
  846. // padding: 10rpx 35rpx;
  847. // }
  848. // }
  849. .dw {
  850. align-items: center;
  851. }
  852. .mescroll {
  853. // margin-top: calc(var(--status-bar-height) + 140rpx);
  854. top: 280rpx;
  855. }
  856. .sline {
  857. height: 28rpx;
  858. width: 1px;
  859. background: black;
  860. margin: 0 20rpx;
  861. }
  862. .search-view {
  863. margin-top: var(--status-bar-height);
  864. background: white;
  865. padding: 0 20rpx;
  866. }
  867. .back-icon {
  868. margin-right: 20rpx;
  869. }
  870. .near-search-text {
  871. margin: 20rpx 0;
  872. }
  873. .item-style {
  874. background: #F5F6FA;
  875. padding: 11rpx 24rpx;
  876. margin-right: 20rpx;
  877. border-radius: 10px;
  878. font-size: 26rpx;
  879. color: #333333;
  880. }
  881. /deep/.u-modal__content {
  882. flex-direction: column;
  883. }
  884. .tab-content {
  885. position: relative;
  886. padding-right: 100rpx;
  887. }
  888. .right-btn {
  889. position: absolute;
  890. width: 88rpx;
  891. height: 88rpx;
  892. background: #317AFE;
  893. box-shadow: -14px 0px 8px -8px rgba(0, 53, 149, 0.21);
  894. display: flex;
  895. flex-direction: column;
  896. right: 0;
  897. top: 0;
  898. bottom: 0;
  899. margin: auto;
  900. color: white;
  901. align-items: center;
  902. justify-content: center;
  903. }
  904. .tabs {
  905. // background: red;
  906. margin-top: 20rpx;
  907. overflow-x: scroll;
  908. }
  909. /deep/.u-transition {
  910. border-radius: 0 0 50rpx 50rpx;
  911. }
  912. .transition {
  913. background: white;
  914. padding-bottom: 40rpx;
  915. .transition-item-style {
  916. display: inline-block;
  917. width: calc(25% - 40rpx);
  918. text-align: center;
  919. box-sizing: border-box;
  920. background: #F7F8FA;
  921. border-radius: 40px;
  922. margin: 20rpx 20rpx 0 20rpx;
  923. padding: 16rpx 0;
  924. }
  925. .menu-active {
  926. background: #2772FB;
  927. color: white;
  928. }
  929. }
  930. .modal-black {
  931. background: black;
  932. height: 100vh;
  933. width: 100vw;
  934. position: absolute;
  935. z-index: 999;
  936. opacity: 0.3;
  937. }
  938. .all-menu {
  939. position: absolute;
  940. z-index: 99;
  941. top: 260rpx;
  942. }
  943. .look-map {
  944. background: #2772FB;
  945. border:1px solid #2772FB;
  946. color: white;
  947. }
  948. .evaluatePage{
  949. background: white;
  950. margin: 20rpx;
  951. padding: 20rpx;
  952. border-radius: 20rpx;
  953. }
  954. </style>