Commit 022c8cac authored by zhengke's avatar zhengke

修改

parent 42997b7c
......@@ -98,12 +98,12 @@
<view class="date-box flex" @click="showTimePopup=true">
<view class="date">
<text>{{roomMsg.StartDate}}</text>
<text class="date-week">{{searchObj.date.startWeek}}</text>
<text class="date-week">{{startWeek}}</text>
</view>
<view class="hr-line"></view>
<view class="date">
<text>{{roomMsg.EndDate}}</text>
<text class="date-week">{{searchObj.date.endWeek}}</text>
<text class="date-week">{{endWeek}}</text>
</view>
<view class="ver-line"></view>
<view class="date">
......@@ -221,6 +221,8 @@
StartDate:'',
EndDate:''
},
startWeek:'',
endWeek:'',
day:0,
threeLevelList: [{
name: "单人床",
......@@ -285,7 +287,8 @@
this.roomMsg.StartDate = tempDay.StartDate;
this.roomMsg.EndDate = tempDay.EndDate;
this.day = tempDay.day;
console.log(options.dayObj);
this.startWeek = tempDay.startWeek;
this.endWeek = tempDay.endWeek;
}
},
methods: {
......@@ -315,8 +318,15 @@
url: "/pages/hotel/description"
})
},
//返回周几
getWeek(date){
console.log(date,'date');
var weekArray = new Array("日", "一", "二", "三", "四", "五", "六");
var week = weekArray[new Date(date).getDay()];//注意此处必须是先new一个Date
return '周'+week;
},
chosenDateResult(obj) {
console.log(obj,'objjjj');
obj.startDay = this.formatMonthDay(obj.startDay)
obj.endDay = this.formatMonthDay(obj.endDay)
this.searchObj.date = obj
......
......@@ -226,11 +226,14 @@
this.getList(1);
},
chosenDateResult(obj) {
console.log(obj,'obj');
this.searchObj.QStartDate = obj.start;
this.searchObj.QEndDate = obj.end;
this.startDay = obj.startDay;
this.endDay = obj.endDay;
this.day = obj.day;
this.dayObj.startWeek = obj.startWeek;
this.dayObj.endWeek = obj.endWeek;
this.getList(1);
this.showTimePopup = false
},
......
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