index.vue 20 KB

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