|
@@ -24,10 +24,10 @@
|
|
|
<view class="content1">
|
|
|
<view class="row1 flex flex-space-between">
|
|
|
<view class="left flex">
|
|
|
- <u--image
|
|
|
+ <u-image
|
|
|
:src="detailData.cargoOwnerPortrait?detailData.cargoOwnerPortrait:'../../static/images/mine/tx.png'"
|
|
|
width='122rpx' height='122rpx' shape="circle">
|
|
|
- </u--image>
|
|
|
+ </u-image>
|
|
|
<view class="fontsize-46 ml20">{{detailData.cargoOwnerCall}}</view>
|
|
|
</view>
|
|
|
<view class="right">
|
|
@@ -124,11 +124,11 @@
|
|
|
<view class="left">车型</view>
|
|
|
<!-- carModel -->
|
|
|
<view class="right">
|
|
|
- <text v-if="detailData.carModel.indexOf('1') != -1">不限</text>
|
|
|
+ <text>{{this.carModel}}</text>
|
|
|
+ <!-- <text v-show="detailData.carModel.indexOf('1') != -1">不限</text>
|
|
|
<text v-show="detailData.carModel.indexOf('2') != -1">高栏 | </text>
|
|
|
<text v-show="detailData.carModel.indexOf('3') != -1">集装箱 | </text>
|
|
|
- <text v-show="detailData.carModel.indexOf('4') != -1">自卸车</text>
|
|
|
-
|
|
|
+ <text v-show="detailData.carModel.indexOf('4') != -1">自卸车</text> -->
|
|
|
</view>
|
|
|
<!-- <view class="right" v-else>不限</view> -->
|
|
|
</view>
|
|
@@ -176,6 +176,7 @@
|
|
|
src: 'https://cdn.uviewui.com/uview/album/1.jpg',
|
|
|
id: '',
|
|
|
detailData: {},
|
|
|
+ carModel:""
|
|
|
};
|
|
|
},
|
|
|
onLoad(options) {
|
|
@@ -198,6 +199,23 @@
|
|
|
console.log(length)
|
|
|
return length
|
|
|
},
|
|
|
+
|
|
|
+ carWeight() {
|
|
|
+ this.detailData.loadWeightSmall
|
|
|
+ this.detailData.loadWeight
|
|
|
+ let weight = ''
|
|
|
+ if (this.detailData.loadWeightSmall && this.detailData.loadWeight) {
|
|
|
+ weight = this.detailData.loadWeightSmall + '~' + this.detailData.loadWeight + '吨'
|
|
|
+ } else if (this.detailData.loadWeightSmall) {
|
|
|
+ weight = "大于" + this.detailData.loadWeightSmall + '吨'
|
|
|
+ } else if (this.detailData.loadWeight) {
|
|
|
+ weight = "小于" + this.detailData.loadWeight + '吨'
|
|
|
+ }
|
|
|
+ console.log(weight)
|
|
|
+ return weight
|
|
|
+ },
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
carType() {
|
|
|
let _val = '';
|
|
|
if (!this.detailData.carModel) this.detailData.carModel = ''
|
|
@@ -215,24 +233,8 @@
|
|
|
}
|
|
|
}
|
|
|
console.log(_val)
|
|
|
- return _val
|
|
|
+ this.carModel = _val
|
|
|
},
|
|
|
- carWeight() {
|
|
|
- this.detailData.loadWeightSmall
|
|
|
- this.detailData.loadWeight
|
|
|
- let weight = ''
|
|
|
- if (this.detailData.loadWeightSmall && this.detailData.loadWeight) {
|
|
|
- weight = this.detailData.loadWeightSmall + '~' + this.detailData.loadWeight + '吨'
|
|
|
- } else if (this.detailData.loadWeightSmall) {
|
|
|
- weight = "大于" + this.detailData.loadWeightSmall + '吨'
|
|
|
- } else if (this.detailData.loadWeight) {
|
|
|
- weight = "小于" + this.detailData.loadWeight + '吨'
|
|
|
- }
|
|
|
- console.log(weight)
|
|
|
- return weight
|
|
|
- },
|
|
|
- },
|
|
|
- methods: {
|
|
|
share() {
|
|
|
console.log('share')
|
|
|
},
|
|
@@ -249,14 +251,15 @@
|
|
|
// uni.$u.toast(res.message);
|
|
|
// });
|
|
|
},
|
|
|
- async init() {
|
|
|
- await this.$request.baseRequest('get', '/publishTaskInfo/seeTask', {
|
|
|
+ init() {
|
|
|
+ this.$request.baseRequest('get', '/publishTaskInfo/seeTask', {
|
|
|
id: this.id,
|
|
|
// id: '8f1f3c624d7946d79a9d44a4057d9623',
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.detailData = res.data
|
|
|
- }
|
|
|
+ this.detailData = res.data
|
|
|
+ this.carType()
|
|
|
+ }
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|