index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  1. <template>
  2. <view class="center">
  3. <view class="flex row1">
  4. <view class="flex center_top">
  5. <view class="center_top_btn" :class="indexbtn == 1? '':'center_top_btn1'" @click="changebtn(1)">司机
  6. </view>
  7. <view class="center_top_btn" :class="indexbtn == 2? '':'center_top_btn1'" @click="changebtn(2)">车队
  8. </view>
  9. </view>
  10. </view>
  11. <view class="driver" v-show="indexbtn == 1">
  12. <view class="flex screen">
  13. <view @click="selectAddress(1)" class="screen_item">
  14. <view class="screen_sign sign1">装</view>
  15. {{title1 ? title1 : "请选择地址"}}
  16. </view>
  17. <itmister-address-picker ref="addressElone" @confirmChange="confirmChangeOne"></itmister-address-picker>
  18. <u--image :showLoading="true" class="exchange" src="../../static/images/carSource/exchange.png"
  19. width="43px" height="43px" @click="replace"></u--image>
  20. <view @click="selectAddress(2)" class="screen_item">
  21. <view class="screen_sign sign2">卸</view>
  22. {{title2 ? title2 : "请选择地址"}}
  23. </view>
  24. <!-- :wholeCountry="true" -->
  25. <itmisterAddressPickerOther ref="addressEltwo" @confirmChange="confirmChangeTwo"></itmisterAddressPickerOther>
  26. </view>
  27. <view class="route">
  28. <view v-for="(item,index) in routeData">
  29. <view class="flex route_item">
  30. <view style="width: 20%;">
  31. <u-avatar :src="item.driverPortrait" size="60"></u-avatar>
  32. </view>
  33. <view style="width: 80%;">
  34. <view class="flex">
  35. <view class="driver_name">
  36. {{item.driverNickname}}
  37. </view>
  38. <!-- <view class="driver_invite">
  39. <view class="route_invite" style="margin-left: 30px;" @click="invitation(item)">
  40. <image src="../../static/images/carSource/yaoqing.png" mode=""
  41. style="width: 26rpx;height: 26rpx;margin-rigth:10rpx;"></image>邀请
  42. </view>
  43. </view> -->
  44. <u-picker :show="fleetShow" :columns="columns" @cancel="fleetClose"
  45. @confirm="invitationCheng">
  46. </u-picker>
  47. </view>
  48. <view class="address" v-for="(items,index) in item.startAdress">
  49. <span class="spots spot1"></span>
  50. {{item.startAdress[index]}}
  51. <!-- {{item.sendCity ? item.sendCity: item.sendProvince }}{{item.sendArea}} -->
  52. <image class="jt-icon" src="@/static/images/goodSource/jt.png" mode='widthFix'></image>
  53. <span class="spots spot2"></span>
  54. {{item.endAdress[index]}}
  55. <!-- {{item.unloadCity ? item.unloadCity: item.unloadProvince }}{{item.unloadArea}} -->
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. <view v-if='status=="nomore"' style='text-align:center;'>
  61. <image style='width:140px;height:140px;' src="../../static/images/carSource/mescroll-empty.png" mode=""></image>
  62. <u-loadmore :status="status" :nomore-text="nomoreText" />
  63. </view>
  64. </view>
  65. <!-- <view v-if="routeData.length == 0" style="background: #FFFFFF;text-align: center;">
  66. 暂无数据
  67. </view> -->
  68. </view>
  69. <view class="riders" v-show="indexbtn == 2">
  70. <view class="flex riders_top">
  71. <view @click="selectChange" class="riders_city">{{city ? city : province}}</view>
  72. <itmister-address-picker ref="addressElthree" :showCheck="false" @confirmChange="confirmChangethree">
  73. </itmister-address-picker>
  74. <u-search placeholder="输入车队信息关键字" bgColor="#ffffff" v-model="searchKeyWord" @search="getList"
  75. maxlength="15"></u-search>
  76. </view>
  77. <view class="fleet">
  78. <view v-for="(item,index) in formData" class="flex">
  79. <view class="fleet_item">
  80. <view class="flex">
  81. <u-avatar :src="item.coverUrl" size="45"></u-avatar>
  82. <view class="fleet_name">
  83. {{item.fleetName}}
  84. <view class="fleet_member flex">
  85. <u-avatar-group :urls="item.fleetMemberUrl.split(',')" size="24" gap="0.4">
  86. </u-avatar-group>
  87. <text class="fleet_number">{{item.fleetMemberNum}}人</text>
  88. <!-- <image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image> -->
  89. <image src="../../static/images/myimg/gengduo1.png" mode=""
  90. style="width: 18rpx;height: 20rpx;margin-top:14rpx;"></image>
  91. </view>
  92. </view>
  93. <view class="fleet_invite" @click="driverLook(item)">队长</view>
  94. <!-- <view class="fleet_invite" v-else>{{item.fleetMemberStatus}}</view> -->
  95. </view>
  96. <view class="fleet_introduce">
  97. <u-read-more ref="uReadMore" :toggle="true" :shadowStyle="shadowStyle" closeText="查看全部"
  98. :showHeight="20">
  99. <rich-text :nodes="item.fleetProfile"></rich-text>
  100. </u-read-more>
  101. <!-- <view class="fleet_text" v-if="item.textShow">{{item.fleetProfile}}</view>
  102. <view class="" v-else>{{item.fleetProfile}}</view>
  103. <span class="btn_change" @click="textChange(index)">{{switchtext}}</span> -->
  104. </view>
  105. <view class="" v-if="item.img">
  106. <u-upload class="uview-upload" :fileList="item.img" :deletable="false" name="1" multiple
  107. :maxCount="1">
  108. </u-upload>
  109. </view>
  110. </view>
  111. </view>
  112. <view v-if='status=="nomore"' style='text-align:center;'>
  113. <image style='width:140px;height:140px;' src="../../static/images/carSource/mescroll-empty.png" mode=""></image>
  114. <u-loadmore :status="status" :nomore-text="nomoreText" />
  115. </view>
  116. </view>
  117. <!-- <view v-if="formData.length == 0" style="background: #FFFFFF;text-align: center;">
  118. 暂无数据
  119. </view> -->
  120. </view>
  121. <u-toast ref="uToast"></u-toast>
  122. <u-modal :show="isShowAlert" :title="alertTitle" :closeOnClickOverlay='true' :showCancelButton='true'
  123. confirmColor='#2772FB' @confirm="confirmClick" @close="cancelClick" @cancel="cancelClick"></u-modal>
  124. <u-modal :show="tipsShow" :content='tipsText' :confirmText="btnTips" @confirm="authentication"></u-modal>
  125. </view>
  126. </template>
  127. <script>
  128. import itmisterAddressPicker from '@/components/itmister-address-picker/itmister-address-picker.nvue'
  129. import itmisterAddressPickerOther from '@/components/itmister-address-picker/itmister-address-picker-other.nvue'
  130. export default {
  131. components: {
  132. itmisterAddressPicker,
  133. itmisterAddressPickerOther
  134. },
  135. data() {
  136. return {
  137. indexbtn: 1,
  138. routeData: [], //列表
  139. // show1: false,
  140. // show2: false,
  141. title1: "",
  142. title2: "",
  143. sendInfo: {
  144. sendProvince: "",
  145. sendCity: "",
  146. sendArea: ""
  147. },
  148. unloadInfo: {
  149. unloadProvince: "",
  150. unloadCity: "",
  151. unloadArea: ""
  152. },
  153. fleetLocation: {},
  154. formData: [],
  155. searchKeyWord: "",
  156. province: "", //省
  157. city: "", //市
  158. alertTitle: "",
  159. isShowAlert: false,
  160. commonId: "",
  161. addMember: {},
  162. tipsShow: false,
  163. tipsText: "",
  164. btnTips: '去认证',
  165. fleetShow: false,
  166. columns: [],
  167. fleetInviteList: [],
  168. //文本折叠
  169. shadowStyle: {
  170. backgroundImage: "none",
  171. paddingTop: "0",
  172. },
  173. status: 'loadmore',
  174. nomoreText: '~ 空空如也 ~'
  175. }
  176. },
  177. created() {},
  178. onShow() {
  179. if (uni.getStorageSync("sendInfo")) { //从缓存中获取 上一次的装车地 卸车地
  180. this.sendInfo = uni.getStorageSync("sendInfo")
  181. this.title1 = this.sendInfo.sendProvince + this.sendInfo.sendCity + this.sendInfo.sendArea
  182. } else {
  183. this.sendInfo.sendProvince = "北京"
  184. this.title1 = "北京"
  185. }
  186. if (uni.getStorageSync("unloadInfo")) {
  187. this.unloadInfo = uni.getStorageSync("unloadInfo")
  188. this.title2 = this.unloadInfo.unloadProvince + this.unloadInfo.unloadCity + this.unloadInfo.unloadArea
  189. } else {
  190. this.title2 = '全国'
  191. this.unloadInfo.unloadProvince = '全国'
  192. }
  193. if (uni.getStorageSync("fleetLocation")) {
  194. this.province = uni.getStorageSync("fleetLocation").province
  195. this.city = uni.getStorageSync("fleetLocation").city
  196. } else {
  197. this.province = ''
  198. this.city = '北京'
  199. }
  200. this.commonId = uni.getStorageSync("firstAuthentication").commonId
  201. // this.checking()
  202. this.getList()
  203. },
  204. onLoad() {},
  205. methods: {
  206. driverLook(item){
  207. this.$u.route("/pages/carSource/driverSee",{
  208. commonId:item.commonId
  209. })
  210. },
  211. checking(){
  212. this.statusVal = uni.getStorageSync("firstAuthentication").authenticationStatus
  213. // if (uni.getStorageSync("firstAuthentication")) {
  214. // if(this.statusVal != "已认证" && this.statusVal != "已过期"){
  215. // uni.setTabBarItem({
  216. // index: 1,
  217. // text: '车友',
  218. // pagePath: "/pages/riders/checkPage",
  219. // iconPath: 'static/images/common/huoyuan@2x(1).png',
  220. // selectedIconPath: 'static/images/common/huoyuan@2x.png'
  221. // })
  222. // uni.switchTab({
  223. // url: '/pages/riders/checkPage'
  224. // });
  225. // }else{
  226. // uni.setTabBarItem({
  227. // index: 1,
  228. // text: '车友',
  229. // pagePath: "/pages/riders/index",
  230. // iconPath: 'static/images/common/huoyuan@2x(1).png',
  231. // selectedIconPath: 'static/images/common/huoyuan@2x.png'
  232. // })
  233. // uni.switchTab({
  234. // url: '/pages/riders/index'
  235. // });
  236. // }
  237. // } else if(!uni.getStorageSync("firstAuthentication")&&!uni.getStorageSync("userInfo")) { //判断有没有登录
  238. // this.tipsShow = true
  239. // this.tipsText = "您尚未登录,请前去登录!"
  240. // this.btnTips = "去登录"
  241. // }else if (!uni.getStorageSync("firstAuthentication")){ //注册登录后并没有认证司机
  242. // uni.setTabBarItem({
  243. // index: 1,
  244. // text: '车友',
  245. // pagePath: "/pages/riders/checkPage",
  246. // iconPath: 'static/images/common/huoyuan@2x(1).png',
  247. // selectedIconPath: 'static/images/common/huoyuan@2x.png'
  248. // })
  249. // uni.switchTab({
  250. // url: '/pages/riders/checkPage'
  251. // });
  252. // }
  253. },
  254. fleetClose() {
  255. this.fleetShow = false
  256. },
  257. invitation(item) {
  258. this.addMember = {}
  259. this.columns = []
  260. this.addMember.commonId = item.commonId
  261. this.addMember.driverNickname = item.driverNickname
  262. this.addMember.driverPortrait = item.driverPortrait
  263. this.$request.baseRequest('get', '/fleetInfo/fleetInfos', {
  264. commonId: this.commonId,
  265. }).then(res => {
  266. this.fleetInviteList = res.data
  267. let flrrtArray = []
  268. for (let i = 0; i < res.data.length; i++) {
  269. flrrtArray.push(res.data[i].fleetName)
  270. }
  271. this.columns.push(flrrtArray)
  272. if (this.columns.length == 0) {
  273. uni.$u.toast("无可邀请的车队");
  274. } else {
  275. this.fleetShow = true
  276. }
  277. })
  278. .catch(res => {
  279. uni.$u.toast(res.message);
  280. });
  281. },
  282. invitationCheng(e) { //邀请
  283. this.addMember.fleetId = this.fleetInviteList[e.indexs[0]].id
  284. this.fleetShow = false
  285. this.addMember.joinFlag = 2
  286. this.$request.baseRequest('post', '/fleetMemberInfo/api/addFleetMemberInfo', this.addMember).then(res => {
  287. if (res.code == 200) {
  288. this.$refs.uToast.show({
  289. type: 'success',
  290. message: "邀请已发出",
  291. })
  292. } else {
  293. uni.$u.toast(res.message);
  294. }
  295. })
  296. .catch(res => {
  297. uni.$u.toast(res.message);
  298. });
  299. },
  300. authentication() {
  301. this.tipsShow = false
  302. if (this.statusVal == '未认证') {
  303. this.$u.route("/pages/mine/driverCertification")
  304. } else if (this.statusVal == '未通过') {
  305. this.$u.route("/pages/mine/editDriverCertification")
  306. } else if (this.statusVal == '审核中') {
  307. // this.$u.route("")
  308. uni.switchTab({
  309. url: '/pages/mine/index'
  310. });
  311. } else {
  312. uni.$u.route('/pages/public/login');
  313. }
  314. },
  315. selectAddress(num) {
  316. if (num == 1) {
  317. this.$refs.addressElone.show();
  318. } else if (num == 2) {
  319. this.$refs.addressEltwo.show();
  320. }
  321. },
  322. selectChange() {
  323. this.$refs.addressElthree.show();
  324. },
  325. // 确认选中
  326. confirmChangeOne(address) {
  327. if (address.province == '全国') {
  328. uni.$u.toast("发货地不可以是全国")
  329. // this.$refs.addressElone.show();
  330. return
  331. }
  332. this.sendInfo.sendProvince = address.province ? address.province : ''
  333. this.sendInfo.sendCity = address.city ? address.city : ''
  334. this.sendInfo.sendArea = address.area ? address.area : ''
  335. if (address.city == '全省') {
  336. this.title1 = address.province
  337. this.sendInfo.sendCity = ""
  338. this.sendInfo.sendArea = ""
  339. } else if (address.area == '全市') {
  340. this.title1 = address.province + address.city
  341. this.sendInfo.sendArea = ""
  342. } else {
  343. this.title1 = address.province + address.city + address.area;
  344. }
  345. uni.setStorageSync("sendInfo", this.sendInfo)
  346. this.getList()
  347. },
  348. confirmChangeTwo(address) {
  349. this.unloadInfo.unloadProvince = address.province ? address.province : ''
  350. this.unloadInfo.unloadCity = address.city ? address.city : ''
  351. this.unloadInfo.unloadArea = address.area ? address.area : ''
  352. if (address.city == '全省') {
  353. this.title2 = address.province
  354. this.unloadInfo.unloadCity = ""
  355. this.unloadInfo.unloadArea = ""
  356. } else if (address.area == '全市') {
  357. this.title2 = address.province + address.city
  358. this.unloadInfo.unloadArea = ""
  359. } else {
  360. if(address.province == '全国'){
  361. this.title2 = address.province
  362. }else{
  363. this.title2 = address.province + address.city + address.area;
  364. }
  365. }
  366. uni.setStorageSync("unloadInfo", this.unloadInfo)
  367. this.getList()
  368. },
  369. confirmChangethree(address) {
  370. this.province = address.province
  371. this.city = address.city
  372. if (address.city == "全省") {
  373. this.city = ""
  374. }
  375. this.fleetLocation.province = address.province
  376. this.fleetLocation.city = address.city == "全省" ? "" : address.city
  377. uni.setStorageSync("fleetLocation", this.fleetLocation)
  378. this.getList()
  379. },
  380. joinFleet(item) {
  381. this.addMember.commonId = this.commonId
  382. this.addMember.driverNickname = uni.getStorageSync("firstAuthentication").driverCall
  383. this.addMember.driverPortrait = uni.getStorageSync("userInfo").avatarUrl
  384. this.addMember.fleetId = item.id
  385. this.alertTitle = "确定申请加入该车队?"
  386. this.isShowAlert = true
  387. },
  388. // addressChange(num) {
  389. // if (num == 1) {
  390. // this.show1 = true
  391. // this.show2 = false
  392. // } else {
  393. // this.show1 = false
  394. // this.show2 = true
  395. // }
  396. // },
  397. cancelClick() {
  398. this.isShowAlert = false
  399. },
  400. confirmClick() {
  401. this.isShowAlert = false
  402. this.addMember.joinFlag = 1
  403. this.$request.baseRequest('post', '/fleetMemberInfo/api/addFleetMemberInfo', this.addMember).then(res => {
  404. if (res.code == '200') {
  405. this.$refs.uToast.show({
  406. type: 'success',
  407. message: "申请成功,等待队长审核",
  408. })
  409. this.getList()
  410. } else {
  411. this.$refs.uToast.show({
  412. type: 'success',
  413. message: "申请失败,请稍后重试",
  414. })
  415. }
  416. })
  417. .catch(res => {
  418. uni.$u.toast(res.message);
  419. });
  420. },
  421. getList() {
  422. this.status = 'loading';
  423. if (this.indexbtn == 1) {
  424. this.$request.baseRequest('get', '/commonRoute/driverList', {
  425. pageSize: 10,
  426. currentPage: 1,
  427. sendProvince: this.sendInfo.sendProvince,
  428. sendCity: this.sendInfo.sendCity,
  429. sendArea: this.sendInfo.sendArea,
  430. unloadProvince: this.unloadInfo.unloadProvince,
  431. unloadCity: this.unloadInfo.unloadCity,
  432. unloadArea: this.unloadInfo.unloadArea
  433. }).then(res => {
  434. if (res.code == 200) {
  435. this.routeData = res.data.records
  436. for (let i = 0; i < this.routeData.length; i++) {
  437. if (this.routeData[i].startAdress) {
  438. this.routeData[i].startAdress = this.routeData[i].startAdress.split(",")
  439. }
  440. if (this.routeData[i].endAdress) {
  441. this.routeData[i].endAdress = this.routeData[i].endAdress.split(",")
  442. }
  443. }
  444. if(res.data.total == 0){
  445. this.status = 'nomore'
  446. }else{
  447. this.status = 'loadmore'
  448. }
  449. }
  450. })
  451. .catch(res => {
  452. uni.$u.toast(res.message);
  453. });
  454. } else {
  455. let that = this
  456. this.$request.baseRequest('get', '/fleetInfo/selectFleetInfo', {
  457. commonId: this.commonId,
  458. province: this.province, //省
  459. city: this.city, //市
  460. searchKeyWord: this.searchKeyWord,
  461. pageSize: 10,
  462. currentPage: 1
  463. }).then(res => {
  464. that.formData = res.data.records
  465. for (let i = 0; i < that.formData.length; i++) {
  466. that.formData[i].textShow = false
  467. if (that.formData[i].fleetUrl) {
  468. that.formData[i].img = []
  469. let imgList = that.formData[i].fleetUrl.split(",")
  470. for (let j = 0; j < imgList.length; j++) {
  471. that.formData[i].img.push({
  472. url: imgList[j]
  473. })
  474. }
  475. }
  476. }
  477. if(res.data.total == 0){
  478. this.status = 'nomore'
  479. }else{
  480. this.status = 'loadmore'
  481. }
  482. })
  483. .catch(res => {
  484. uni.$u.toast(res.message);
  485. });
  486. }
  487. },
  488. changebtn(num) {
  489. this.indexbtn = num
  490. this.getList()
  491. },
  492. // 回调参数为包含columnIndex、value、values
  493. confirm(e) {
  494. console.log('confirm', e)
  495. this.show = false
  496. },
  497. replace() {
  498. if (this.unloadInfo.unloadProvince == "全国") {
  499. uni.$u.toast("发货地不可以是全国")
  500. return
  501. }
  502. let _obj = {}
  503. _obj = JSON.parse(JSON.stringify(this.sendInfo))
  504. this.sendInfo.sendProvince = this.unloadInfo.unloadProvince
  505. this.sendInfo.sendCity = this.unloadInfo.unloadCity
  506. this.sendInfo.sendArea = this.unloadInfo.unloadArea
  507. this.unloadInfo.unloadProvince = _obj.sendProvince
  508. this.unloadInfo.unloadCity = _obj.sendCity
  509. this.unloadInfo.unloadArea = _obj.sendArea
  510. let text = ""
  511. text = this.title1
  512. this.title1 = this.title2
  513. this.title2 = text
  514. this.getList()
  515. },
  516. myPage() {
  517. uni.$u.route("/pages/riders/myTeam")
  518. }
  519. }
  520. }
  521. </script>
  522. <style lang="scss" scoped>
  523. .center {
  524. background: #F2F4F7;
  525. .row1 {
  526. display: flex;
  527. justify-content: flex-end;
  528. .flex-end {
  529. margin-top: 50rpx;
  530. }
  531. .center_top {
  532. width: 40%;
  533. margin: 60rpx auto 0;
  534. .center_top_btn {
  535. width: 50%;
  536. text-align: center;
  537. color: #000000;
  538. font-size: 42rpx;
  539. font-weight: 600;
  540. }
  541. .center_top_btn1 {
  542. color: #BBBBBB;
  543. }
  544. }
  545. }
  546. .top_img {
  547. width: 70rpx;
  548. height: 70rpx;
  549. }
  550. }
  551. .route {
  552. padding: 40rpx;
  553. margin-top: 40rpx;
  554. background: #FFFFFF;
  555. .route_item {
  556. margin-bottom: 40rpx;
  557. width: 100%;
  558. .route_invite {
  559. width: 146rpx;
  560. height: 54rpx;
  561. border-radius: 35px;
  562. text-align: center;
  563. color: #FFFFFF;
  564. line-height: 54rpx;
  565. background: #2772FB;
  566. }
  567. .driver_name {
  568. width: 50%;
  569. margin: 20rpx 0 0 30rpx;
  570. color: #333333;
  571. font-size: 30rpx;
  572. }
  573. .driver_invite{
  574. display: flex;
  575. width: 50%;
  576. justify-content: flex-end;
  577. }
  578. }
  579. .address {
  580. margin-left: 30rpx;
  581. // line-height: 34rpx;
  582. .spots {
  583. width: 20rpx;
  584. height: 20rpx;
  585. display: inline-block;
  586. border-radius: 10rpx;
  587. margin-right: 10rpx;
  588. margin-bottom: 4rpx
  589. }
  590. .spot1 {
  591. background: #2772FB;
  592. }
  593. .spot2 {
  594. background: #FE6300;
  595. }
  596. }
  597. }
  598. .driver {
  599. .screen {
  600. background-color: #FFFFFF;
  601. width: 92%;
  602. border-radius: 20rpx;
  603. height: 200rpx;
  604. margin: 0 auto;
  605. margin-top: 60rpx;
  606. .screen_item {
  607. padding: 60rpx 30rpx;
  608. width: 40%;
  609. text-align: center;
  610. .screen_sign {
  611. width: 40rpx;
  612. height: 40rpx;
  613. text-align: center;
  614. margin: 0 auto;
  615. border-radius: 6px;
  616. color: #FFFFFF;
  617. font-size: 22rpx;
  618. line-height: 40rpx;
  619. }
  620. .sign1 {
  621. background: #2772FB;
  622. }
  623. .sign2 {
  624. background: #FE6300;
  625. }
  626. }
  627. .exchange {
  628. line-height: 200rpx;
  629. margin-top: 60rpx;
  630. }
  631. }
  632. }
  633. .riders {
  634. .riders_top {
  635. margin-top: 40rpx;
  636. .riders_city {
  637. margin-top: 10rpx;
  638. margin: 10rpx 30rpx;
  639. }
  640. }
  641. .fleet {
  642. padding: 30rpx;
  643. // margin: 40rpx 0;
  644. margin-top: 40rpx;
  645. background: #FFFFFF;
  646. border-top-right-radius: 40rpx;
  647. border-top-left-radius: 40rpx;
  648. .fleet_item {
  649. // margin-top: 10rpx;
  650. width: 100%;
  651. margin-bottom: 20rpx;
  652. .fleet_name {
  653. margin-left: 20rpx;
  654. width: 70%;
  655. }
  656. .fleet_invite {
  657. text-align: center;
  658. background-color: #2772FB;
  659. width: 128rpx;
  660. height: 66rpx;
  661. line-height: 66rpx;
  662. border-radius: 35rpx;
  663. color: #fff;
  664. }
  665. .fleet_introduce {
  666. margin: 40rpx 0;
  667. position: relative;
  668. // .fleet_text{
  669. // overflow: hidden;
  670. // word-break: break-all; /* break-all(允许在单词内换行。) */
  671. // text-overflow: ellipsis; /* 超出部分省略号 */
  672. // display: -webkit-box; /** 对象作为伸缩盒子模型显示 **/
  673. // -webkit-box-orient: vertical; /** 设置或检索伸缩盒对象的子元素的排列方式 **/
  674. // -webkit-line-clamp: 3; /** 显示的行数 **/
  675. // }
  676. .btn_change {
  677. position: absolute;
  678. right: 0rpx;
  679. bottom: 0rpx;
  680. color: #2772fb;
  681. }
  682. }
  683. .fleet_member {
  684. margin-top: 20rpx;
  685. }
  686. .fleet_number {
  687. margin: 6rpx 10rpx;
  688. color: #ABABAB;
  689. font-size: 24rpx;
  690. }
  691. }
  692. }
  693. }
  694. .jt-icon {
  695. position: relative;
  696. top: 16rpx;
  697. width: 60rpx;
  698. margin: 0 20rpx;
  699. // margin-top: 10rpx;
  700. }
  701. </style>