index.vue 19 KB

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