Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
schedule
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
schedule
Commits
a67cb584
Commit
a67cb584
authored
Feb 26, 2020
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
2dc2e872
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
82 additions
and
51 deletions
+82
-51
app.acss
app.acss
+8
-0
app.json
app.json
+4
-1
createOrEditSchedule.axml
pages/createOrEditSchedule/createOrEditSchedule.axml
+0
-0
createOrEditSchedule.js
pages/createOrEditSchedule/createOrEditSchedule.js
+10
-5
index.axml
pages/index/index.axml
+1
-1
index.js
pages/index/index.js
+7
-1
meetingRoomList.acss
pages/meetingRoomList/meetingRoomList.acss
+9
-2
meetingRoomList.axml
pages/meetingRoomList/meetingRoomList.axml
+35
-33
meetingRoomList.js
pages/meetingRoomList/meetingRoomList.js
+4
-3
scheduleDetail.js
pages/scheduleDetail/scheduleDetail.js
+0
-3
scheduleDetail.json
pages/scheduleDetail/scheduleDetail.json
+4
-2
No files found.
app.acss
View file @
a67cb584
page {
font-family: PingFangSC-Regular;
background: #F6F6F6;
}
picker-view {
background: #F6F6F6;
}
\ No newline at end of file
app.json
View file @
a67cb584
...
@@ -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"
}
}
}
pages/createOrEditSchedule/createOrEditSchedule.axml
View file @
a67cb584
This diff is collapsed.
Click to expand it.
pages/createOrEditSchedule/createOrEditSchedule.js
View file @
a67cb584
...
@@ -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
()
...
...
pages/index/index.axml
View file @
a67cb584
<!-- <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'}}">
...
...
pages/index/index.js
View file @
a67cb584
...
@@ -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
(),
...
...
pages/meetingRoomList/meetingRoomList.acss
View file @
a67cb584
...
@@ -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;
}
pages/meetingRoomList/meetingRoomList.axml
View file @
a67cb584
...
@@ -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">
...
...
pages/meetingRoomList/meetingRoomList.js
View file @
a67cb584
...
@@ -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
()}
`
...
...
pages/scheduleDetail/scheduleDetail.js
View file @
a67cb584
...
@@ -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
({
...
...
pages/scheduleDetail/scheduleDetail.json
View file @
a67cb584
{}
{
\ No newline at end of file
"defaultTitle"
:
"会议详情"
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment