index.vue 20 KB

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