index.vue 21 KB

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