index.vue 19 KB

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