index.vue 20 KB

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