|
@@ -2,12 +2,12 @@
|
|
<template>
|
|
<template>
|
|
<view class="center">
|
|
<view class="center">
|
|
<view class="fleetInfo">
|
|
<view class="fleetInfo">
|
|
- <view class="fleetInfo_name" v-if="fleetInfo.name">{{fleetInfo.name}}({{fleetInfo.phone}})</view>
|
|
|
|
|
|
+ <view class="fleetInfo_name" v-if="fleetInfo.carCaptainName">{{fleetInfo.carCaptainName}}({{fleetInfo.carCaptainAccountNumber}})</view>
|
|
<view class="fleetInfo_name" v-else>队长名称</view>
|
|
<view class="fleetInfo_name" v-else>队长名称</view>
|
|
<view class="fleetInfo_phone">{{fleetInfo.status?fleetInfo.status:"未绑定"}}</view>
|
|
<view class="fleetInfo_phone">{{fleetInfo.status?fleetInfo.status:"未绑定"}}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="btn_css">
|
|
|
|
- <view class="btn_item" v-if="!fleetInfo.name">
|
|
|
|
|
|
+ <view class="btn_css" v-if="fleetInfo.status != '待确认'">
|
|
|
|
+ <view class="btn_item" v-if="!fleetInfo||fleetInfo.status=='已拒绝'">
|
|
<u-button type="primary" text="去绑定" @click="operation"></u-button>
|
|
<u-button type="primary" text="去绑定" @click="operation"></u-button>
|
|
</view>
|
|
</view>
|
|
<view class="btn_item" v-else>
|
|
<view class="btn_item" v-else>
|
|
@@ -15,6 +15,9 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="red_char">
|
|
|
|
+ 注:绑定车队长后,运费将自动结算到车队长账户,不再对司机结算,如需对司机本人结算请先解绑车队长。
|
|
|
|
+ </view>
|
|
<u-toast ref="uToast"></u-toast>
|
|
<u-toast ref="uToast"></u-toast>
|
|
<u-modal :show="tipsShow" :title="alertTitle" :closeOnClickOverlay='true' :showCancelButton='true'
|
|
<u-modal :show="tipsShow" :title="alertTitle" :closeOnClickOverlay='true' :showCancelButton='true'
|
|
confirmColor='#2772FB' @confirm="$u.throttle(confirmClick, 5000)" @close="cancelClick" @cancel="cancelClick"></u-modal>
|
|
confirmColor='#2772FB' @confirm="$u.throttle(confirmClick, 5000)" @close="cancelClick" @cancel="cancelClick"></u-modal>
|
|
@@ -56,23 +59,20 @@
|
|
this.tipsShow = false
|
|
this.tipsShow = false
|
|
},
|
|
},
|
|
confirmClick(){
|
|
confirmClick(){
|
|
|
|
+ let that = this
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
mask: true,
|
|
mask: true,
|
|
title: '加载中'
|
|
title: '加载中'
|
|
})
|
|
})
|
|
this.tipsShow = false
|
|
this.tipsShow = false
|
|
- this.$request.baseRequest('post', '', this.dataDetails).then(res => {
|
|
|
|
|
|
+ this.$request.baseRequest('post', '/hyBindCarCaptainInfo/api/unbinding', {id:this.fleetInfo.id}).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
|
+ that.getInfo()
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'success',
|
|
type: 'success',
|
|
message: "解绑成功!",
|
|
message: "解绑成功!",
|
|
- complete() {
|
|
|
|
- // uni.navigateBack({
|
|
|
|
- // delta: 1
|
|
|
|
- // });
|
|
|
|
- this.getInfo()
|
|
|
|
- }
|
|
|
|
|
|
+ complete() {}
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
@@ -88,7 +88,6 @@
|
|
this.$request.baseRequest('get', '/hyBindCarCaptainInfo/getBindCarCaptain', {
|
|
this.$request.baseRequest('get', '/hyBindCarCaptainInfo/getBindCarCaptain', {
|
|
commonId:this.userInfo.id
|
|
commonId:this.userInfo.id
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- debugger
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
if(res.data){
|
|
if(res.data){
|
|
this.fleetInfo = res.data
|
|
this.fleetInfo = res.data
|
|
@@ -131,4 +130,9 @@
|
|
margin-right: 20rpx;
|
|
margin-right: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .red_char{
|
|
|
|
+ color: #f05458;
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
+ margin-top: 30rpx;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|