3.7(优化
This commit is contained in:
@@ -162,7 +162,7 @@ export function getInformationOrderList(data) {
|
||||
//租车订单详情 api/front/car/information/order/info/{id}
|
||||
export function getInformationOrderDealer(id) {
|
||||
return request({
|
||||
url: `/api/front/car/information/order/info/${id}`,
|
||||
url: `/api/front/car/information/user/order/info/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
formData: {}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
//查看
|
||||
examineFn(arr,index){
|
||||
@@ -91,13 +92,13 @@
|
||||
// console.log(options);
|
||||
getProductOrderInfo(options.id).then(res => {
|
||||
this.formData = res.data
|
||||
console.log(this.formData.giveImage);
|
||||
// console.log(this.formData.giveImage);
|
||||
if (res.data.giveImage) {
|
||||
this.formData.giveImage = res.data.giveImage.split(',')
|
||||
} else {
|
||||
this.formData.giveImage = []
|
||||
}
|
||||
console.log(this.formData.giveImage);
|
||||
// console.log(this.formData.giveImage);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,6 +81,11 @@
|
||||
dataList: [],
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
if(this.$refs.paging){
|
||||
this.$refs.paging.refresh();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//提车
|
||||
navCarSubmitFn(item) {
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
{
|
||||
text: '订单消息',
|
||||
img: 'https://qicheoss.oss-cn-shanghai.aliyuncs.com/static/images/app/serve/m_two.png',
|
||||
url: '/pages/driver/serve/message/m_order_mess',
|
||||
url: '/pages/driver/serve/message/m_order_mess?type=1',
|
||||
type: 'likeUnReadNum',
|
||||
unReadCount: 0
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</view>
|
||||
<view class="flex flex-column justify-around" style="text-align: end;">
|
||||
<view class="f-28 red">已瓜分现金</view>
|
||||
<view class="f-28 c333 fw-b">¥{{item.userDailyCheckIn.number}}</view>
|
||||
<view class="f-28 c333 fw-b">¥{{item.userDailyCheckIn?item.userDailyCheckIn.number:0}}</view>
|
||||
<view class="f-24 c999">(已存入余额)</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -35,6 +35,7 @@
|
||||
pageSize: pageSize,
|
||||
type: 4
|
||||
}).then(res => {
|
||||
console.log(res.data.list);
|
||||
this.$refs.paging.complete(res.data.list);
|
||||
})
|
||||
}
|
||||
|
||||
@@ -45,8 +45,11 @@
|
||||
<image :src="informationData.image" mode=""></image>
|
||||
<view class="car-rental-cont">
|
||||
<view class="car-rental-cont-name">{{informationData.title}}</view>
|
||||
<view class="car-rental-cont-auto-age">车龄 {{informationData.carAge}}年 | 租期 {{informationData.monthRent}}个月</view>
|
||||
<view class="car-rental-cont-price">{{informationData.price}}<text class="car-rental-cont-price-tit">元/月</text>
|
||||
<view class="car-rental-cont-auto-age">车龄 {{informationData.carAge}}年 | 租期
|
||||
{{informationData.monthRent}}个月
|
||||
</view>
|
||||
<view class="car-rental-cont-price">{{informationData.price}}<text
|
||||
class="car-rental-cont-price-tit">元/月</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -90,13 +93,13 @@
|
||||
data() {
|
||||
return {
|
||||
cardData: {
|
||||
title:''
|
||||
title: ''
|
||||
},
|
||||
informationData:{
|
||||
title:""
|
||||
informationData: {
|
||||
title: ""
|
||||
},
|
||||
productData:{
|
||||
title:''
|
||||
productData: {
|
||||
title: ''
|
||||
}
|
||||
};
|
||||
},
|
||||
@@ -107,21 +110,25 @@
|
||||
onShow() {
|
||||
//租车订单
|
||||
getInformationOrderList({
|
||||
page:1,
|
||||
limit:1,
|
||||
type:-1
|
||||
page: 1,
|
||||
limit: 1,
|
||||
type: -1
|
||||
}).then(res => {
|
||||
console.log(res.data);
|
||||
this.informationData=res.data.list[0]
|
||||
if (res.data.list.length) {
|
||||
console.log(res.data);
|
||||
this.informationData = res.data.list[0]
|
||||
}
|
||||
})
|
||||
//买车订单
|
||||
getProductOrderList({
|
||||
page:1,
|
||||
limit:1,
|
||||
type:-1
|
||||
page: 1,
|
||||
limit: 1,
|
||||
type: -1
|
||||
}).then(res => {
|
||||
console.log(res.data);
|
||||
this.productData=res.data.list[0]
|
||||
if (res.data.list.length) {
|
||||
this.productData = res.data.list[0]
|
||||
}
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -135,9 +135,10 @@
|
||||
onLoad(options) {
|
||||
console.log(options,'11111');
|
||||
this.orderId = options.id
|
||||
getInformationOrderDealer(options.id).then(res => {
|
||||
this.orderData = res.data
|
||||
})
|
||||
this.getInformationOrderDealerFn()
|
||||
// getInformationOrderDealer(options.id).then(res => {
|
||||
// this.orderData = res.data
|
||||
// })
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
data() {
|
||||
return {
|
||||
orderList: [],
|
||||
//2:车商
|
||||
//2:车商 1:用户
|
||||
userType: 1
|
||||
}
|
||||
},
|
||||
|
||||
@@ -153,13 +153,14 @@
|
||||
sureBtn(){
|
||||
if(this.whoBtn==1){
|
||||
uni.navigateTo({
|
||||
url: "/pages/serve/repair/realname",
|
||||
url: "/pages/driver/serve/repair/realname",
|
||||
});
|
||||
}if(this.whoBtn==2){
|
||||
uni.navigateTo({
|
||||
url: "/pages/serve/repair/re_binding",
|
||||
url: "/pages/driver/serve/repair/re_binding",
|
||||
});
|
||||
}if(this.whoBtn==3){
|
||||
|
||||
}
|
||||
},
|
||||
cancel(){
|
||||
|
||||
@@ -54,11 +54,11 @@
|
||||
input-align="right"></u-input>
|
||||
</u-form-item>
|
||||
<u-form-item border-bottom label-width="80" label="身份证号">
|
||||
<u-input border="none" v-model="formProductData.idCard" placeholder="请输入身份证号"
|
||||
<u-input border="none" maxlength="18" v-model="formProductData.idCard" placeholder="请输入身份证号"
|
||||
input-align="right"></u-input>
|
||||
</u-form-item>
|
||||
<u-form-item border-bottom label-width="80" label="手机号码">
|
||||
<u-input border="none" v-model="formProductData.phone" placeholder="请输入手机号码"
|
||||
<u-input border="none" maxlength="11" v-model="formProductData.phone" placeholder="请输入手机号码"
|
||||
input-align="right"></u-input>
|
||||
</u-form-item>
|
||||
</view>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<view class="nav-city flex align-center justify-between"
|
||||
@click="$tab.navigateTo('/pages/driver/serve/repair/re_create/select_city')">
|
||||
<u-icon name="map" :color="showNavImg && '#111' || '#fff'" size="14"></u-icon>
|
||||
<text style="z-index: 99999;">{{citySave}}</text>
|
||||
<text style="z-index: 99999;">{{citySave?citySave:'地址'}}</text>
|
||||
<u-icon name="arrow-right" :color="showNavImg && '#111' || '#fff'" size="10"></u-icon>
|
||||
</view>
|
||||
<view class="nav-msg flex-center rel" @click="toMessagePages">
|
||||
|
||||
@@ -46,7 +46,6 @@ export function getLocationFn() {
|
||||
longitude: res.longitude
|
||||
},
|
||||
success: res1 => {
|
||||
console.log(res1.result.address_component.city);
|
||||
store.dispatch('SetCity', res1.result.address_component.city)
|
||||
},
|
||||
fail: res => {},
|
||||
|
||||
Reference in New Issue
Block a user