Commit a67cb584 by liang ce

修复bug

parent 2dc2e872
page {
font-family: PingFangSC-Regular;
background: #F6F6F6;
}
picker-view {
background: #F6F6F6;
}
\ No newline at end of file
...@@ -14,5 +14,8 @@ ...@@ -14,5 +14,8 @@
"pages/participantsDetail/participantsDetail", "pages/participantsDetail/participantsDetail",
"pages/editFile/editFile", "pages/editFile/editFile",
"pages/createOrEditSchedule/createOrEditSchedule" "pages/createOrEditSchedule/createOrEditSchedule"
] ],
"window": {
"titleBarColor": "#FFFFFF"
}
} }
...@@ -28,7 +28,8 @@ create.Page({ ...@@ -28,7 +28,8 @@ create.Page({
requireUsersInfo: [], requireUsersInfo: [],
organizer: '', organizer: '',
isRepeat: '', isRepeat: '',
permissions: '' permissions: '',
showPage: false
}, },
onLoad(event) { onLoad(event) {
let index = new Date().getDay() let index = new Date().getDay()
...@@ -45,9 +46,6 @@ create.Page({ ...@@ -45,9 +46,6 @@ create.Page({
this.store.data.locationName = '' this.store.data.locationName = ''
this.store.data.participatorUserId = [getApp().globalData.userid] this.store.data.participatorUserId = [getApp().globalData.userid]
this.update() this.update()
dd.setNavigationBar({
title: '创建会议'
})
var date = new Date(); var date = new Date();
var y = date.getFullYear(); var y = date.getFullYear();
var m = (date.getMonth() + 1) < 10 ? "0" + (date.getMonth() + 1) : (date.getMonth() + 1);//获取当前月份的日期,不足10补0 var m = (date.getMonth() + 1) < 10 ? "0" + (date.getMonth() + 1) : (date.getMonth() + 1);//获取当前月份的日期,不足10补0
...@@ -78,12 +76,18 @@ create.Page({ ...@@ -78,12 +76,18 @@ create.Page({
this.getScheduleInfo() this.getScheduleInfo()
this.update() this.update()
} else { } else {
dd.setNavigationBar({
title: '创建会议'
})
this.store.data.startTime = this.data.time1 this.store.data.startTime = this.data.time1
this.store.data.endTime = this.data.time2 this.store.data.endTime = this.data.time2
this.store.data.week1 = this.data.week1 this.store.data.week1 = this.data.week1
this.store.data.week2 = this.data.week2 this.store.data.week2 = this.data.week2
this.store.data.aheadTimes = [15] this.store.data.aheadTimes = [15]
this.update() this.update()
this.setData({
showPage: true
})
} }
}, },
onShow() { onShow() {
...@@ -448,7 +452,8 @@ create.Page({ ...@@ -448,7 +452,8 @@ create.Page({
time1: res.data.data.startTime.replace(/-/g, '/'), time1: res.data.data.startTime.replace(/-/g, '/'),
time2: res.data.data.endTime.replace(/-/g, '/'), time2: res.data.data.endTime.replace(/-/g, '/'),
week1: this.data.weekList[new Date(res.data.data.startTime.replace(/-/g, "/")).getDay()], week1: this.data.weekList[new Date(res.data.data.startTime.replace(/-/g, "/")).getDay()],
week2: this.data.weekList[new Date(res.data.data.endTime.replace(/-/g, "/")).getDay()] week2: this.data.weekList[new Date(res.data.data.endTime.replace(/-/g, "/")).getDay()],
showPage: true
}) })
this.update() this.update()
this.conflict() this.conflict()
......
<!-- <mw-select></mw-select> --> <!-- <mw-select></mw-select> -->
版本号:106版 版本号:106版
<scroll-view a:if="{{todayStr !== ''}}" scroll-y="{{true}}" upper-threshold="50" lower-threshold="50" onScrollToLower="lower" style="height: 100vh;" scroll-into-view="{{todayStr}}"> <scroll-view a:if="{{todayStr !== ''}}" scroll-y="{{true}}" upper-threshold="50" lower-threshold="50" onScrollToLower="lower" onScroll="onScroll" style="height: 100vh;" scroll-into-view="{{todayStr}}">
<block a:for="{{scheduleList}}" a:for-item="scheduleYearList"> <block a:for="{{scheduleList}}" a:for-item="scheduleYearList">
<block a:for="{{scheduleYearList}}"> <block a:for="{{scheduleYearList}}">
<block a:if="{{item.type == 'year'}}"> <block a:if="{{item.type == 'year'}}">
......
...@@ -13,6 +13,11 @@ Page({ ...@@ -13,6 +13,11 @@ Page({
}, },
onReady() { onReady() {
}, },
onScroll() {
this.setData({
todayStr: '00000'
})
},
onShow() { onShow() {
// 页面显示 // 页面显示
let data = { let data = {
...@@ -31,8 +36,9 @@ Page({ ...@@ -31,8 +36,9 @@ Page({
scheduleList.push(that.returnScheduleList(2019 + i)) scheduleList.push(that.returnScheduleList(2019 + i))
} }
const today = new Date() const today = new Date()
const finalDate = new Date(today) const finalDate = new Date(today)
finalDate.setDate(today.getDate() - today.getDay()) finalDate.setDate(today.getDate() - today.getDay())
console.log(finalDate.toLocaleDateString())
that.setData({ that.setData({
scheduleList: scheduleList, scheduleList: scheduleList,
todayStr: finalDate.toLocaleDateString(), todayStr: finalDate.toLocaleDateString(),
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
box-sizing: border-box; box-sizing: border-box;
background: #fff; background: #fff;
width: 100%; width: 100%;
position: fixed;
left: 0;
top: 0;
} }
.searchHeader1 { .searchHeader1 {
border-bottom: 1px solid rgba(25,31,37,0.12); border-bottom: 1px solid rgba(25,31,37,0.12);
...@@ -314,4 +317,9 @@ ...@@ -314,4 +317,9 @@
} }
.dataNumSelected { .dataNumSelected {
color: #3296FA; color: #3296FA;
} }
\ No newline at end of file .roomScrollView{
height: 100vh;
padding-top: 192rpx;
box-sizing: border-box;
}
...@@ -31,47 +31,49 @@ ...@@ -31,47 +31,49 @@
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
<view class="reserveMeeting"> <scroll-view scroll-y="{{canScroll}}" class="roomScrollView">
<scroll-view scroll-y='{{true}}' scroll-into-view='searchList' class="reserveMeetingScrollView"> <view class="reserveMeeting">
<view class="meetingRoomContent" a:for="{{reserveRoomList}}" data-roomid="{{item.meetingRoomId}}" data-roomname="{{item.name}}" onTap="changeRoomTime"> <scroll-view scroll-y='{{true}}' scroll-into-view='searchList' class="reserveMeetingScrollView">
<view class="roomMessage"> <view class="meetingRoomContent" a:for="{{reserveRoomList}}" data-roomid="{{item.meetingRoomId}}" data-roomname="{{item.name}}" onTap="changeRoomTime">
<view class="reserveRoomMsg"> <view class="roomMessage">
<view class="reserveRoomTitle"> <view class="reserveRoomMsg">
{{item.name}} <view class="reserveRoomTitle">
</view> {{item.name}}
<view class="reserveRoomEquipFacility"> </view>
设备:<text a:for="{{item.equipFacilityNames}}" a:if="{{item2 !== null}}" a:for-item="item2" a:for-index="index2">{{item2}}{{index2 === item.equipFacilityNames.length-1 ? '' : '/'}}</text> <view class="reserveRoomEquipFacility">
</view> 设备:<text a:for="{{item.equipFacilityNames}}" a:if="{{item2 !== null}}" a:for-item="item2" a:for-index="index2">{{item2}}{{index2 === item.equipFacilityNames.length-1 ? '' : '/'}}</text>
<view class="reserveRoomNumAndLocation">
<view class="reserveRoomNum">
<text class="locationIcon iconfont icondingwei"></text>{{item.capacityNum}}
</view> </view>
<view class="reserveRoomLocation"> <view class="reserveRoomNumAndLocation">
<text class="locationIcon iconfont iconbeifangren"></text>{{item.locationName}} <view class="reserveRoomNum">
<text class="locationIcon iconfont icondingwei"></text>{{item.capacityNum}}
</view>
<view class="reserveRoomLocation">
<text class="locationIcon iconfont iconbeifangren"></text>{{item.locationName}}
</view>
</view> </view>
</view> </view>
</view> </view>
</view> <view class="reserveRoomTimeBar">
<view class="reserveRoomTimeBar"> <view class="reserveRoomTimeBarBg">
<view class="reserveRoomTimeBarBg"> <block a:for="{{item.timeSlotWithMeetingVOS}}" a:for-item="item2" a:for-index="index2">
<block a:for="{{item.timeSlotWithMeetingVOS}}" a:for-item="item2" a:for-index="index2"> <view class="expired" a:if="{{item2.reserveStatus === 'expired'}}">
<view class="expired" a:if="{{item2.reserveStatus === 'expired'}}"> </view>
</view> <view class="occupied" a:if="{{item2.reserveStatus === 'occupied'}}">
<view class="occupied" a:if="{{item2.reserveStatus === 'occupied'}}"> </view>
<view class="reservation" a:if="{{item2.reserveStatus === 'reservation'}}">
</view>
</block>
</view>
<view class="reserveRoomTimeBarNum">
<view a:for="{{timeListStr}}" a:for-item="item2" a:for-index="index2">
{{item2}}
</view> </view>
<view class="reservation" a:if="{{item2.reserveStatus === 'reservation'}}">
</view>
</block>
</view>
<view class="reserveRoomTimeBarNum">
<view a:for="{{timeListStr}}" a:for-item="item2" a:for-index="index2">
{{item2}}
</view> </view>
</view> </view>
</view> </view>
</view> </scroll-view>
</scroll-view> </view>
</view> </scroll-view>
<view a:if="{{isShowModal}}" class="modal"> <view a:if="{{isShowModal}}" class="modal">
<view class="modalContent"> <view class="modalContent">
<view class="modalHeader"> <view class="modalHeader">
......
...@@ -32,11 +32,12 @@ create.Page({ ...@@ -32,11 +32,12 @@ create.Page({
date: '', date: '',
meetingRoomId: '', meetingRoomId: '',
meetingRoomName: '' meetingRoomName: ''
} },
canScroll: true
}, },
onLoad(query) { onLoad(query) {
// let date = new Date(this.store.data.startTime.replace(/-/g, "/")) let date = new Date(this.store.data.startTime.replace(/-/g, "/"))
let date = new Date() // let date = new Date()
let year = date.getFullYear() let year = date.getFullYear()
let month = `${date.getMonth() + 1}` let month = `${date.getMonth() + 1}`
let day = `${date.getDate()}` let day = `${date.getDate()}`
......
...@@ -31,9 +31,6 @@ create.Page({ ...@@ -31,9 +31,6 @@ create.Page({
scheduleItem: scheduleItem, scheduleItem: scheduleItem,
pemissions: getApp().globalData.userid pemissions: getApp().globalData.userid
}) })
dd.setNavigationBar({
title: '会议详情'
})
}, },
onShow() { onShow() {
this.setData({ this.setData({
......
{} {
\ No newline at end of file "defaultTitle": "会议详情"
}
\ No newline at end of file
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