index.vue 20 KB

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