index.vue 21 KB

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