index.vue 22 KB

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