index.vue 20 KB

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