|
@@ -66,7 +66,7 @@
|
|
<view class="flex">
|
|
<view class="flex">
|
|
<view>{{detailData.goodsName}}</view>
|
|
<view>{{detailData.goodsName}}</view>
|
|
<view style='margin: 0 10rpx;'>|</view>
|
|
<view style='margin: 0 10rpx;'>|</view>
|
|
- <view>{{detailData.weight}}吨</view>
|
|
|
|
|
|
+ <view v-if='detailData.weight'>{{detailData.weight}}吨</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -106,10 +106,10 @@
|
|
| {{carWeight}}</view>
|
|
| {{carWeight}}</view>
|
|
<view class="right" v-else>不限</view>
|
|
<view class="right" v-else>不限</view>
|
|
</view>
|
|
</view>
|
|
- <view class="flex mt20">
|
|
|
|
|
|
+ <view class="flex mt20">
|
|
<view class="left">描述</view>
|
|
<view class="left">描述</view>
|
|
<view class="right">
|
|
<view class="right">
|
|
- {{detailData.taskDescription}}
|
|
|
|
|
|
+ {{detailData.taskDescription?detailData.taskDescription:'空'}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -257,8 +257,12 @@
|
|
},
|
|
},
|
|
confirmClick() {
|
|
confirmClick() {
|
|
let item = this.detailData
|
|
let item = this.detailData
|
|
|
|
+ var that=this
|
|
|
|
+ this.$request.baseRequest('get', '/driverInfo/firstAuthentication', {
|
|
|
|
+ driverPhone: this.userInfo.phone,
|
|
|
|
+ }).then(res2 => {
|
|
let _obj = {
|
|
let _obj = {
|
|
- driverCommonId: this.firstAuthentication.commonId,
|
|
|
|
|
|
+ driverCommonId: that.firstAuthentication.commonId,
|
|
commonId: item.commonId,
|
|
commonId: item.commonId,
|
|
id:item.id,
|
|
id:item.id,
|
|
compId:item.compId,
|
|
compId:item.compId,
|
|
@@ -275,14 +279,14 @@
|
|
goodsName: item.goodsName,
|
|
goodsName: item.goodsName,
|
|
distance: item.distance,
|
|
distance: item.distance,
|
|
freightPrice: item.freightPrice,
|
|
freightPrice: item.freightPrice,
|
|
- driverName: this.firstAuthentication.driverName,
|
|
|
|
- driverPhone: this.firstAuthentication.driverPhone,
|
|
|
|
|
|
+ driverName: that.firstAuthentication.driverName,
|
|
|
|
+ driverPhone: that.firstAuthentication.driverPhone,
|
|
cargoOwnerPhone: item.cargoOwnerPhone
|
|
cargoOwnerPhone: item.cargoOwnerPhone
|
|
}
|
|
}
|
|
|
|
|
|
- this.$request.baseRequest('post', '/publishTaskInfo/api/addOrder', _obj).then(res => {
|
|
|
|
|
|
+ that.$request.baseRequest('post', '/publishTaskInfo/api/addOrder', _obj).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
- this.$refs.uToast.show({
|
|
|
|
|
|
+ that.$refs.uToast.show({
|
|
type: 'success',
|
|
type: 'success',
|
|
message: "抢单成功!",
|
|
message: "抢单成功!",
|
|
complete() {
|
|
complete() {
|
|
@@ -299,6 +303,9 @@
|
|
.catch(res => {
|
|
.catch(res => {
|
|
uni.$u.toast(res.message);
|
|
uni.$u.toast(res.message);
|
|
});
|
|
});
|
|
|
|
+ }).catch(res => {
|
|
|
|
+ uni.$u.toast(res.message);
|
|
|
|
+ });
|
|
this.isShowAlert = false
|
|
this.isShowAlert = false
|
|
},
|
|
},
|
|
cancelClick() {
|
|
cancelClick() {
|