index.vue 21 KB

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