index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724
  1. <!-- 货源 -->
  2. <template>
  3. <view class="content">
  4. <view class="banner">
  5. <image class="banner-img" src="@/static/images/goodSource/banner@2x.png" mode='widthFix'></image>
  6. <view class="head flex s-row paddingr35">
  7. <view class="flex flex-space-between">
  8. <view class="flex s-row item1" @click="goCity(0)">
  9. <view class="fontsize-28 gray">装车</view>
  10. <view class="fontsize-46 fontweight-500 text">{{startPlace.selected}}</view>
  11. </view>
  12. <image class="change-btn item2" src="@/static/images/goodSource/change.png" mode='widthFix'
  13. @click="changeCity"></image>
  14. <view class="flex s-row item3" @click="goCity(1)">
  15. <view class="fontsize-28 gray text-align-right">卸车</view>
  16. <view class="fontsize-46 fontweight-500 text">{{endPlace.selected}}</view>
  17. </view>
  18. </view>
  19. <view>
  20. <u-button type="" class="btn-color fontsize-36 m-top20" @click="upCallback({size:10,num:1})"> 查询
  21. </u-button>
  22. </view>
  23. </view>
  24. </view>
  25. <view :class="scrollTop>1200?'fixed1':''"></view>
  26. <view class="tab-view">
  27. <u-tabs :list="tabList" @click="clickTab" :lineColor="scrollTop>1200?'white':'#303133'" :current='tabIndex'
  28. :inactiveStyle="{color: scrollTop>1200?'white':'',}" :activeStyle="{
  29. color: scrollTop>1200?'white':'',
  30. fontWeight: 'bold',
  31. transform: 'scale(1.05)'
  32. }" :class="scrollTop>1200?'fixed':''"></u-tabs>
  33. <view class="tab-right" @click="selectType">
  34. <view>{{pickerSelect}}</view>
  35. <u-icon name="arrow-down" size="20"></u-icon>
  36. </view>
  37. </view>
  38. <u-picker :show="show" :columns="columns" :closeOnClickOverlay='true' @close='selectTypeClose'
  39. @cancel='selectTypeClose' @confirm='confirmSelectType'></u-picker>
  40. <mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback">
  41. <view v-for="(good,index) in goods" :key="index" @click="toDetail(good.id)">
  42. <view v-if="good.peripheralInfo==1&&isFirstIndex==index" class="other-goods">周边货源</view>
  43. <view class="good-list">
  44. <view style="padding: 0 35rpx 20rpx 35rpx;">
  45. <view class="flex flex-space-between">
  46. <view class="item1">
  47. <view class="ssx">{{$helper.getProvinceAbbreviation(good.sendPrivate)}}</view>
  48. <view class="level2-title">{{$helper.filterUrban(good.sendCity)}}
  49. {{$helper.filterArea(good.sendArea)}}</view>
  50. </view>
  51. <image class="jt-icon item2" src="@/static/images/goodSource/jt.png" mode='widthFix'>
  52. </image>
  53. <view class="item3">
  54. <view class="ssx">{{$helper.getProvinceAbbreviation(good.unloadPrivate)}}</view>
  55. <view class="level2-title">{{$helper.filterUrban(good.unloadCity)}}
  56. {{$helper.filterArea(good.unloadArea)}}</view>
  57. </view>
  58. </view>
  59. <view class="right gray">
  60. {{good.createDate}}
  61. </view>
  62. <view class="flex flex-space-between yf-style">
  63. <view class="left">
  64. <view class="flex">
  65. <view class="fontsize-25 gray mr20">货距 {{good.cargoDistance}}km</view>
  66. <view class="fontsize-25 gray ">运距 {{good.distance}}km</view>
  67. </view>
  68. <view class="flex fontsize-25 gray row">
  69. <view>{{good.goodsName}} | </view>
  70. <view>{{carLength(good)}} | {{carType(good)}} | {{carWeight(good)}}</view>
  71. </view>
  72. <view class="flex row">
  73. <view class="row-tips">{{good.taskDescription}}</view>
  74. </view>
  75. </view>
  76. <view class="right flex h-color">
  77. <view class="fontsize-46">
  78. {{good.freightPrice}}
  79. </view>
  80. <view class="flex dw">元/吨</view>
  81. </view>
  82. </view>
  83. </view>
  84. <view class="flex flex-space-between item-bottom">
  85. <view class="left flex row">
  86. <u--image
  87. :src="good.cargoOwnerPortrait?good.cargoOwnerPortrait:'../../static/images/mine/tx.png'"
  88. width='100rpx' height='100rpx' shape="circle">
  89. </u--image>
  90. <view class="name">{{good.cargoOwnerName}}</view>
  91. <!-- <view class="hp flex fontsize-24">
  92. <view class="gray">评分</view>
  93. <view class="number-color">99%</view>
  94. </view>
  95. <view class="sum flex fontsize-24">
  96. <view class="gray">发运次数</view>
  97. <view class="number-color">106</view>
  98. </view> -->
  99. </view>
  100. <view class="right">
  101. <view @click.stop="grabOrders(good)" class="qd" v-if='hasLogin'>抢单</view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </mescroll-body>
  107. <u-toast ref="uToast"></u-toast>
  108. <u-modal :show="isShowAlert" :title="alertTitle" :closeOnClickOverlay='true' :showCancelButton='true'
  109. confirmColor='#2772FB' @confirm="confirmClick" @close="cancelClick" @cancel="cancelClick"></u-modal>
  110. </view>
  111. </template>
  112. <script>
  113. var that
  114. import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
  115. import {
  116. mapState
  117. } from 'vuex';
  118. import {
  119. apiGoods
  120. } from "@/api/mock.js"
  121. export default {
  122. mixins: [MescrollMixin], // 使用mixin
  123. data() {
  124. return {
  125. isFirstIndex: null,
  126. ObjSelect: {},
  127. isShowAlert: false,
  128. alertTitle: '确定抢单?',
  129. show: false,
  130. columns: [
  131. ['全部类型', '运费先付']
  132. ],
  133. startPlace: {},
  134. endPlace: {},
  135. otherGoods: [], // 数据列表
  136. goods: [], // 数据列表
  137. src: 'https://cdn.uviewui.com/uview/album/1.jpg',
  138. height: "", // 需要固定swiper的高度
  139. tabList: [
  140. // {
  141. // name: '全部'
  142. // },
  143. {
  144. name: '推荐'
  145. }, {
  146. name: '按时间'
  147. }, {
  148. name: '按距离'
  149. },
  150. // {
  151. // name: '运费先付'
  152. // },
  153. ],
  154. pickerSelect: '全部类型',
  155. tabIndex: 0,
  156. scrollTop: 0,
  157. count: 0,
  158. lng: '',
  159. lat: ''
  160. }
  161. },
  162. onTabItemTap(e) {
  163. // tab 点击时执行,此处直接接收单击事件
  164. uni.pageScrollTo({
  165. scrollTop: 0,
  166. duration: 300
  167. });
  168. },
  169. created() {
  170. },
  171. computed: {
  172. ...mapState(['hasLogin', 'userInfo', 'firstAuthentication'])
  173. },
  174. onShow() {
  175. //获取上一次点击起装卸地
  176. if (uni.getStorageSync('fPlaceObj')) {
  177. this.startPlace = uni.getStorageSync('fPlaceObj');
  178. } else {
  179. // #ifdef APP-PLUS
  180. this.getLngLat();
  181. // #endif
  182. }
  183. // #ifdef APP-PLUS
  184. this.getLngLat();
  185. // #endif
  186. if (uni.getStorageSync('sPlaceObj')) {
  187. this.endPlace = uni.getStorageSync('sPlaceObj');
  188. } else {
  189. this.endPlace.selected = '全国'
  190. }
  191. that.$request.baseRequest('get', '/newsInfo/unreadMessage', {
  192. reCommonId: this.userInfo.id,
  193. }).then(res3 => {
  194. if (res3.data) {
  195. let name = 'myTip';
  196. let value = res3.data
  197. if (value == 0) {
  198. uni.removeTabBarBadge({
  199. index: 2
  200. })
  201. }
  202. that.$store.commit('$uStore', {
  203. name,
  204. value
  205. });
  206. if (value != 0 && value) {
  207. uni.setTabBarBadge({
  208. index: 2,
  209. text: value + ""
  210. })
  211. }
  212. }
  213. })
  214. // this.mescroll.resetUpScroll()
  215. },
  216. onLoad() {
  217. that = this
  218. },
  219. onPageScroll(res) {
  220. this.scrollTop = res.scrollTop
  221. // console.log("页面滚动了", res.scrollTop)
  222. if (this.scrollTop > 1200) {
  223. uni.setTabBarItem({
  224. index: 0,
  225. text: '返回顶部',
  226. iconPath: 'static/images/common/top@2x.png',
  227. selectedIconPath: 'static/images/common/top@2x.png'
  228. })
  229. } else {
  230. uni.setTabBarItem({
  231. index: 0,
  232. text: '货源',
  233. iconPath: 'static/images/common/huoyuan@2x(1).png',
  234. selectedIconPath: 'static/images/common/huoyuan@2x.png'
  235. })
  236. }
  237. },
  238. methods: {
  239. mescrollInit(mescroll) {
  240. this.mescroll = mescroll;
  241. },
  242. confirmClick() {
  243. let item = this.ObjSelect
  244. let _obj = {
  245. driverCommonId: this.firstAuthentication.commonId,
  246. commonId: item.commonId,
  247. cargoOwnerName: item.cargoOwnerName,
  248. cargoOwner: item.cargoOwner,
  249. sendPrivate: item.sendPrivate,
  250. sendCity: item.sendCity,
  251. sendArea: item.sendArea,
  252. sendDetailedAddress: item.sendDetailedAddress,
  253. unloadPrivate: item.unloadPrivate,
  254. unloadCity: item.unloadCity,
  255. unloadArea: item.unloadArea,
  256. unloadDetailedAddress: item.unloadDetailedAddress,
  257. goodsName: item.goodsName,
  258. distance: item.distance,
  259. freightPrice: item.freightPrice,
  260. driverName: this.firstAuthentication.driverName,
  261. driverPhone: this.firstAuthentication.driverPhone,
  262. cargoOwnerPhone: item.cargoOwnerPhone
  263. }
  264. this.$request.baseRequest('post', '/publishTaskInfo/api/addOrder', _obj).then(res => {
  265. if (res.code == 200) {
  266. this.$refs.uToast.show({
  267. type: 'success',
  268. message: "抢单成功!",
  269. complete() {
  270. uni.switchTab({
  271. url: "/pages/order/index"
  272. })
  273. }
  274. })
  275. }
  276. })
  277. .catch(res => {
  278. uni.$u.toast(res.message);
  279. });
  280. this.isShowAlert = false
  281. },
  282. cancelClick() {
  283. this.isShowAlert = false
  284. },
  285. carLength(good) {
  286. let length = ''
  287. if (good.carLengthSmall && good.carLength) {
  288. length = good.carLengthSmall + '~' + good.carLength + '米'
  289. } else if (good.carLengthSmall && !good.carLength) {
  290. length = "大于" + good.carLengthSmall + '米'
  291. } else if (good.carLength && !good.carLengthSmall) {
  292. length = "小于" + good.carLength + '米'
  293. }
  294. return length
  295. },
  296. carType(good) {
  297. let _val = '';
  298. if (good.carModel == 1) {
  299. _val = '不限'
  300. } else {
  301. if (good.carModel.includes(2)) {
  302. _val += '高栏/'
  303. }
  304. if (good.carModel.includes(3)) {
  305. _val += '集装箱/'
  306. }
  307. if (good.carModel.includes(4)) {
  308. _val += '自卸车'
  309. }
  310. }
  311. return _val
  312. },
  313. carWeight(good) {
  314. good.loadWeightSmall
  315. good.loadWeight
  316. let weight = ''
  317. if (good.loadWeightSmall && good.loadWeight) {
  318. weight = good.loadWeightSmall + '~' + good.loadWeight + '吨'
  319. } else if (good.loadWeightSmall) {
  320. weight = "大于" + good.loadWeightSmall + '吨'
  321. } else if (good.loadWeight) {
  322. weight = "小于" + good.loadWeight + '吨'
  323. }
  324. return weight
  325. },
  326. getdate() {
  327. var date = new Date()
  328. var year = date.getFullYear() //获取完整的年份(4位)
  329. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  330. var datetime = date.getDate() //获取当前日(1-31)
  331. if (mouth < 10) {
  332. mouth = '0' + mouth
  333. }
  334. if (datetime < 10) {
  335. datetime = '0' + datetime
  336. }
  337. return String(year) + String(mouth) + String(datetime)
  338. },
  339. grabOrders(item) {
  340. this.isShowAlert = true
  341. this.ObjSelect = item
  342. },
  343. confirmSelectType(val) {
  344. this.pickerSelect = val.value[0]
  345. this.show = false
  346. },
  347. selectTypeClose() {
  348. this.show = false
  349. },
  350. selectType() {
  351. this.show = true
  352. },
  353. getLngLat() {
  354. // uni.showLoading({
  355. // title:'获取定位信息'
  356. // })
  357. uni.getLocation({
  358. type: 'gcj02',
  359. geocode: true,
  360. success: res => {
  361. if (res.latitude) {
  362. that.startPlace.selected = res.address.city
  363. this.lng = res.longitude;
  364. this.lat = res.latitude;
  365. } else {
  366. if (uni.getSystemInfoSync().platform == 'android') {
  367. var context = plus.android.importClass("android.content.Context");
  368. var locationManager = plus.android.importClass(
  369. "android.location.LocationManager");
  370. var main = plus.android.runtimeMainActivity();
  371. var mainSvr = main.getSystemService(context.LOCATION_SERVICE);
  372. this.bool = mainSvr.isProviderEnabled(locationManager.GPS_PROVIDER)
  373. }
  374. if (this.bool === false) {
  375. uni.showModal({
  376. title: '提示',
  377. content: '请打开定位服务',
  378. success: ({
  379. confirm,
  380. cancel
  381. }) => {
  382. if (confirm) {
  383. if (uni.getSystemInfoSync().platform == 'android') {
  384. var Intent = plus.android.importClass(
  385. 'android.content.Intent');
  386. var Settings = plus.android.importClass(
  387. 'android.provider.Settings');
  388. var intent = new Intent(Settings
  389. .ACTION_LOCATION_SOURCE_SETTINGS);
  390. var main = plus.android.runtimeMainActivity();
  391. main.startActivity(intent); // 打开系统设置GPS服务页面
  392. }
  393. }
  394. }
  395. });
  396. }
  397. }
  398. }
  399. });
  400. },
  401. toDetail(id) {
  402. //司机是否认证身份
  403. if (this.firstAuthentication.authenticationStatus == '已认证') {
  404. uni.$u.route('/pages/goodSource/shippingDetails', {
  405. id: id,
  406. });
  407. } else {
  408. this.$refs.uToast.show({
  409. type: 'error',
  410. message: "请先完成司机认证!",
  411. })
  412. }
  413. },
  414. /*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
  415. upCallback(page) {
  416. let _pickerSelect;
  417. if (this.pickerSelect == '运费先付') {
  418. _pickerSelect = 1
  419. } else {
  420. _pickerSelect = 0
  421. }
  422. //选择省市区
  423. let _data = {
  424. searchKeyWord: this.tabIndex + 1,
  425. searchType: _pickerSelect,
  426. // loadingPlace: this.startPlace.selected,
  427. // unLoadingPlace: this.endPlace.selected=="全国"?'':this.endPlace.selected,
  428. pageSize: page.size,
  429. currentPage: page.num,
  430. // loadingPlaceCity: this.startPlace.fchoosecity,
  431. // unLoadingPlaceCity: this.endPlace.schoosecity
  432. }
  433. if (this.tabIndex == 2) {
  434. // #ifdef APP-PLUS
  435. this.getLngLat();
  436. // #endif
  437. _data.driverLongitude = this.lng
  438. _data.driverLatitude = this.lat
  439. }
  440. console.log('------')
  441. console.log(_data)
  442. if (uni.getStorageSync('fPlaceObj')) {
  443. if (this.startPlace.fchoosearea && this.startPlace.fchoosearea == '全部' && this.startPlace
  444. .fchoosearea != '请选择区') {
  445. _data.loadingPlaceCity = this.startPlace.fchoosecity
  446. } else if (this.startPlace.fchoosecity == '全部') {
  447. _data.loadingPlace = this.startPlace.selected
  448. } else {
  449. _data.loadingPlaceCity = this.startPlace.fchoosecity
  450. _data.loadingPlace = this.startPlace.fchoosearea
  451. }
  452. } else {
  453. _data.loadingPlaceCity = this.startPlace.fchoosecity
  454. }
  455. if (uni.getStorageSync('sPlaceObj')) {
  456. if (this.endPlace.schoosearea && this.endPlace.schoosearea == '全部' && this.endPlace.schoosearea !=
  457. '请选择区') {
  458. _data.unLoadingPlaceCity = this.endPlace.schoosecity
  459. } else if (this.endPlace.schoosearea) {
  460. _data.unLoadingPlace = this.endPlace.selected == "全国" ? '' : this.endPlace.selected
  461. } else {
  462. _data.unLoadingPlace = this.endPlace.selected == "全国" ? '' : this.endPlace.selected
  463. _data.unLoadingPlaceCity = this.endPlace.schoosecity
  464. }
  465. } else {
  466. _data.unLoadingPlace = this.endPlace.selected == "全国" ? '' : this.endPlace.selected
  467. }
  468. if (this.lng) {
  469. _data.longitude = this.lng
  470. _data.latitude = this.lat
  471. }
  472. this.$request.baseRequest('get', '/publishTaskInfo/selectGoodsSource', _data).then(res => {
  473. if (res.code == 200) {
  474. this.mescroll.endBySize(res.data.records.length, res.data.total);
  475. if (page.num == 1) {
  476. this.goods = [];
  477. // this.otherGoods = []
  478. }; //如果是第一页需手动制空列表
  479. that.goods = that.goods.concat(res.data.records);
  480. for (let i = 0; i < that.goods.length; i++) {
  481. if (that.goods[i].peripheralInfo == 1) {
  482. that.isFirstIndex = i
  483. return
  484. }
  485. }
  486. }
  487. uni.hideLoading()
  488. })
  489. .catch(res => {
  490. uni.$u.toast(res.message);
  491. this.mescroll.endErr();
  492. });
  493. },
  494. clickTab(val) {
  495. uni.showLoading({
  496. mask: true,
  497. title: '加载中'
  498. })
  499. this.tabIndex = val.index
  500. this.upCallback({
  501. size: 10,
  502. num: 1,
  503. })
  504. },
  505. changeCity() {
  506. if (this.endPlace.selected == '全国') {
  507. this.$refs.uToast.show({
  508. type: 'error',
  509. message: "卸车地为全国不允许切换!",
  510. })
  511. return
  512. }
  513. [this.startPlace.fchooseprovince, this.endPlace.schooseprovince] = [this.endPlace.schooseprovince, this
  514. .startPlace.fchooseprovince
  515. ];
  516. [this.startPlace.fchoosecity, this.endPlace.schoosecity] = [this.endPlace.schoosecity, this.startPlace
  517. .fchoosecity
  518. ];
  519. [this.startPlace.fchoosearea, this.endPlace.schoosearea] = [this.endPlace.schoosearea, this.startPlace
  520. .fchoosearea
  521. ];
  522. [this.startPlace.selected, this.endPlace.selected] = [this.endPlace.selected, this.startPlace.selected];
  523. // [this.startPlace, this.endPlace] = [this.endPlace, this.startPlace];
  524. },
  525. goCity(type) {
  526. uni.$u.route('/pages/goodSource/selectCity', {
  527. startPlace: JSON.stringify(this.startPlace),
  528. endPlace: JSON.stringify(this.endPlace),
  529. type: type
  530. });
  531. },
  532. swiperChange(e) {
  533. this.tabIndex = e.detail.current
  534. }
  535. }
  536. }
  537. </script>
  538. <style scoped lang="scss">
  539. .banner {
  540. width: 100%;
  541. position: relative;
  542. }
  543. .fixed,
  544. .fixed1 {
  545. background: linear-gradient(97deg, #4FABFD 0%, #2772FB 100%);
  546. position: fixed;
  547. top: var(--status-bar-height);
  548. z-index: 999;
  549. // width: calc(100% - 40rpx);
  550. width: 100%;
  551. // margin:0 20rpx;
  552. }
  553. .fixed1 {
  554. top: 0;
  555. height: var(--status-bar-height);
  556. background: linear-gradient(97deg, #4FABFD 0%, #2772FB 100%);
  557. }
  558. .banner-img {
  559. width: 100%;
  560. }
  561. .head {
  562. position: absolute;
  563. width: calc(100% - 108rpx);
  564. bottom: 0;
  565. background: white;
  566. margin: 0 20rpx;
  567. border-radius: 20rpx;
  568. .item1,
  569. .item3 {
  570. width: 40%;
  571. .text {
  572. text-overflow: ellipsis;
  573. overflow: hidden;
  574. white-space: nowrap;
  575. }
  576. }
  577. .item1 .text {
  578. text-align: left;
  579. }
  580. .item3 .text {
  581. text-align: right;
  582. }
  583. }
  584. .change-btn {
  585. width: 86rpx;
  586. height: 86rpx;
  587. }
  588. .good-list {
  589. background-color: white;
  590. margin: 20rpx;
  591. padding: 20rpx 0rpx 0 0;
  592. border-radius: 20rpx;
  593. .item1,
  594. .item3 {
  595. width: 40%;
  596. display: flex;
  597. .text {
  598. text-overflow: ellipsis;
  599. overflow: hidden;
  600. white-space: nowrap;
  601. }
  602. }
  603. .item1 .text {
  604. text-align: left;
  605. }
  606. .item3 .text {
  607. text-align: right;
  608. }
  609. }
  610. .jt-icon {
  611. position: relative;
  612. top: 6rpx;
  613. width: 60rpx;
  614. margin: 0 20rpx;
  615. }
  616. .row {
  617. margin: 10rpx 0;
  618. align-items: center;
  619. }
  620. .item-bottom {
  621. background: #F0F5FF;
  622. padding: 0 30rpx;
  623. .name {
  624. font-size: 26rpx;
  625. font-weight: 700;
  626. color: #000000;
  627. margin-left: 30rpx;
  628. }
  629. .hp {
  630. margin: 30rpx;
  631. }
  632. .number-color {
  633. margin: 0 10rpx;
  634. }
  635. .qd {
  636. background: linear-gradient(97deg, #4FABFD 0%, #2772FB 100%);
  637. border-radius: 13px;
  638. font-size: 29rpx;
  639. font-weight: 400;
  640. color: #FFFFFF;
  641. padding: 10rpx 35rpx;
  642. }
  643. }
  644. .dw {
  645. align-items: center;
  646. }
  647. .place {
  648. height: var(--status-bar-height);
  649. }
  650. .tab-view {
  651. display: flex;
  652. align-items: center;
  653. justify-content: space-between;
  654. }
  655. .tab-right {
  656. display: flex;
  657. margin-right: 20rpx;
  658. align-items: center;
  659. }
  660. .other-goods {
  661. // background: red;
  662. margin: 40rpx 0;
  663. display: flex;
  664. justify-content: center;
  665. font-size: 36rpx;
  666. }
  667. .level2-title {
  668. font-size: 28rpx;
  669. }
  670. .yf-style {
  671. position: relative;
  672. .h-color {
  673. position: absolute;
  674. right: 0;
  675. top: -30rpx;
  676. }
  677. }
  678. </style>