|
@@ -1,70 +1,130 @@
|
|
|
<template>
|
|
|
<view class="center">
|
|
|
- <view class="row1">
|
|
|
- <u--image class="flex-end" :showLoading="true" src="../../static/images/reders/geren.png" width="30px"
|
|
|
- height="30px" @click="myPage"></u--image>
|
|
|
- </view>
|
|
|
- <view class="flex center_top">
|
|
|
- <u-button :type="indexbtn == 1? 'primary':''" @click="changebtn(1)">司机</u-button>
|
|
|
- <u-button :type="indexbtn == 2? 'primary':''" @click="changebtn(2)">车队</u-button>
|
|
|
- <view class="">司机</view>
|
|
|
- <view class="">车队</view>
|
|
|
+ <view class="flex row1">
|
|
|
+ <view class="flex center_top">
|
|
|
+ <view class="center_top_btn" :class="indexbtn == 1? '':'center_top_btn1'" @click="changebtn(1)">司机
|
|
|
+ </view>
|
|
|
+ <view class="center_top_btn" :class="indexbtn == 2? '':'center_top_btn1'" @click="changebtn(2)">车队
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="top_img">
|
|
|
+ <u--image :showLoading="true" class="flex-end" src="../../static/images/riders/geren.png" width="35px"
|
|
|
+ height="35px" @click="myPage"></u--image>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="driver" v-show="indexbtn == 1">
|
|
|
<view class="flex screen">
|
|
|
- <view @click="selectAddress(1)" class="screen_item">{{title1 ? title1 : "请选择地址"}}</view>
|
|
|
+ <view @click="selectAddress(1)" class="screen_item">
|
|
|
+ <view class="screen_sign sign1">装</view>
|
|
|
+ {{title1 ? title1 : "请选择地址"}}
|
|
|
+ </view>
|
|
|
<itmister-address-picker ref="addressElone" @confirmChange="confirmChangeOne"></itmister-address-picker>
|
|
|
- <view @click="replace">--></view>
|
|
|
- <view @click="selectAddress(2)" class="screen_item">{{title2 ? title2 : "请选择地址"}}</view>
|
|
|
- <!-- <itmister-address-picker ref="addressEltwo" :wholeCountry="true" @confirmChange="confirmChangeTwo"></itmister-address-picker> -->
|
|
|
- </view>
|
|
|
- <view class="route" v-for="(item,index) in routeData">
|
|
|
- <view class="flex">{{item.driverNickname}}
|
|
|
- <view class="" style="margin-left: 30px;" @click="invitation(item)">邀请</view>
|
|
|
- <u-picker :show="fleetShow" :columns="columns" @cancel="fleetClose" @confirm="invitationCheng"></u-picker>
|
|
|
+ <u--image :showLoading="true" class="exchange" src="../../static/images/riders/exchange.png"
|
|
|
+ width="43px" height="43px" @click="replace"></u--image>
|
|
|
+ <view @click="selectAddress(2)" class="screen_item">
|
|
|
+ <view class="screen_sign sign2">卸</view>
|
|
|
+ {{title2 ? title2 : "请选择地址"}}
|
|
|
</view>
|
|
|
- <view>{{item.sendCity ? item.sendCity: item.sendProvince }}{{item.sendArea}} ----->
|
|
|
- {{item.unloadCity ? item.unloadCity: item.unloadProvince }}{{item.unloadArea}}
|
|
|
+ <!-- :wholeCountry="true" -->
|
|
|
+ <itmister-address-picker ref="addressEltwo" @confirmChange="confirmChangeTwo"></itmister-address-picker>
|
|
|
+ </view>
|
|
|
+ <view class="route">
|
|
|
+ <view v-for="(item,index) in routeData">
|
|
|
+ <view class="flex route_item">
|
|
|
+ <view style="width: 20%;">
|
|
|
+ <u-avatar :src="item.driverPortrait" size="60"></u-avatar>
|
|
|
+ </view>
|
|
|
+ <view style="width: 80%;">
|
|
|
+ <view class="flex">
|
|
|
+ <view class="driver_name">
|
|
|
+ {{item.driverNickname}}
|
|
|
+ </view>
|
|
|
+ <view class="driver_invite">
|
|
|
+ <view class="route_invite" style="margin-left: 30px;" @click="invitation(item)">
|
|
|
+ <image src="../../static/images/riders/yaoqing.png" mode=""
|
|
|
+ style="width: 26rpx;height: 26rpx;margin-rigth:10rpx;"></image>邀请
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <u-picker :show="fleetShow" :columns="columns" @cancel="fleetClose"
|
|
|
+ @confirm="invitationCheng">
|
|
|
+ </u-picker>
|
|
|
+ </view>
|
|
|
+ <view class="address" v-for="(items,index) in item.startAdress">
|
|
|
+ <span class="spots spot1"></span>
|
|
|
+ {{item.startAdress[index]}}
|
|
|
+ <!-- {{item.sendCity ? item.sendCity: item.sendProvince }}{{item.sendArea}} -->
|
|
|
+ <image class="jt-icon" src="@/static/images/goodSource/jt.png" mode='widthFix'></image>
|
|
|
+ <span class="spots spot2"></span>
|
|
|
+ {{item.endAdress[index]}}
|
|
|
+ <!-- {{item.unloadCity ? item.unloadCity: item.unloadProvince }}{{item.unloadArea}} -->
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if="routeData.length == 0">
|
|
|
- <u-empty mode="search" icon="http://cdn.uviewui.com/uview/empty/car.png"></u-empty>
|
|
|
+ <view v-if="routeData.length == 0" style="background: #FFFFFF;text-align: center;">
|
|
|
+ <!-- <u-empty mode="search" icon="http://cdn.uviewui.com/uview/empty/car.png"></u-empty> -->
|
|
|
+ 暂无数据
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
- <view class="" v-show="indexbtn == 2">
|
|
|
- <view class="flex">
|
|
|
- <view @click="selectChange" class="screen_item">{{city ? city : province}}</view>
|
|
|
- <!-- <itmister-address-picker ref="addressElthree" :showCheck="false" @confirmChange="confirmChangethree"></itmister-address-picker> -->
|
|
|
- <u-search placeholder="输入车队信息关键字" v-model="searchKeyWord" @change="getList" maxlength="15"></u-search>
|
|
|
+ <view class="riders" v-show="indexbtn == 2">
|
|
|
+ <view class="flex riders_top">
|
|
|
+ <view @click="selectChange" class="riders_city">{{city ? city : province}}</view>
|
|
|
+ <itmister-address-picker ref="addressElthree" :showCheck="false" @confirmChange="confirmChangethree">
|
|
|
+ </itmister-address-picker>
|
|
|
+ <u-search placeholder="输入车队信息关键字" bgColor="#ffffff" v-model="searchKeyWord" @search="getList"
|
|
|
+ maxlength="15"></u-search>
|
|
|
</view>
|
|
|
- <view v-for="(item,index) in formData" class="flex fleet">
|
|
|
- <view class="fleet_right">
|
|
|
- <view class="flex">
|
|
|
- <view class="fleet_name">
|
|
|
- {{item.fleetName}}({{item.fleetMemberNum}})
|
|
|
+ <view class="fleet">
|
|
|
+ <view v-for="(item,index) in formData" class="flex">
|
|
|
+ <view class="fleet_item">
|
|
|
+ <view class="flex">
|
|
|
+ <u-avatar :src="item.coverUrl" size="45"></u-avatar>
|
|
|
+ <view class="fleet_name">
|
|
|
+ {{item.fleetName}}
|
|
|
+ <view class="fleet_member flex">
|
|
|
+ <u-avatar-group :urls="item.fleetMemberUrl.split(',')" size="24" gap="0.4">
|
|
|
+ </u-avatar-group>
|
|
|
+ <text class="fleet_number">{{item.fleetMemberNum}}人</text>
|
|
|
+ <!-- <image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image> -->
|
|
|
+ <image src="../../static/images/myimg/gengduo1.png" mode=""
|
|
|
+ style="width: 18rpx;height: 20rpx;margin-top:14rpx;"></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="fleet_invite" v-if="!item.fleetMemberStatus" @click="joinFleet(item)">加入</view>
|
|
|
+ <view class="fleet_invite" v-else>{{item.fleetMemberStatus}}</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="fleet_introduce">
|
|
|
+ <u-read-more ref="uReadMore" :toggle="true" :shadowStyle="shadowStyle" closeText="查看全部"
|
|
|
+ :showHeight="20">
|
|
|
+ <rich-text :nodes="item.fleetProfile"></rich-text>
|
|
|
+ </u-read-more>
|
|
|
+
|
|
|
+ <!-- <view class="fleet_text" v-if="item.textShow">{{item.fleetProfile}}</view>
|
|
|
+ <view class="" v-else>{{item.fleetProfile}}</view>
|
|
|
+ <span class="btn_change" @click="textChange(index)">{{switchtext}}</span> -->
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="" v-if="item.img">
|
|
|
+ <u-upload class="uview-upload" :fileList="item.img" :deletable="false" name="1" multiple
|
|
|
+ :maxCount="1">
|
|
|
+ </u-upload>
|
|
|
</view>
|
|
|
- <view class="fleet_invite" v-if="!item.fleetMemberStatus" @click="joinFleet(item)">加入</view>
|
|
|
- <view class="fleet_invite" v-else @click="joinFleet(item)">{{item.fleetMemberStatus}}</view>
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- <u-upload class="uview-upload" :fileList="item.img" :deletable="false" name="1" multiple
|
|
|
- :maxCount="1">
|
|
|
- </u-upload>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- {{item.fleetProfile}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if="formData.length == 0">
|
|
|
- <u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/car.png"></u-empty>
|
|
|
+
|
|
|
+ <view v-if="formData.length == 0" style="background: #FFFFFF;text-align: center;">
|
|
|
+ <!-- <u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/car.png"></u-empty> -->
|
|
|
+ 暂无数据
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-toast ref="uToast"></u-toast>
|
|
|
<u-modal :show="isShowAlert" :title="alertTitle" :closeOnClickOverlay='true' :showCancelButton='true'
|
|
|
confirmColor='#2772FB' @confirm="confirmClick" @close="cancelClick" @cancel="cancelClick"></u-modal>
|
|
|
- <u-modal :show="tipsShow" :content='tipsText' :confirmText="btnTips" @confirm="authentication"></u-modal>
|
|
|
+ <u-modal :show="tipsShow" :content='tipsText' :confirmText="btnTips" @confirm="authentication"></u-modal>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -92,7 +152,7 @@
|
|
|
unloadCity: "",
|
|
|
unloadArea: ""
|
|
|
},
|
|
|
- fleetLocation:{},
|
|
|
+ fleetLocation: {},
|
|
|
formData: [],
|
|
|
searchKeyWord: "",
|
|
|
province: "", //省
|
|
@@ -101,12 +161,17 @@
|
|
|
isShowAlert: false,
|
|
|
commonId: "",
|
|
|
addMember: {},
|
|
|
- tipsShow:false,
|
|
|
- tipsText:"",
|
|
|
- btnTips:'去认证',
|
|
|
- fleetShow:false,
|
|
|
- columns:[],
|
|
|
- fleetInviteList:[]
|
|
|
+ tipsShow: false,
|
|
|
+ tipsText: "",
|
|
|
+ btnTips: '去认证',
|
|
|
+ fleetShow: false,
|
|
|
+ columns: [],
|
|
|
+ fleetInviteList: [],
|
|
|
+ //文本折叠
|
|
|
+ shadowStyle: {
|
|
|
+ backgroundImage: "none",
|
|
|
+ paddingTop: "0",
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created() {},
|
|
@@ -125,78 +190,103 @@
|
|
|
this.title2 = '全国'
|
|
|
this.unloadInfo.unloadProvince = '全国'
|
|
|
}
|
|
|
- if(uni.getStorageSync("fleetLocation")){
|
|
|
+ if (uni.getStorageSync("fleetLocation")) {
|
|
|
this.province = uni.getStorageSync("fleetLocation").province
|
|
|
this.city = uni.getStorageSync("fleetLocation").city
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.province = ''
|
|
|
this.city = '北京'
|
|
|
}
|
|
|
this.commonId = uni.getStorageSync("firstAuthentication").commonId
|
|
|
- if(uni.getStorageSync("firstAuthentication")){
|
|
|
- this.statusVal = uni.getStorageSync("firstAuthentication").authenticationStatus
|
|
|
- if(this.statusVal == '未认证'){
|
|
|
- this.tipsShow = true
|
|
|
- this.tipsText = "认证司机身份后,可查看车友信息"
|
|
|
- }
|
|
|
- if(this.statusVal == '审核中'){
|
|
|
- this.tipsShow = true
|
|
|
- this.tipsText = "司机身份审核中"
|
|
|
- this.btnTips = "我知道了"
|
|
|
- }else if(this.statusVal == '未通过'){
|
|
|
- this.tipsShow = true
|
|
|
- this.tipsText = "司机身份未通过审核"
|
|
|
- this.btnTips = "重新认证"
|
|
|
- }
|
|
|
- }else{
|
|
|
- this.tipsShow = true
|
|
|
- this.tipsText = "您尚未登录,请前去登录!"
|
|
|
- this.btnTips = "去登录"
|
|
|
- }
|
|
|
+ this.checking()
|
|
|
this.getList()
|
|
|
},
|
|
|
onLoad() {},
|
|
|
methods: {
|
|
|
- fleetClose(){
|
|
|
+ checking(){
|
|
|
+ debugger
|
|
|
+ this.statusVal = uni.getStorageSync("firstAuthentication").authenticationStatus
|
|
|
+ if (uni.getStorageSync("firstAuthentication")) {
|
|
|
+ if(this.statusVal != "已认证" && this.statusVal != "已过期"){
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 1,
|
|
|
+ text: '车友',
|
|
|
+ pagePath: "/pages/riders/checkPage",
|
|
|
+ iconPath: 'static/images/common/huoyuan@2x(1).png',
|
|
|
+ selectedIconPath: 'static/images/common/huoyuan@2x.png'
|
|
|
+ })
|
|
|
+ uni.switchTab({
|
|
|
+ url: '/pages/riders/checkPage'
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 1,
|
|
|
+ text: '车友',
|
|
|
+ pagePath: "/pages/riders/index",
|
|
|
+ iconPath: 'static/images/common/huoyuan@2x(1).png',
|
|
|
+ selectedIconPath: 'static/images/common/huoyuan@2x.png'
|
|
|
+ })
|
|
|
+ uni.switchTab({
|
|
|
+ url: '/pages/riders/index'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else if(!uni.getStorageSync("firstAuthentication")&&!uni.getStorageSync("userInfo")) { //判断有没有登录
|
|
|
+ this.tipsShow = true
|
|
|
+ this.tipsText = "您尚未登录,请前去登录!"
|
|
|
+ this.btnTips = "去登录"
|
|
|
+ }else if (!uni.getStorageSync("firstAuthentication")){ //注册登录后并没有认证司机
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 1,
|
|
|
+ text: '车友',
|
|
|
+ pagePath: "/pages/riders/checkPage",
|
|
|
+ iconPath: 'static/images/common/huoyuan@2x(1).png',
|
|
|
+ selectedIconPath: 'static/images/common/huoyuan@2x.png'
|
|
|
+ })
|
|
|
+ uni.switchTab({
|
|
|
+ url: '/pages/riders/checkPage'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fleetClose() {
|
|
|
this.fleetShow = false
|
|
|
},
|
|
|
- invitation(item){
|
|
|
- this.addMember={}
|
|
|
+ invitation(item) {
|
|
|
+ this.addMember = {}
|
|
|
this.columns = []
|
|
|
this.addMember.commonId = item.commonId
|
|
|
this.addMember.driverNickname = item.driverNickname
|
|
|
this.addMember.driverPortrait = item.driverPortrait
|
|
|
-
|
|
|
+
|
|
|
this.$request.baseRequest('get', '/fleetInfo/fleetInfos', {
|
|
|
commonId: this.commonId,
|
|
|
}).then(res => {
|
|
|
this.fleetInviteList = res.data
|
|
|
let flrrtArray = []
|
|
|
- for(let i = 0 ; i < res.data.length ; i++){
|
|
|
+ for (let i = 0; i < res.data.length; i++) {
|
|
|
flrrtArray.push(res.data[i].fleetName)
|
|
|
}
|
|
|
this.columns.push(flrrtArray)
|
|
|
- if(this.columns.length == 0){
|
|
|
+ if (this.columns.length == 0) {
|
|
|
uni.$u.toast("无可邀请的车队");
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.fleetShow = true
|
|
|
}
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
|
- });
|
|
|
+ });
|
|
|
},
|
|
|
- invitationCheng(e){//邀请
|
|
|
- this.addMember.fleetId = this.fleetInviteList[e.indexs[0]].id
|
|
|
+ invitationCheng(e) { //邀请
|
|
|
+ this.addMember.fleetId = this.fleetInviteList[e.indexs[0]].id
|
|
|
this.fleetShow = false
|
|
|
this.addMember.joinFlag = 2
|
|
|
- this.$request.baseRequest('post', '/fleetMemberInfo/api/addFleetMemberInfo',this.addMember).then(res => {
|
|
|
- if(res.code == 200){
|
|
|
+ this.$request.baseRequest('post', '/fleetMemberInfo/api/addFleetMemberInfo', this.addMember).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'success',
|
|
|
message: "邀请已发出",
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
uni.$u.toast(res.message);
|
|
|
}
|
|
|
})
|
|
@@ -204,34 +294,34 @@
|
|
|
uni.$u.toast(res.message);
|
|
|
});
|
|
|
},
|
|
|
- authentication(){
|
|
|
+ authentication() {
|
|
|
this.tipsShow = false
|
|
|
- if(this.statusVal == '未认证'){
|
|
|
+ if (this.statusVal == '未认证') {
|
|
|
this.$u.route("/pages/mine/driverCertification")
|
|
|
- }else if(this.statusVal == '未通过'){
|
|
|
+ } else if (this.statusVal == '未通过') {
|
|
|
this.$u.route("/pages/mine/editDriverCertification")
|
|
|
- }else if(this.statusVal == '审核中'){
|
|
|
+ } else if (this.statusVal == '审核中') {
|
|
|
// this.$u.route("")
|
|
|
uni.switchTab({
|
|
|
url: '/pages/mine/index'
|
|
|
});
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
uni.$u.route('/pages/public/login');
|
|
|
}
|
|
|
},
|
|
|
selectAddress(num) {
|
|
|
- if(num == 1){
|
|
|
+ if (num == 1) {
|
|
|
this.$refs.addressElone.show();
|
|
|
- }else if(num == 2){
|
|
|
+ } else if (num == 2) {
|
|
|
this.$refs.addressEltwo.show();
|
|
|
}
|
|
|
},
|
|
|
- selectChange(){
|
|
|
+ selectChange() {
|
|
|
this.$refs.addressElthree.show();
|
|
|
},
|
|
|
// 确认选中
|
|
|
confirmChangeOne(address) {
|
|
|
- if(address.province == '全国'){
|
|
|
+ if (address.province == '全国') {
|
|
|
uni.$u.toast("发货地不可以是全国")
|
|
|
// this.$refs.addressElone.show();
|
|
|
return
|
|
@@ -239,48 +329,48 @@
|
|
|
this.sendInfo.sendProvince = address.province ? address.province : ''
|
|
|
this.sendInfo.sendCity = address.city ? address.city : ''
|
|
|
this.sendInfo.sendArea = address.area ? address.area : ''
|
|
|
- if(address.city == '全省'){
|
|
|
+ if (address.city == '全省') {
|
|
|
this.title1 = address.province
|
|
|
this.sendInfo.sendCity = ""
|
|
|
this.sendInfo.sendArea = ""
|
|
|
- }else if(address.area == '全市'){
|
|
|
- this.title1 = address.province + address.city
|
|
|
+ } else if (address.area == '全市') {
|
|
|
+ this.title1 = address.province + address.city
|
|
|
this.sendInfo.sendArea = ""
|
|
|
- }else{
|
|
|
- this.title1 = address.province + address.city + address.area;
|
|
|
+ } else {
|
|
|
+ this.title1 = address.province + address.city + address.area;
|
|
|
}
|
|
|
- uni.setStorageSync("sendInfo",this.sendInfo)
|
|
|
+ uni.setStorageSync("sendInfo", this.sendInfo)
|
|
|
this.getList()
|
|
|
},
|
|
|
confirmChangeTwo(address) {
|
|
|
this.unloadInfo.unloadProvince = address.province ? address.province : ''
|
|
|
this.unloadInfo.unloadCity = address.city ? address.city : ''
|
|
|
this.unloadInfo.unloadArea = address.area ? address.area : ''
|
|
|
- if(address.city == '全省'){
|
|
|
+ if (address.city == '全省') {
|
|
|
this.title2 = address.province
|
|
|
this.unloadInfo.unloadCity = ""
|
|
|
this.unloadInfo.unloadArea = ""
|
|
|
- }else if(address.area == '全市'){
|
|
|
- this.title2 = address.province + address.city
|
|
|
+ } else if (address.area == '全市') {
|
|
|
+ this.title2 = address.province + address.city
|
|
|
this.unloadInfo.unloadArea = ""
|
|
|
- }else{
|
|
|
- this.title2 = address.province + address.city + address.area;
|
|
|
+ } else {
|
|
|
+ this.title2 = address.province + address.city + address.area;
|
|
|
}
|
|
|
- uni.setStorageSync("unloadInfo",this.unloadInfo)
|
|
|
+ uni.setStorageSync("unloadInfo", this.unloadInfo)
|
|
|
this.getList()
|
|
|
},
|
|
|
- confirmChangethree(address){
|
|
|
+ confirmChangethree(address) {
|
|
|
this.province = address.province
|
|
|
this.city = address.city
|
|
|
- if(address.city == "全省"){
|
|
|
+ if (address.city == "全省") {
|
|
|
this.city = ""
|
|
|
}
|
|
|
this.fleetLocation.province = address.province
|
|
|
- this.fleetLocation.city = address.city
|
|
|
- uni.setStorageSync("fleetLocation",this.fleetLocation)
|
|
|
+ this.fleetLocation.city = address.city == "全省" ? "" : address.city
|
|
|
+ uni.setStorageSync("fleetLocation", this.fleetLocation)
|
|
|
this.getList()
|
|
|
},
|
|
|
- joinFleet(item) {
|
|
|
+ joinFleet(item) {
|
|
|
this.addMember.commonId = this.commonId
|
|
|
this.addMember.driverNickname = uni.getStorageSync("firstAuthentication").driverCall
|
|
|
this.addMember.driverPortrait = uni.getStorageSync("userInfo").avatarUrl
|
|
@@ -310,7 +400,7 @@
|
|
|
message: "申请成功,等待队长审核",
|
|
|
})
|
|
|
this.getList()
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'success',
|
|
|
message: "申请失败,请稍后重试",
|
|
@@ -323,7 +413,7 @@
|
|
|
},
|
|
|
getList() {
|
|
|
if (this.indexbtn == 1) {
|
|
|
- this.$request.baseRequest('get', '/commonRoute/select', {
|
|
|
+ this.$request.baseRequest('get', '/commonRoute/driverList', {
|
|
|
pageSize: 10,
|
|
|
currentPage: 1,
|
|
|
sendProvince: this.sendInfo.sendProvince,
|
|
@@ -335,12 +425,21 @@
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.routeData = res.data.records
|
|
|
+ for (let i = 0; i < this.routeData.length; i++) {
|
|
|
+ if (this.routeData[i].startAdress) {
|
|
|
+ this.routeData[i].startAdress = this.routeData[i].startAdress.split(",")
|
|
|
+ }
|
|
|
+ if (this.routeData[i].endAdress) {
|
|
|
+ this.routeData[i].endAdress = this.routeData[i].endAdress.split(",")
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
|
});
|
|
|
} else {
|
|
|
+ let that = this
|
|
|
this.$request.baseRequest('get', '/fleetInfo/selectFleetInfo', {
|
|
|
commonId: this.commonId,
|
|
|
province: this.province, //省
|
|
@@ -349,12 +448,12 @@
|
|
|
pageSize: 10,
|
|
|
currentPage: 1
|
|
|
}).then(res => {
|
|
|
- this.formData = res.data.records
|
|
|
- let that = this
|
|
|
- for (let i = 0; i < this.formData.length; i++) {
|
|
|
- if (this.formData[i].fleetUrl) {
|
|
|
- this.formData[i].img = []
|
|
|
- let imgList = this.formData[i].fleetUrl.split(",")
|
|
|
+ that.formData = res.data.records
|
|
|
+ for (let i = 0; i < that.formData.length; i++) {
|
|
|
+ that.formData[i].textShow = false
|
|
|
+ if (that.formData[i].fleetUrl) {
|
|
|
+ that.formData[i].img = []
|
|
|
+ let imgList = that.formData[i].fleetUrl.split(",")
|
|
|
for (let j = 0; j < imgList.length; j++) {
|
|
|
that.formData[i].img.push({
|
|
|
url: imgList[j]
|
|
@@ -378,7 +477,7 @@
|
|
|
this.show = false
|
|
|
},
|
|
|
replace() {
|
|
|
- if(this.unloadInfo.unloadProvince == "全国"){
|
|
|
+ if (this.unloadInfo.unloadProvince == "全国") {
|
|
|
uni.$u.toast("发货地不可以是全国")
|
|
|
return
|
|
|
}
|
|
@@ -405,55 +504,215 @@
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.center {
|
|
|
- background: #F2F4F7 ;
|
|
|
+ background: #F2F4F7;
|
|
|
+
|
|
|
.row1 {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
- margin-top: 46rpx;
|
|
|
- margin: 30rpx 30rpx 0 0;
|
|
|
+
|
|
|
+ .flex-end {
|
|
|
+ margin-top: 50rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .center_top {
|
|
|
+ width: 40%;
|
|
|
+ margin: 60rpx auto 0;
|
|
|
+
|
|
|
+ .center_top_btn {
|
|
|
+ width: 50%;
|
|
|
+ text-align: center;
|
|
|
+ color: #000000;
|
|
|
+ font-size: 42rpx;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+
|
|
|
+ .center_top_btn1 {
|
|
|
+ color: #BBBBBB;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- .center_top {
|
|
|
- margin-top: 20rpx;
|
|
|
- padding: 0 30rpx;
|
|
|
+ .top_img {
|
|
|
+ width: 70rpx;
|
|
|
+ height: 70rpx;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .fleet {
|
|
|
- padding: 0 30rpx;
|
|
|
- margin: 30rpx 0;
|
|
|
|
|
|
- // .fleet_img {
|
|
|
- // width: 20%;
|
|
|
- // }
|
|
|
+ .route {
|
|
|
+ padding: 40rpx;
|
|
|
+ margin-top: 40rpx;
|
|
|
+ background: #FFFFFF;
|
|
|
|
|
|
- .fleet_right {
|
|
|
- margin-top: 10rpx;
|
|
|
+ .route_item {
|
|
|
width: 100%;
|
|
|
|
|
|
- .fleet_name {
|
|
|
- width: 80%;
|
|
|
+ .route_invite {
|
|
|
+ width: 146rpx;
|
|
|
+ height: 54rpx;
|
|
|
+ border-radius: 35px;
|
|
|
+ text-align: center;
|
|
|
+ color: #FFFFFF;
|
|
|
+ line-height: 54rpx;
|
|
|
+ background: #2772FB;
|
|
|
}
|
|
|
|
|
|
- .fleet_invite {
|
|
|
- text-align: right;
|
|
|
- background-color: #5878e8;
|
|
|
- color: #fff;
|
|
|
+ .driver_name {
|
|
|
+ width: 50%;
|
|
|
+ margin: 20rpx 0 0 30rpx;
|
|
|
+ color: #333333;
|
|
|
+ font-size: 30rpx;
|
|
|
+ }
|
|
|
+ .driver_invite{
|
|
|
+ display: flex;
|
|
|
+ width: 50%;
|
|
|
+ justify-content: flex-end;
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .route {
|
|
|
- padding: 30rpx;
|
|
|
+ .address {
|
|
|
+ margin-left: 30rpx;
|
|
|
+
|
|
|
+ // line-height: 34rpx;
|
|
|
+ .spots {
|
|
|
+ width: 20rpx;
|
|
|
+ height: 20rpx;
|
|
|
+ display: inline-block;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ margin-right: 10rpx;
|
|
|
+ margin-bottom: 4rpx
|
|
|
+ }
|
|
|
+
|
|
|
+ .spot1 {
|
|
|
+ background: #2772FB;
|
|
|
+ }
|
|
|
+
|
|
|
+ .spot2 {
|
|
|
+ background: #FE6300;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.driver {
|
|
|
.screen {
|
|
|
- margin-top: 10rpx;
|
|
|
- .screen_item{
|
|
|
- width: 46%;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ width: 92%;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ height: 200rpx;
|
|
|
+ margin: 0 auto;
|
|
|
+ margin-top: 60rpx;
|
|
|
+
|
|
|
+ .screen_item {
|
|
|
+ padding: 60rpx 30rpx;
|
|
|
+ width: 40%;
|
|
|
text-align: center;
|
|
|
+
|
|
|
+ .screen_sign {
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
+ text-align: center;
|
|
|
+ margin: 0 auto;
|
|
|
+ border-radius: 6px;
|
|
|
+ color: #FFFFFF;
|
|
|
+ font-size: 22rpx;
|
|
|
+ line-height: 40rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .sign1 {
|
|
|
+ background: #2772FB;
|
|
|
+ }
|
|
|
+
|
|
|
+ .sign2 {
|
|
|
+ background: #FE6300;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .exchange {
|
|
|
+ line-height: 200rpx;
|
|
|
+ margin-top: 60rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .riders {
|
|
|
+ .riders_top {
|
|
|
+ margin-top: 40rpx;
|
|
|
+
|
|
|
+ .riders_city {
|
|
|
+ margin-top: 10rpx;
|
|
|
+ margin: 10rpx 30rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .fleet {
|
|
|
+ padding: 30rpx;
|
|
|
+ margin: 40rpx 0;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-top-right-radius: 40rpx;
|
|
|
+ border-top-left-radius: 40rpx;
|
|
|
+
|
|
|
+ .fleet_item {
|
|
|
+
|
|
|
+ // margin-top: 10rpx;
|
|
|
+ width: 100%;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+
|
|
|
+ .fleet_name {
|
|
|
+ margin-left: 20rpx;
|
|
|
+ width: 70%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .fleet_invite {
|
|
|
+ text-align: center;
|
|
|
+ background-color: #2772FB;
|
|
|
+ width: 128rpx;
|
|
|
+ height: 66rpx;
|
|
|
+ line-height: 66rpx;
|
|
|
+ border-radius: 35rpx;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+
|
|
|
+ .fleet_introduce {
|
|
|
+ margin: 40rpx 0;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ // .fleet_text{
|
|
|
+ // overflow: hidden;
|
|
|
+ // word-break: break-all; /* break-all(允许在单词内换行。) */
|
|
|
+ // text-overflow: ellipsis; /* 超出部分省略号 */
|
|
|
+ // display: -webkit-box; /** 对象作为伸缩盒子模型显示 **/
|
|
|
+ // -webkit-box-orient: vertical; /** 设置或检索伸缩盒对象的子元素的排列方式 **/
|
|
|
+ // -webkit-line-clamp: 3; /** 显示的行数 **/
|
|
|
+ // }
|
|
|
+ .btn_change {
|
|
|
+ position: absolute;
|
|
|
+ right: 0rpx;
|
|
|
+ bottom: 0rpx;
|
|
|
+ color: #2772fb;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .fleet_member {
|
|
|
+ margin-top: 20rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .fleet_number {
|
|
|
+ margin: 6rpx 10rpx;
|
|
|
+ color: #ABABAB;
|
|
|
+ font-size: 24rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .jt-icon {
|
|
|
+ position: relative;
|
|
|
+ top: 16rpx;
|
|
|
+ width: 60rpx;
|
|
|
+ margin: 0 20rpx;
|
|
|
+ // margin-top: 10rpx;
|
|
|
+
|
|
|
+ }
|
|
|
</style>
|