|
@@ -20,15 +20,15 @@
|
|
|
<view class="row2 flex">
|
|
|
<view class="flex item">
|
|
|
<view class="pf-name">评分</view>
|
|
|
- <view class="pf-number">4.98</view>
|
|
|
+ <view class="pf-number">{{ping.zong}}</view>
|
|
|
</view>
|
|
|
<view class="flex item">
|
|
|
<view class="pf-name">发运次数</view>
|
|
|
- <view class="pf-number">4.98</view>
|
|
|
+ <view class="pf-number">{{driverList.shipmentsNumber?driverList.shipmentsNumber:0}}</view>
|
|
|
</view>
|
|
|
- <view class="flex item">
|
|
|
- <view class="pf-name">评价</view>
|
|
|
- <view class="pf-number">4.98</view>
|
|
|
+ <view v-if='total>=20' class="flex item">
|
|
|
+ <view class="pf-name">好评率</view>
|
|
|
+ <view class="pf-number">{{driverList.favorableRate?driverList.favorableRate:0}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row3 flex">
|
|
@@ -67,10 +67,10 @@
|
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback"
|
|
|
class="mescroll">
|
|
|
<view class="flex flex-space-between">
|
|
|
- <view :class="btnData == '' ? 'btn-active':'btn'" @click="btnChange('')">全部({{list.length}})</view>
|
|
|
+ <view :class="haoType == '' ? 'btn-active':'btn'" @click="btnChange('')">全部({{ping.haoPing+ping.chaPing}}})</view>
|
|
|
<!-- <view :class="btnData == 2 ? 'btn-active':'btn'" @click="btnChange(2)">最新(1)</view> -->
|
|
|
- <view :class="btnData == 1 ? 'btn-active':'btn'" @click="btnChange(1)">好评({{list3.length}})</view>
|
|
|
- <view :class="btnData == 2 ? 'btn-active':'btn'" @click="btnChange(2)">差评({{list4.length}})</view>
|
|
|
+ <view :class="haoType == 1 ? 'btn-active':'btn'" @click="btnChange(1)">好评({{ping.haoPing}})</view>
|
|
|
+ <view :class="haoType == 2 ? 'btn-active':'btn'" @click="btnChange(2)">差评({{ping.chaPing}})</view>
|
|
|
</view>
|
|
|
<view class="evaluate_css" v-for="(item,index) in list">
|
|
|
<view class="flex">
|
|
@@ -85,9 +85,9 @@
|
|
|
{{item.createDate?item.createDate.split(' ')[0]:''}}
|
|
|
</view>
|
|
|
<view class="flex m-top10">
|
|
|
- <view class="branch_css ">{{item.count}}</view>
|
|
|
+ <view class="branch_css ">{{item.driverScoreObtained}}</view>
|
|
|
<view class="">
|
|
|
- <start count="5" v-model="item.count" size="35" activeColor="#ffaa00" :size="18"
|
|
|
+ <start count="5" v-model="item.driverScoreObtained" size="35" activeColor="#ffaa00" :size="18"
|
|
|
:allowHalf='true' :readonly='true'>
|
|
|
</start>
|
|
|
</view>
|
|
@@ -107,13 +107,18 @@
|
|
|
</mescroll-body>
|
|
|
</view>
|
|
|
<view class="row5">
|
|
|
- <view v-if="tabIndex==1&&index==1">
|
|
|
- <view>辽H111111</view>
|
|
|
- <view class="flex align-center">高栏 | 车长20米 | 载重50吨</view>
|
|
|
+ <view class='carMessage' v-if="tabIndex==1&&index==1">
|
|
|
+ <view class='carMessage-item' v-for='(item,index) in hyDriverCarInfoList' :style="{'border-radius':(index!=hyDriverCarInfoList.length-1?'#ccc':'transparent')}">
|
|
|
+ <view v-if='item.carCategory=="挂车"'>{{item.guaCarNumber}}</view>
|
|
|
+ <view v-else>{{item.carNumber}}</view>
|
|
|
+ <view v-if='item.carCategory=="挂车"' class="flex align-center">{{item.carType}} | 车长{{item.guaCarLong}}米 | 载重{{item.guaCarApprovedWeight}}吨</view>
|
|
|
+ <view v-else class="flex align-center">{{item.carType}} | 车长{{item.carLong}}米 | 载重{{item.carApprovedWeight}}吨</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
- <view class="carInfo" v-if="tabIndex==2&index==2">
|
|
|
- <view>
|
|
|
- 累计发运150次,好评率90%
|
|
|
+ <view class="carInfo" v-if="tabIndex==2&index==1">
|
|
|
+ <view style='text-align:center;'>
|
|
|
+ 累计发运{{driverList.shipmentsNumber?driverList.shipmentsNumber:0}}次<text v-if='total>=20'>,好评率{{driverList.favorableRate?driverList.favorableRate:0}}%</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -142,6 +147,7 @@
|
|
|
index: 1,
|
|
|
show: false,
|
|
|
objectInfo: {},
|
|
|
+ haoType:'',
|
|
|
columns: [
|
|
|
['投诉', '举报']
|
|
|
],
|
|
@@ -154,6 +160,9 @@
|
|
|
|
|
|
list3:[],
|
|
|
list4:[],
|
|
|
+ ping:[],
|
|
|
+ hyDriverCarInfoList:[],
|
|
|
+ driverList:{},
|
|
|
total:0
|
|
|
};
|
|
|
},
|
|
@@ -167,10 +176,31 @@
|
|
|
that = this
|
|
|
// this.getList()
|
|
|
},
|
|
|
+ onShow(){
|
|
|
+ var that=this
|
|
|
+
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapState(['hasLogin', 'userInfo', 'firstAuthentication'])
|
|
|
},
|
|
|
methods: {
|
|
|
+ toPhone(){
|
|
|
+ console.log(this.driverList.driverPhone)
|
|
|
+ // uni.makePhoneCall({
|
|
|
+ // phoneNumber: this.driverList.driverPhone
|
|
|
+ // });
|
|
|
+ var that=this
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber: that.driverList.driverPhone,
|
|
|
+ success: (res) => {
|
|
|
+ console.log('调用成功!')
|
|
|
+ },
|
|
|
+ // 失败回调
|
|
|
+ fail: (res) => {
|
|
|
+ console.log('调用失败!')
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
confirmBtn(e) {
|
|
|
console.log(e.value)
|
|
|
if (e.value == '投诉') {
|
|
@@ -195,63 +225,69 @@
|
|
|
},
|
|
|
btnChange(num) {
|
|
|
// debugger
|
|
|
- this.btnData = num
|
|
|
- this.getList()
|
|
|
+ this.haoType = num
|
|
|
+ this.upCallback({size:10,num:1})
|
|
|
+ // this.getList()
|
|
|
},
|
|
|
upCallback(page) {
|
|
|
- that.$request.baseRequest('get', '/evaluateInfo/selectEvaluateInfo', {
|
|
|
- driverId: this.objectInfo.driverId,
|
|
|
- flag: 1,
|
|
|
- pageSize: page.size,
|
|
|
- haoType:1,
|
|
|
- currentPage: page.num
|
|
|
+ var that =this
|
|
|
+ that.$request.baseRequest('get', '/driverInfo/getDriver', {
|
|
|
+ commonId:'2939c4c23ca14e4ab6f16d7a6b3f8d5e'
|
|
|
}).then(res => {
|
|
|
- if (page.num == 1) that.list3 = [];
|
|
|
- that.list3 = that.list3.concat(res.data.records); //追加新数据
|
|
|
- })
|
|
|
- that.$request.baseRequest('get', '/evaluateInfo/selectEvaluateInfo', {
|
|
|
- driverId: this.objectInfo.driverId,
|
|
|
- flag: 1,
|
|
|
- pageSize: page.size,
|
|
|
- haoType:2,
|
|
|
- currentPage: page.num
|
|
|
- }).then(res => {
|
|
|
- if (page.num == 1) that.list4 = [];
|
|
|
- that.list4 = that.list4.concat(res.data.records); //追加新数据
|
|
|
- })
|
|
|
- that.$request.baseRequest('get', '/evaluateInfo/selectEvaluateInfo', {
|
|
|
- driverId: this.objectInfo.driverId,
|
|
|
- flag: 1,
|
|
|
- pageSize: page.size,
|
|
|
- currentPage: page.num
|
|
|
- }).then(res => {
|
|
|
- if (page.num == 1) that.list = [];
|
|
|
- that.list = that.list.concat(res.data.records); //追加新数据
|
|
|
- that.total = res.data.total
|
|
|
- for (let i = 0; i < that.list.length; i++) {
|
|
|
- if (that.list[i].ownerUrl) {
|
|
|
- that.list[i].imgList = that.list[i].ownerUrl.split(',')
|
|
|
+ console.log(res.data)
|
|
|
+ that.driverList=res.data
|
|
|
+ if(res.data.hyDriverCarInfoList){
|
|
|
+ for (var i = 0; i < res.data.hyDriverCarInfoList.length; i++) {
|
|
|
+ res.data.hyDriverCarInfoList[i].carApprovedWeight=res.data.hyDriverCarInfoList[i].carApprovedWeight/1000
|
|
|
+ res.data.hyDriverCarInfoList[i].guaCarApprovedWeight=res.data.hyDriverCarInfoList[i].guaCarApprovedWeight/1000
|
|
|
+ res.data.hyDriverCarInfoList[i].carLong=res.data.hyDriverCarInfoList[i].carLong/1000
|
|
|
+ res.data.hyDriverCarInfoList[i].guaCarLong=res.data.hyDriverCarInfoList[i].guaCarLong/1000
|
|
|
+ res.data.hyDriverCarInfoList[i].carNumber = res.data.hyDriverCarInfoList[i].carNumber.replace(res.data.hyDriverCarInfoList[i].carNumber.substring(2, 6),
|
|
|
+ "****")
|
|
|
+ res.data.hyDriverCarInfoList[i].guaCarNumber = res.data.hyDriverCarInfoList[i].guaCarNumber.replace(res.data.hyDriverCarInfoList[i].guaCarNumber.substring(2, 6),
|
|
|
+ "****")
|
|
|
}
|
|
|
-
|
|
|
- that.list[i].count = (Number(that.list[i].ownerCredit) + Number(that.list[i]
|
|
|
- .tranEfficiency) + Number(that.list[i].freightPayment) + Number(that.list[i]
|
|
|
- .serviceQuality) + Number(that.list[i].comprehensiveSatisfaction)) / 15 * 5
|
|
|
+ that.hyDriverCarInfoList=res.data.hyDriverCarInfoList
|
|
|
}
|
|
|
- that.mescroll.endBySize(res.data.records.length, res.data.total);
|
|
|
- uni.hideLoading()
|
|
|
- })
|
|
|
- .catch(res => {
|
|
|
- uni.$u.toast(res.message);
|
|
|
- });
|
|
|
- that.$request.baseRequest('get', '/orderInfo/selectHaoPing', {
|
|
|
- commonId: this.userInfo.id,
|
|
|
- haoType: ''
|
|
|
- }).then(res => {
|
|
|
+ that.$request.baseRequest('get', '/orderInfo/selectHaoPing', {
|
|
|
+ commonId:that.driverList.commonId,
|
|
|
+ evaluateFlag:1,
|
|
|
|
|
|
+ }).then(res => {
|
|
|
+ that.ping=res.data
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ uni.$u.toast(res.message);
|
|
|
+ });
|
|
|
+ that.$request.baseRequest('get', '/evaluateInfo/selectEvaluateInfo', {
|
|
|
+ evaluatoredId: that.driverList.commonId,
|
|
|
+ flag: 2,
|
|
|
+ haoType:that.haoType,
|
|
|
+ searchType:1,
|
|
|
+
|
|
|
+ pageSize: page.size,
|
|
|
+ currentPage: page.num
|
|
|
+ }).then(res => {
|
|
|
+ if (page.num == 1) that.list = [];
|
|
|
+ that.list = that.list.concat(res.data.records); //追加新数据
|
|
|
+ that.total = res.data.total
|
|
|
+ for (let i = 0; i < that.list.length; i++) {
|
|
|
+ if (that.list[i].ownerUrl) {
|
|
|
+ that.list[i].imgList = that.list[i].ownerUrl.split(',')
|
|
|
+ }
|
|
|
+
|
|
|
+ // that.list[i].count = (Number(that.list[i].ownerCredit) + Number(that.list[i]
|
|
|
+ // .tranEfficiency) + Number(that.list[i].freightPayment) + Number(that.list[i]
|
|
|
+ // .serviceQuality) + Number(that.list[i].comprehensiveSatisfaction)) / 15 * 5
|
|
|
+ }
|
|
|
+ that.mescroll.endBySize(res.data.records.length, res.data.total);
|
|
|
+ uni.hideLoading()
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ uni.$u.toast(res.message);
|
|
|
+ });
|
|
|
})
|
|
|
- .catch(res => {
|
|
|
- uni.$u.toast(res.message);
|
|
|
- });
|
|
|
+
|
|
|
},
|
|
|
// getList() {
|
|
|
|
|
@@ -282,7 +318,12 @@
|
|
|
.content {
|
|
|
height: 100vh;
|
|
|
}
|
|
|
-
|
|
|
+ .carMessage{
|
|
|
+ background:#fff;border-radius: 20rpx;
|
|
|
+ .carMessage-item{
|
|
|
+ padding:40rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
.item3,
|
|
|
.row3 {
|
|
|
background: white;
|