Commit ce08d7f5 authored by Mac's avatar Mac

订单详情

parent 1607eab2
<template> <template>
<view class="guidecarOrderdetails" :style="{'height':contentHeight}" > <view class="guidecarOrderdetails" :style="{'height':contentHeight}" >
<view class="u-skeleton" v-if="isExsitGoods" style="background: #FFF;"> <view class="u-skeleton" v-if="isExsitGoods">
<view class="g_top"> <view class="g_top">
<view class="row"> <view class="row">
<u-icon name="location" :size="32" color="#EE4454"></u-icon> <u-icon name="location" :size="32" color="#EE4454"></u-icon>
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<h-parse :content="detailContent" @navigate="clickDescription"></h-parse> <h-parse :content="detailContent" @navigate="clickDescription"></h-parse>
</view> </view>
</view> </view>
<view class="guide" v-if='type==2'> <view class="guide" v-if='type==2&& loading==true'>
<view class="u-skeleton-rect"> <view class="u-skeleton-rect">
<swiper <swiper
indicator-dots indicator-dots
...@@ -121,6 +121,7 @@ export default { ...@@ -121,6 +121,7 @@ export default {
}, },
data() { data() {
return { return {
loading:false,
mainColor: "", mainColor: "",
activeStyle: "", activeStyle: "",
pageTitle: "导游详情", pageTitle: "导游详情",
...@@ -176,8 +177,10 @@ export default { ...@@ -176,8 +177,10 @@ export default {
}, },
methods: { methods: {
getGuideCarGuideModel(){//根据导游id获取导游信息 getGuideCarGuideModel(){//根据导游id获取导游信息
uni.showLoading({
title: "加载中",
});
this.request2( this.request2(
{ {
url: '/api/AppletGuideCar/GetGuideCarGuideModel', url: '/api/AppletGuideCar/GetGuideCarGuideModel',
...@@ -188,13 +191,17 @@ getGuideCarGuideModel(){//根据导游id获取导游信息 ...@@ -188,13 +191,17 @@ getGuideCarGuideModel(){//根据导游id获取导游信息
}, },
(res) => { (res) => {
this.guideModel = res.data; this.guideModel = res.data;
uni.hideLoading();
// this.loading=true
} }
); );
}, },
getGuideCarModel(){ getGuideCarModel(){
uni.showLoading({
title: "加载中",
});
this.request2( this.request2(
{ {
url: '/api/AppletGuideCar/GetGuideCarModel', url: '/api/AppletGuideCar/GetGuideCarModel',
...@@ -210,6 +217,8 @@ getGuideCarModel(){ ...@@ -210,6 +217,8 @@ getGuideCarModel(){
this.guidecar = x this.guidecar = x
} }
}) })
uni.hideLoading();
this.loading=true
} }
); );
}, },
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
.orderDetail .order_carImg image { .orderDetail .order_carImg image {
width: 200rpx; width: 200rpx;
height: 200rpx; height: 130rpx;
} }
.orderDetail .order_small { .orderDetail .order_small {
...@@ -137,7 +137,16 @@ ...@@ -137,7 +137,16 @@
<view style="width:55%"> <view style="width:55%">
<view class="order_big">{{dataList.DetailList[0].CarName}}</view> <view class="order_big">{{dataList.DetailList[0].CarName}}</view>
<view class="order_small" style="margin-top:5px;"> <view class="order_small" style="margin-top:5px;">
{{dataList.DetailList[0].GoodsName}} {{dataList.DetailList[0].UseDay==0.5?'半':dataList.DetailList[0].UseDay}}天,
{{dataList.DetailList[0].GoodsName}},
{{dataList.DetailList[0].GuideCarType}},
{{dataList.DetailList[0].RideNum}}座,
</view>
<view class="order_small" style="margin-top:5px;">
车牌号:{{dataList.DetailList[0].CarNumber}},
{{dataList.DetailList[0].IsSpell==1?'拼座':'不拼座'}},
</view> </view>
</view> </view>
<view style="text-align: right;"> <view style="text-align: right;">
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
.order_carImg image { .order_carImg image {
width: 200rpx; width: 200rpx;
height: 200rpx; height: 130rpx;
} }
.order_middle { .order_middle {
...@@ -48,7 +48,12 @@ ...@@ -48,7 +48,12 @@
.order_carName { .order_carName {
font-size: 15px; font-size: 15px;
font-weight: bold; font-weight: bold;
margin-bottom: 9px; margin-bottom: 5px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-weight: bold;
width: 100%;
} }
.order_guidIndfo { .order_guidIndfo {
...@@ -114,7 +119,7 @@ ...@@ -114,7 +119,7 @@
</view> </view>
<view class="order_middle"> <view class="order_middle">
<view class="order_carName">{{item.DetailList[0].GoodsName}}</view> <view class="order_carName">{{item.DetailList[0].GoodsName}}</view>
<view style="margin-bottom:9px;"> <view style="margin-bottom:5px;">
{{item.DetailList[0].TripSTime}} {{item.DetailList[0].TripSTime}}
</view> </view>
<view> <view>
......
...@@ -99,7 +99,12 @@ ...@@ -99,7 +99,12 @@
this.selectedData = data; this.selectedData = data;
this.STime = this.getTime(data+' '+this.qutime) this.STime = this.getTime(data+' '+this.qutime)
let myDate = new Date(data); let myDate = new Date(data);
myDate=myDate.setDate(myDate.getDate()+(Number(this.use_day)-1)); if(this.use_day==0.5){
this.STime = this.getTime(data+' '+this.stilltime)
}else{
myDate=myDate.setDate(myDate.getDate()+(Number(this.use_day)-1));
}
myDate=new Date(myDate); myDate=new Date(myDate);
let year = myDate.getFullYear(); //年 let year = myDate.getFullYear(); //年
let month = myDate.getMonth() + 1; //月 let month = myDate.getMonth() + 1; //月
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment