Commit bfc6125f authored by 罗超's avatar 罗超

临时提交线路详情

parent 7a8d3734
......@@ -61,8 +61,8 @@
]" :style="{ width: (dayWidth - 10) / 7 + 'px',borderRadius:line == end[0] && index == end[1]?'0px 6px 6px 0px':'',backgroundColor:line == end[0] && index == end[1]?'#111':'',color:line == end[0] && index == end[1]?'#FFFFFF':''}">
<view style="padding-top:2px;padding-bottom:2px;">{{ item }}</view>
<view class="select-style" v-if="line == start[0] && index == start[1]">最早</view>
<view class="select-style" v-if="line == end[0] && index == end[1]">最晚</view>
<!-- <view class="select-style" v-if="line == start[0] && index == start[1]">最早</view>
<view class="select-style" v-if="line == end[0] && index == end[1]">最晚</view> -->
<view style="font-size:12px;padding-bottom: 3px;" v-if="priceStauts.length > 0">
<view v-if="priceStauts[line][index]>0">{{ priceStauts[line][index] }}</view>
<view v-if="priceStauts[line][index] <0">无房</view>
......@@ -166,7 +166,7 @@
this.dayWidth = res.windowWidth;
}
});
this.priceStauts=this.initPrice()
this.setDate();
var dateTime=new Date();
dateTime=dateTime.setDate(dateTime.getDate()+1);
......@@ -192,7 +192,8 @@
})
this.priceStauts=this.initPrice()
console.log(this.priceStauts,this.priceList)
//如果需要日期的价格,-1为无房,其他价格代表正常
// if (option && option.request) {
// uni.request({
......@@ -297,13 +298,18 @@
var days = [];
var week = 0;
for (var j = 0; j < new Date(year, month + 1, 0).getDate(); j++) {
let isexsit=false
this.priceList.forEach(x=>{
if(x.startDate==`${year}-${month+1}-${j+1}`){
let m=(month+1)>9?(month+1):"0"+(month+1)
let d=(j+1)>9?(j+1):"0"+(j+1)
if(x.startDate==`${year}-${m}-${d}`){
isexsit=true
days.push(x.b2BPrice)
}else{
days.push(0)
}
})
if(!isexsit){
days.push(0)
}
}
data.push(days)
if (month == 11) {
......@@ -314,7 +320,7 @@
}
}
return this.date;
return data;
},
//月份补零
setMonth(dateIndex) {
......@@ -673,7 +679,7 @@
/* 入住离开时间的color */
.bg-orange {
background: #111111 !important;
border-radius: 6px 0px 0px 6px !important;
border-radius: 6px !important;
}
......
......@@ -279,7 +279,7 @@
</view>
</view>
<u-popup v-model="showDateChosen" mode="bottom" border-radius="20" length="90%" :safe-area-inset-bottom="true">
<canlendar @finish="chosenDateResult"></canlendar>
<canlendar @finish="chosenDateResult" :priceList="dataList.priceList"></canlendar>
</u-popup>
</scroll-view>
</template>
......
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