Commit ce08d7f5 authored by Mac's avatar Mac

订单详情

parent 1607eab2
<template>
<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="row">
<u-icon name="location" :size="32" color="#EE4454"></u-icon>
......
......@@ -51,7 +51,7 @@
<h-parse :content="detailContent" @navigate="clickDescription"></h-parse>
</view>
</view>
<view class="guide" v-if='type==2'>
<view class="guide" v-if='type==2&& loading==true'>
<view class="u-skeleton-rect">
<swiper
indicator-dots
......@@ -121,6 +121,7 @@ export default {
},
data() {
return {
loading:false,
mainColor: "",
activeStyle: "",
pageTitle: "导游详情",
......@@ -176,8 +177,10 @@ export default {
},
methods: {
getGuideCarGuideModel(){//根据导游id获取导游信息
getGuideCarGuideModel(){//根据导游id获取导游信息
uni.showLoading({
title: "加载中",
});
this.request2(
{
url: '/api/AppletGuideCar/GetGuideCarGuideModel',
......@@ -188,13 +191,17 @@ getGuideCarGuideModel(){//根据导游id获取导游信息
},
(res) => {
this.guideModel = res.data;
uni.hideLoading();
// this.loading=true
}
);
},
getGuideCarModel(){
uni.showLoading({
title: "加载中",
});
this.request2(
{
url: '/api/AppletGuideCar/GetGuideCarModel',
......@@ -210,6 +217,8 @@ getGuideCarModel(){
this.guidecar = x
}
})
uni.hideLoading();
this.loading=true
}
);
},
......
......@@ -35,7 +35,7 @@
.orderDetail .order_carImg image {
width: 200rpx;
height: 200rpx;
height: 130rpx;
}
.orderDetail .order_small {
......@@ -137,7 +137,16 @@
<view style="width:55%">
<view class="order_big">{{dataList.DetailList[0].CarName}}</view>
<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 style="text-align: right;">
......
......@@ -36,7 +36,7 @@
.order_carImg image {
width: 200rpx;
height: 200rpx;
height: 130rpx;
}
.order_middle {
......@@ -48,7 +48,12 @@
.order_carName {
font-size: 15px;
font-weight: bold;
margin-bottom: 9px;
margin-bottom: 5px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-weight: bold;
width: 100%;
}
.order_guidIndfo {
......@@ -114,7 +119,7 @@
</view>
<view class="order_middle">
<view class="order_carName">{{item.DetailList[0].GoodsName}}</view>
<view style="margin-bottom:9px;">
<view style="margin-bottom:5px;">
{{item.DetailList[0].TripSTime}}
</view>
<view>
......
......@@ -99,7 +99,12 @@
this.selectedData = data;
this.STime = this.getTime(data+' '+this.qutime)
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);
let year = myDate.getFullYear(); //年
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