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
04f6c8cd
Commit
04f6c8cd
authored
Feb 29, 2020
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug和视觉还原
parent
65012e46
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
187 additions
and
49 deletions
+187
-49
app.json
app.json
+1
-1
selectArea.acss
components/selectArea/selectArea.acss
+14
-6
selectArea.axml
components/selectArea/selectArea.axml
+7
-7
timeCheckModal.acss
components/timeCheckModal/timeCheckModal.acss
+7
-6
createOrEditSchedule.js
pages/createOrEditSchedule/createOrEditSchedule.js
+1
-2
index.acss
pages/index/index.acss
+3
-3
meetingRoomList.acss
pages/meetingRoomList/meetingRoomList.acss
+33
-6
meetingRoomList.axml
pages/meetingRoomList/meetingRoomList.axml
+7
-3
meetingRoomList.js
pages/meetingRoomList/meetingRoomList.js
+110
-14
repetitionTime.acss
pages/repetitionTime/repetitionTime.acss
+4
-1
No files found.
app.json
View file @
04f6c8cd
{
"pages"
:
[
"pages/index/index"
,
"pages/meetingRoomList/meetingRoomList"
,
"pages/place/place"
,
"pages/uploadFile/uploadFile"
,
"pages/addRemark/addRemark"
,
"pages/createOrEditSchedule/createOrEditSchedule"
,
"pages/meetingRoomList/meetingRoomList"
,
"pages/uploadFile/uploadFile"
,
"pages/repetitionTime/repetitionTime"
,
"pages/repeatMechanism/repeatMechanism"
,
...
...
components/selectArea/selectArea.acss
View file @
04f6c8cd
...
...
@@ -53,14 +53,14 @@
}
.treeLi {
display: block;
height:
62
rpx;
height:
70
rpx;
font-size: 28rpx;
line-height:
62
rpx;
line-height:
70
rpx;
}
.treeName {
height:
6
0rpx;
height:
7
0rpx;
font-size: 28rpx;
line-height:
6
0rpx;
line-height:
7
0rpx;
width: 100%;
display: flex;
}
...
...
@@ -83,11 +83,11 @@
}
/* icon */
.labelIsShow .iconsanjiao{
font-size: 2
8
rpx;
font-size: 2
0
rpx;
color: #D8D8D8;
}
.labelIsShow .iconsanjiao1{
font-size: 2
8
rpx;
font-size: 2
0
rpx;
color: #D8D8D8;
}
.labelIsShow .iconxuanzhong1{
...
...
@@ -108,6 +108,7 @@
font-size: 24rpx;
margin-right: 16rpx;
color: #191F25;
margin-left: 8rpx;
}
.treeLabel .iconjianzhu1 {
font-size: 24rpx;
...
...
@@ -116,4 +117,10 @@
}
.labelIsShow{
padding-left: 4rpx;
}
.cancelSelectAre{
font-size: 32rpx;
}
.sureSelectAre{
font-size: 32rpx;
}
\ No newline at end of file
components/selectArea/selectArea.axml
View file @
04f6c8cd
<view class="lableTreeBox">
<view class="lableTreeContent">
<view class="lableTreeHeader">
<view catchTap="cancelSelectAre">
<view c
lass="cancelSelectAre" c
atchTap="cancelSelectAre">
取消
</view>
<view catchTap="sureSelectAre">
<view c
lass="sureSelectAre" c
atchTap="sureSelectAre">
确定
</view>
</view>
<view class="lableTreeModal">
<scroll-view scroll-y="{{true}}" style="height: 422rpx;">
<scroll-view scroll-y="{{true}}" style="height: 422rpx;
padding-top: 8rpx
">
<view class="treeUl">
<block a:for="{{lableTree}}">
<view data-selectid="{{item.id}}" class="treeLi">
...
...
@@ -20,7 +20,7 @@
</view>
<view class="treeLabel" data-id="{{item.id}}" data-name="{{item.name}}" data-cycle="1" catchTap="onChangeAreId">
<view>
<text class="iconfont iconchengshi-"></text>
{{item.name}}
<text class="iconfont iconchengshi-"></text>
<text style="font-size:28rpx">{{item.name}}</text>
</view>
<view a:if="{{item.id===locationId}}" style="color: #1890FF;">
<text class="iconfont iconxuanzhong1"></text>
...
...
@@ -37,7 +37,7 @@
</view>
<view class="treeLabel" data-id="{{item2.id}}" data-name="{{item2.name}}" catchTap="onChangeAreId">
<view>
<text class="iconfont iconjianzhu1"></text>
{{item2.name}}
<text class="iconfont iconjianzhu1"></text>
<text style="font-size:28rpx">{{item2.name}}</text>
</view>
<view a:if="{{item2.id===locationId}}" style="color: #1890FF;">
<text class="iconfont iconxuanzhong1"></text>
...
...
@@ -45,13 +45,13 @@
</view>
</view>
</view>
<view a:if="{{item2.children.length > 0 && item2.status}}" class="treeUl">
<view a:if="{{item2.children.length > 0 && item2.status}}" class="treeUl"
style="margin-left: 50rpx"
>
<block a:for="{{item2.children}}" a:for-index="index3" a:for-item="item3">
<view data-selectid="{{item3.id}}" class="treeLi">
<view class="treeName {{ item3.id===locationId ? 'lableTreeChecked' : '' }}">
<view class="treeLabel" data-id="{{item3.id}}" data-name="{{item3.name}}" catchTap="onChangeAreId">
<view>
<text class="iconfont iconlouceng-"></text>
{{item3.name}}
<text class="iconfont iconlouceng-"></text>
<text style="font-size:28rpx">{{item3.name}}</text>
</view>
<view a:if="{{item3.id===locationId}}" style="color: #1890FF;">
<text class="iconfont iconxuanzhong1"></text>
...
...
components/timeCheckModal/timeCheckModal.acss
View file @
04f6c8cd
.beOverdue{
width: 40rpx;
height: 40rpx;
border-radius: 50%;
background: rgba(25,31,37,0.12);
/* border-radius: 50%; */
/* background: rgba(25,31,37,0.12); */
box-sizing: border-box;
}
.Unchecked{
width: 40rpx;
height: 40rpx;
border-radius: 50%;
/* border-radius: 50%; */
box-sizing: border-box;
border: 3px solid #979797;
/* border: 3px solid #979797; */
}
.checked{
width: 40rpx;
height: 40rpx;
border-radius: 50%;
background: #3296FA;
/* border-radius: 50%; */
/* background: #3296FA; */
box-sizing: border-box;
}
\ No newline at end of file
pages/createOrEditSchedule/createOrEditSchedule.js
View file @
04f6c8cd
...
...
@@ -128,9 +128,8 @@ create.Page({
},
// 选择时间组件回调
changeSelectTime
(
e
)
{
console
.
log
(
e
.
time
.
substr
(
0
,
16
))
let
that
=
this
let
timeStr
=
e
.
time
.
substr
(
0
,
16
)
let
timeStr
=
e
.
status
===
1
?
e
.
time
.
substr
(
0
,
16
)
:
''
if
(
e
.
status
===
1
)
{
var
date1
=
new
Date
(
timeStr
.
substr
(
0
,
16
));
var
weekList
=
[
'周日'
,
'周一'
,
'周二'
,
'周三'
,
'周四'
,
'周五'
,
'周六'
]
...
...
pages/index/index.acss
View file @
04f6c8cd
...
...
@@ -11,11 +11,11 @@ page {
}
.month {
font-family: PingFangSC-Medium;
padding: 0 32rpx;
height: 48rpx;
line-height: 48rpx;
margin-bottom: 50rpx;
font-weight: bold;
}
.manyWeeks {
...
...
@@ -115,8 +115,8 @@ page {
.thisDayLine::after {
content: '';
position: absolute;
left:
-2rpx
;
bottom: -
2
rpx;
left:
0
;
bottom: -
3
rpx;
width: 8rpx;
height: 8rpx;
border-radius: 50%;
...
...
pages/meetingRoomList/meetingRoomList.acss
View file @
04f6c8cd
...
...
@@ -217,6 +217,7 @@
display: flex;
align-items: flex-end;
background: rgba(0, 0, 0, .15);
z-index: 999;
}
.modalContent {
...
...
@@ -282,6 +283,8 @@
padding-left: 32rpx;
display: flex;
align-items: center;
font-size: 24rpx;
color: rgba(25,31,37,0.56);
}
.OccupyTimeList>view:nth-of-type(1) {
...
...
@@ -318,24 +321,20 @@
.beOverdue {
width: 40rpx;
height: 40rpx;
border-radius: 50%;
background: rgba(25, 31, 37, 0.12);
box-sizing: border-box;
/* background: rgba(25, 31, 37, 0.12); */
}
.Unchecked {
width: 40rpx;
height: 40rpx;
border-radius: 50%;
box-sizing: border-box;
border: 3px solid #979797;
}
.checked {
width: 40rpx;
height: 40rpx;
border-radius: 50%;
background: #3296FA;
/* background: #3296FA; */
box-sizing: border-box;
}
...
...
@@ -429,4 +428,31 @@
margin-top: 32rpx;
font-size: 30rpx;
color: rgba(25,31,37,0.56);
}
.modalFooter{
height: 120rpx;
line-height: 120rpx;
font-size: 26rpx;
color: #3296FA;
letter-spacing: -0.63px;
padding-left: 32rpx;
width: 100%;
box-sizing: border-box;
}
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
.beOverdue .iconxuanzhong2{
color: rgba(25,31,37,0.12);
font-size: 40rpx;
}
.checked .iconxuanzhong2{
color: #3296FA;
font-size: 40rpx;
}
.Unchecked .iconweigouxuan{
color: rgba(25,31,37,0.12);
font-size: 40rpx;
}
\ No newline at end of file
pages/meetingRoomList/meetingRoomList.axml
View file @
04f6c8cd
...
...
@@ -111,13 +111,13 @@
</view> -->
<view>
<view a:if="{{item.status==='BeOverdue'}}" class="beOverdue">
<text class="iconfont iconxuanzhong2"></text>
</view>
<view a:elif="{{item.status==='Uncheck'}}" class="Unchecked">
<text class="iconfont iconweigouxuan"></text>
</view>
<view a:elif="{{item.status==='checked'}}" class="checked">
<text class="iconfont iconxuanzhong2"></text>
</view>
</view>
<view>
...
...
@@ -131,6 +131,10 @@
</view>
</view>
</scroll-view>
<view class="modalFooter">
<text a:if="{{!modalFooter.startTime || !modalFooter.endTime}}">会议时间:请选择会议时间</text>
<text a:if="{{modalFooter.startTime && modalFooter.endTime}}">会议时间:{{modalFooter.startTime}}至{{modalFooter.isOneDay ? modalFooter.endTime.substr(11,16):modalFooter.endTime}} 共{{modalFooter.allMinutes}}分钟</text>
</view>
</view>
</view>
<lable-tree
...
...
pages/meetingRoomList/meetingRoomList.js
View file @
04f6c8cd
...
...
@@ -18,6 +18,12 @@ create.Page({
equipFacilityIds
:
[],
time
:
''
},
modalFooter
:
{
startTime
:
''
,
endTime
:
''
,
allMinutes
:
''
,
isOneDay
:
true
},
dataNum
:
'0'
,
noRoom
:
false
,
location
:{
...
...
@@ -38,8 +44,8 @@ create.Page({
toThisTime
:
'123'
},
onLoad
(
query
)
{
let
date
=
new
Date
(
this
.
store
.
data
.
startTime
.
replace
(
/-/g
,
"/"
))
//
let date = new Date()
//
let date = new Date(this.store.data.startTime.replace(/-/g, "/"))
let
date
=
new
Date
()
let
year
=
date
.
getFullYear
()
let
month
=
`
${
date
.
getMonth
()
+
1
}
`
let
day
=
`
${
date
.
getDate
()}
`
...
...
@@ -184,9 +190,15 @@ create.Page({
// 判断是否有开始时间
console
.
log
(
'判断是否有开始时间'
)
let
listStr
=
`modalList[
${
index
}
].status`
let
modalFooterTime
=
new
Date
(
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime
.
setMinutes
(
modalFooterTime
.
getMinutes
()
+
30
)
this
.
setData
({
'meetingTime.startTime'
:
data
.
reserveStartTime
,
[
listStr
]:
'checked'
[
listStr
]:
'checked'
,
'modalFooter.startTime'
:
data
.
reserveStartTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime
.
getFullYear
()}
-
${
modalFooterTime
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime
.
getMonth
()
+
1
):
modalFooterTime
.
getMonth
()
+
1
}
-
${
modalFooterTime
.
getDate
()
<
10
?
'0'
+
modalFooterTime
.
getDate
():
modalFooterTime
.
getDate
()}
${
modalFooterTime
.
getHours
()
<
10
?
'0'
+
modalFooterTime
.
getHours
():
modalFooterTime
.
getHours
()}
:
${
modalFooterTime
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime
.
getMinutes
():
modalFooterTime
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
30
,
'modalFooter.isOneDay'
:
true
,
})
}
else
if
(
this
.
data
.
meetingTime
.
startTime
&&
!
this
.
data
.
meetingTime
.
endTime
)
{
// 判断有开时间,没有结束时间
...
...
@@ -195,7 +207,11 @@ create.Page({
let
listStr
=
`modalList[
${
index
}
].status`
this
.
setData
({
'meetingTime.startTime'
:
''
,
[
listStr
]:
'Uncheck'
[
listStr
]:
'Uncheck'
,
'modalFooter.startTime'
:
data
.
reserveStartTime
,
'modalFooter.endTime'
:
''
,
'modalFooter.allMinutes'
:
''
,
'modalFooter.isOneDay'
:
true
,
})
console
.
log
(
'2.1'
)
}
else
if
(
new
Date
(
this
.
data
.
meetingTime
.
startTime
.
replace
(
/-/g
,
'/'
)).
getTime
()
>
new
Date
(
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
)).
getTime
()){
...
...
@@ -204,9 +220,16 @@ create.Page({
if
(
this
.
isDaySpan
(
this
.
data
.
meetingTime
.
startTime
.
replace
(
/-/g
,
'/'
),
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
)))
{
//非跨天
if
(
this
.
isOptional
(
data
.
reserveStartTime
,
this
.
data
.
meetingTime
.
startTime
))
{
let
modalFooterTime
=
new
Date
(
that
.
data
.
meetingTime
.
startTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime
.
setMinutes
(
modalFooterTime
.
getMinutes
()
+
30
)
let
allMinutes
=
(
modalFooterTime
-
new
Date
(
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
)).
getTime
())
/
60000
this
.
setData
({
'meetingTime.startTime'
:
data
.
reserveStartTime
,
'meetingTime.endTime'
:
this
.
data
.
meetingTime
.
startTime
,
'meetingTime.endTime'
:
that
.
data
.
meetingTime
.
startTime
,
'modalFooter.startTime'
:
data
.
reserveStartTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime
.
getFullYear
()}
-
${
modalFooterTime
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime
.
getMonth
()
+
1
):
modalFooterTime
.
getMonth
()
+
1
}
-
${
modalFooterTime
.
getDate
()
<
10
?
'0'
+
modalFooterTime
.
getDate
():
modalFooterTime
.
getDate
()}
${
modalFooterTime
.
getHours
()
<
10
?
'0'
+
modalFooterTime
.
getHours
():
modalFooterTime
.
getHours
()}
:
${
modalFooterTime
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime
.
getMinutes
():
modalFooterTime
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
allMinutes
,
'modalFooter.isOneDay'
:
true
,
},
()
=>
{
that
.
refreshModalList
()
})
...
...
@@ -217,9 +240,16 @@ create.Page({
//跨天
this
.
getAllScheduleWithMeetingRoomByTime
(
data
.
reserveStartTime
,
this
.
data
.
meetingTime
.
startTime
).
then
(
res
=>
{
if
(
res
)
{
let
modalFooterTime
=
new
Date
(
that
.
data
.
meetingTime
.
startTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime
.
setMinutes
(
modalFooterTime
.
getMinutes
()
+
30
)
let
allMinutes
=
(
modalFooterTime
-
new
Date
(
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
)).
getTime
())
/
60000
that
.
setData
({
'meetingTime.startTime'
:
data
.
reserveStartTime
,
'meetingTime.endTime'
:
this
.
data
.
meetingTime
.
startTime
,
'meetingTime.endTime'
:
that
.
data
.
meetingTime
.
startTime
,
'modalFooter.startTime'
:
data
.
reserveStartTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime
.
getFullYear
()}
-
${
modalFooterTime
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime
.
getMonth
()
+
1
):
modalFooterTime
.
getMonth
()
+
1
}
-
${
modalFooterTime
.
getDate
()
<
10
?
'0'
+
modalFooterTime
.
getDate
():
modalFooterTime
.
getDate
()}
${
modalFooterTime
.
getHours
()
<
10
?
'0'
+
modalFooterTime
.
getHours
():
modalFooterTime
.
getHours
()}
:
${
modalFooterTime
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime
.
getMinutes
():
modalFooterTime
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
allMinutes
,
'modalFooter.isOneDay'
:
false
,
},
()
=>
{
that
.
refreshModalList
()
})
...
...
@@ -236,8 +266,15 @@ create.Page({
if
(
this
.
isDaySpan
(
this
.
data
.
meetingTime
.
startTime
.
replace
(
/-/g
,
'/'
),
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
)))
{
// 非跨天
if
(
this
.
isOptional
(
this
.
data
.
meetingTime
.
startTime
,
data
.
reserveStartTime
))
{
let
modalFooterTime
=
new
Date
(
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime
.
setMinutes
(
modalFooterTime
.
getMinutes
()
+
30
)
let
allMinutes
=
(
modalFooterTime
-
new
Date
(
that
.
data
.
meetingTime
.
startTime
.
replace
(
/-/g
,
'/'
)).
getTime
())
/
60000
this
.
setData
({
'meetingTime.endTime'
:
data
.
reserveStartTime
,
'modalFooter.startTime'
:
that
.
data
.
meetingTime
.
startTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime
.
getFullYear
()}
-
${
modalFooterTime
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime
.
getMonth
()
+
1
):
modalFooterTime
.
getMonth
()
+
1
}
-
${
modalFooterTime
.
getDate
()
<
10
?
'0'
+
modalFooterTime
.
getDate
():
modalFooterTime
.
getDate
()}
${
modalFooterTime
.
getHours
()
<
10
?
'0'
+
modalFooterTime
.
getHours
():
modalFooterTime
.
getHours
()}
:
${
modalFooterTime
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime
.
getMinutes
():
modalFooterTime
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
allMinutes
,
'modalFooter.isOneDay'
:
true
,
},
()
=>
{
that
.
refreshModalList
()
})
...
...
@@ -248,8 +285,15 @@ create.Page({
// 跨天
this
.
getAllScheduleWithMeetingRoomByTime
(
data
.
reserveStartTime
,
this
.
data
.
meetingTime
.
startTime
).
then
(
res
=>
{
if
(
res
)
{
that
.
setData
({
let
modalFooterTime
=
new
Date
(
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime
.
setMinutes
(
modalFooterTime
.
getMinutes
()
+
30
)
let
allMinutes
=
(
modalFooterTime
-
new
Date
(
that
.
data
.
meetingTime
.
startTime
.
replace
(
/-/g
,
'/'
)).
getTime
())
/
60000
this
.
setData
({
'meetingTime.endTime'
:
data
.
reserveStartTime
,
'modalFooter.startTime'
:
that
.
data
.
meetingTime
.
startTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime
.
getFullYear
()}
-
${
modalFooterTime
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime
.
getMonth
()
+
1
):
modalFooterTime
.
getMonth
()
+
1
}
-
${
modalFooterTime
.
getDate
()
<
10
?
'0'
+
modalFooterTime
.
getDate
():
modalFooterTime
.
getDate
()}
${
modalFooterTime
.
getHours
()
<
10
?
'0'
+
modalFooterTime
.
getHours
():
modalFooterTime
.
getHours
()}
:
${
modalFooterTime
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime
.
getMinutes
():
modalFooterTime
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
allMinutes
,
'modalFooter.isOneDay'
:
false
,
},
()
=>
{
that
.
refreshModalList
()
})
...
...
@@ -270,15 +314,27 @@ create.Page({
startTimeDate
.
setMinutes
(
startTimeDate
.
getMinutes
()
+
30
)
let
meetingStartTime
=
`
${
startTimeDate
.
getFullYear
()}
-
${
startTimeDate
.
getMonth
()
+
1
<
10
?
'0'
+
(
startTimeDate
.
getMonth
()
+
1
)
:
startTimeDate
.
getMonth
()
+
1
}
-
${
startTimeDate
.
getDate
()
<
10
?
'0'
+
startTimeDate
.
getDate
():
startTimeDate
.
getDate
()}
${
startTimeDate
.
getHours
()
<
10
?
'0'
+
startTimeDate
.
getHours
():
startTimeDate
.
getHours
()}
:
${
startTimeDate
.
getMinutes
()
<
10
?
'0'
+
startTimeDate
.
getMinutes
():
startTimeDate
.
getMinutes
()}
`
if
(
meetingStartTime
===
this
.
data
.
meetingTime
.
endTime
)
{
let
modalFooterTime
=
new
Date
(
that
.
data
.
meetingTime
.
endTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime
.
setMinutes
(
modalFooterTime
.
getMinutes
()
+
30
)
this
.
setData
({
'meetingTime.startTime'
:
meetingStartTime
,
'meetingTime.endTime'
:
''
'meetingTime.endTime'
:
''
,
'modalFooter.startTime'
:
meetingStartTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime
.
getFullYear
()}
-
${
modalFooterTime
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime
.
getMonth
()
+
1
):
modalFooterTime
.
getMonth
()
+
1
}
-
${
modalFooterTime
.
getDate
()
<
10
?
'0'
+
modalFooterTime
.
getDate
():
modalFooterTime
.
getDate
()}
${
modalFooterTime
.
getHours
()
<
10
?
'0'
+
modalFooterTime
.
getHours
():
modalFooterTime
.
getHours
()}
:
${
modalFooterTime
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime
.
getMinutes
():
modalFooterTime
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
30
,
'modalFooter.isOneDay'
:
true
,
},()
=>
{
that
.
refreshModalList
()
})
}
else
{
let
modalFooterTime
=
new
Date
(
that
.
data
.
meetingTime
.
endTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime
.
setMinutes
(
modalFooterTime
.
getMinutes
()
+
30
)
let
allMinutes
=
(
modalFooterTime
-
new
Date
(
meetingStartTime
.
replace
(
/-/g
,
'/'
)).
getTime
())
/
60000
this
.
setData
({
'meetingTime.startTime'
:
meetingStartTime
'meetingTime.startTime'
:
meetingStartTime
,
'modalFooter.startTime'
:
meetingStartTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime
.
getFullYear
()}
-
${
modalFooterTime
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime
.
getMonth
()
+
1
):
modalFooterTime
.
getMonth
()
+
1
}
-
${
modalFooterTime
.
getDate
()
<
10
?
'0'
+
modalFooterTime
.
getDate
():
modalFooterTime
.
getDate
()}
${
modalFooterTime
.
getHours
()
<
10
?
'0'
+
modalFooterTime
.
getHours
():
modalFooterTime
.
getHours
()}
:
${
modalFooterTime
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime
.
getMinutes
():
modalFooterTime
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
allMinutes
,
},()
=>
{
that
.
refreshModalList
()
})
...
...
@@ -290,14 +346,25 @@ create.Page({
endTimeDate
.
setMinutes
(
endTimeDate
.
getMinutes
()
-
30
)
let
meetingEndTime
=
`
${
endTimeDate
.
getFullYear
()}
-
${
endTimeDate
.
getMonth
()
+
1
<
10
?
'0'
+
(
endTimeDate
.
getMonth
()
+
1
)
:
endTimeDate
.
getMonth
()
+
1
}
-
${
endTimeDate
.
getDate
()
<
10
?
'0'
+
endTimeDate
.
getDate
():
endTimeDate
.
getDate
()}
${
endTimeDate
.
getHours
()
<
10
?
'0'
+
endTimeDate
.
getHours
():
endTimeDate
.
getHours
()}
:
${
endTimeDate
.
getMinutes
()
<
10
?
'0'
+
endTimeDate
.
getMinutes
():
endTimeDate
.
getMinutes
()}
`
if
(
meetingEndTime
===
this
.
data
.
meetingTime
.
startTime
)
{
let
modalFooterTime
=
new
Date
(
this
.
data
.
meetingTime
.
startTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime
.
setMinutes
(
modalFooterTime
.
getMinutes
()
+
30
)
this
.
setData
({
'meetingTime.endTime'
:
''
'meetingTime.endTime'
:
''
,
'modalFooter.startTime'
:
that
.
data
.
meetingTime
.
startTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime
.
getFullYear
()}
-
${
modalFooterTime
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime
.
getMonth
()
+
1
):
modalFooterTime
.
getMonth
()
+
1
}
-
${
modalFooterTime
.
getDate
()
<
10
?
'0'
+
modalFooterTime
.
getDate
():
modalFooterTime
.
getDate
()}
${
modalFooterTime
.
getHours
()
<
10
?
'0'
+
modalFooterTime
.
getHours
():
modalFooterTime
.
getHours
()}
:
${
modalFooterTime
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime
.
getMinutes
():
modalFooterTime
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
30
,
},()
=>
{
that
.
refreshModalList
()
})
}
else
{
let
modalFooterTime
=
new
Date
(
meetingEndTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime
.
setMinutes
(
modalFooterTime
.
getMinutes
()
+
30
)
let
allMinutes
=
(
modalFooterTime
-
new
Date
(
that
.
data
.
meetingTime
.
startTime
.
replace
(
/-/g
,
'/'
)).
getTime
())
/
60000
this
.
setData
({
'meetingTime.endTime'
:
meetingEndTime
'meetingTime.endTime'
:
meetingEndTime
,
'modalFooter.startTime'
:
that
.
data
.
meetingTime
.
startTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime
.
getFullYear
()}
-
${
modalFooterTime
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime
.
getMonth
()
+
1
):
modalFooterTime
.
getMonth
()
+
1
}
-
${
modalFooterTime
.
getDate
()
<
10
?
'0'
+
modalFooterTime
.
getDate
():
modalFooterTime
.
getDate
()}
${
modalFooterTime
.
getHours
()
<
10
?
'0'
+
modalFooterTime
.
getHours
():
modalFooterTime
.
getHours
()}
:
${
modalFooterTime
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime
.
getMinutes
():
modalFooterTime
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
allMinutes
,
},()
=>
{
that
.
refreshModalList
()
})
...
...
@@ -309,8 +376,15 @@ create.Page({
if
(
this
.
isDaySpan
(
this
.
data
.
meetingTime
.
startTime
.
replace
(
/-/g
,
'/'
),
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
)))
{
// 非跨天
if
(
data
.
reserveStartTime
,
this
.
data
.
meetingTime
.
startTime
)
{
let
modalFooterTime
=
new
Date
(
that
.
data
.
meetingTime
.
endTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime
.
setMinutes
(
modalFooterTime
.
getMinutes
()
+
30
)
let
allMinutes
=
(
modalFooterTime
-
new
Date
(
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
)).
getTime
())
/
60000
this
.
setData
({
'meetingTime.startTime'
:
data
.
reserveStartTime
,
'modalFooter.startTime'
:
data
.
reserveStartTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime
.
getFullYear
()}
-
${
modalFooterTime
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime
.
getMonth
()
+
1
):
modalFooterTime
.
getMonth
()
+
1
}
-
${
modalFooterTime
.
getDate
()
<
10
?
'0'
+
modalFooterTime
.
getDate
():
modalFooterTime
.
getDate
()}
${
modalFooterTime
.
getHours
()
<
10
?
'0'
+
modalFooterTime
.
getHours
():
modalFooterTime
.
getHours
()}
:
${
modalFooterTime
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime
.
getMinutes
():
modalFooterTime
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
allMinutes
,
'modalFooter.isOneDay'
:
true
,
},()
=>
{
that
.
refreshModalList
()
})
...
...
@@ -319,8 +393,15 @@ create.Page({
// 跨天
this
.
getAllScheduleWithMeetingRoomByTime
(
data
.
reserveStartTime
,
this
.
data
.
meetingTime
.
startTime
).
then
(
res
=>
{
if
(
res
)
{
that
.
setData
({
let
modalFooterTime
=
new
Date
(
that
.
data
.
meetingTime
.
endTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime
.
setMinutes
(
modalFooterTime
.
getMinutes
()
+
30
)
let
allMinutes
=
(
modalFooterTime
-
new
Date
(
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
)).
getTime
())
/
60000
this
.
setData
({
'meetingTime.startTime'
:
data
.
reserveStartTime
,
'modalFooter.startTime'
:
data
.
reserveStartTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime
.
getFullYear
()}
-
${
modalFooterTime
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime
.
getMonth
()
+
1
):
modalFooterTime
.
getMonth
()
+
1
}
-
${
modalFooterTime
.
getDate
()
<
10
?
'0'
+
modalFooterTime
.
getDate
():
modalFooterTime
.
getDate
()}
${
modalFooterTime
.
getHours
()
<
10
?
'0'
+
modalFooterTime
.
getHours
():
modalFooterTime
.
getHours
()}
:
${
modalFooterTime
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime
.
getMinutes
():
modalFooterTime
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
allMinutes
,
'modalFooter.isOneDay'
:
false
,
},()
=>
{
that
.
refreshModalList
()
})
...
...
@@ -338,8 +419,16 @@ create.Page({
// 非跨天
if
(
this
.
isOptional
(
this
.
data
.
meetingTime
.
startTime
,
data
.
reserveStartTime
))
{
//是否可选中
let
modalFooterTime2
=
new
Date
(
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime2
.
setMinutes
(
modalFooterTime2
.
getMinutes
()
+
30
)
let
allMinutes
=
(
modalFooterTime2
-
new
Date
(
that
.
data
.
meetingTime
.
startTime
.
replace
(
/-/g
,
'/'
)).
getTime
())
/
60000
console
.
log
(
'3.4.1'
,
allMinutes
)
this
.
setData
({
'meetingTime.endTime'
:
data
.
reserveStartTime
,
'modalFooter.startTime'
:
that
.
data
.
meetingTime
.
startTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime2
.
getFullYear
()}
-
${
modalFooterTime2
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime2
.
getMonth
()
+
1
):
modalFooterTime2
.
getMonth
()
+
1
}
-
${
modalFooterTime2
.
getDate
()
<
10
?
'0'
+
modalFooterTime2
.
getDate
():
modalFooterTime2
.
getDate
()}
${
modalFooterTime2
.
getHours
()
<
10
?
'0'
+
modalFooterTime2
.
getHours
():
modalFooterTime2
.
getHours
()}
:
${
modalFooterTime2
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime2
.
getMinutes
():
modalFooterTime2
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
allMinutes
,
'modalFooter.isOneDay'
:
true
,
},()
=>
{
that
.
refreshModalList
()
})
...
...
@@ -348,8 +437,15 @@ create.Page({
// 跨天
this
.
getAllScheduleWithMeetingRoomByTime
(
data
.
reserveStartTime
,
this
.
data
.
meetingTime
.
startTime
).
then
(
res
=>
{
if
(
res
)
{
that
.
setData
({
'meetingTime.endTime'
:
data
.
reserveStartTime
,
let
modalFooterTime
=
new
Date
(
data
.
reserveStartTime
.
replace
(
/-/g
,
'/'
))
modalFooterTime
.
setMinutes
(
modalFooterTime
.
getMinutes
()
+
30
)
let
allMinutes
=
(
modalFooterTime
-
new
Date
(
that
.
data
.
meetingTime
.
startTime
.
replace
(
/-/g
,
'/'
)).
getTime
())
/
60000
this
.
setData
({
'meetingTime.endTime'
:
data
.
reserveStartTime
,
'modalFooter.startTime'
:
that
.
data
.
meetingTime
.
startTime
,
'modalFooter.endTime'
:
`
${
modalFooterTime
.
getFullYear
()}
-
${
modalFooterTime
.
getMonth
()
<
9
?
'0'
+
(
modalFooterTime
.
getMonth
()
+
1
):
modalFooterTime
.
getMonth
()
+
1
}
-
${
modalFooterTime
.
getDate
()
<
10
?
'0'
+
modalFooterTime
.
getDate
():
modalFooterTime
.
getDate
()}
${
modalFooterTime
.
getHours
()
<
10
?
'0'
+
modalFooterTime
.
getHours
():
modalFooterTime
.
getHours
()}
:
${
modalFooterTime
.
getMinutes
()
<
10
?
'0'
+
modalFooterTime
.
getMinutes
():
modalFooterTime
.
getMinutes
()}
`
,
'modalFooter.allMinutes'
:
allMinutes
,
'modalFooter.isOneDay'
:
false
,
},()
=>
{
that
.
refreshModalList
()
})
...
...
pages/repetitionTime/repetitionTime.acss
View file @
04f6c8cd
...
...
@@ -52,7 +52,9 @@
}
.timeView>view:nth-of-type(1) {
text-align: right;
margin-right: 32rpx;
padding-right: 32rpx;
box-sizing: border-box;
width: 100%;
}
.timeView picker-view{
width: 100%;
...
...
@@ -73,6 +75,7 @@
display: flex;
align-items: center;
justify-content: flex-end;
border-bottom: 1px solid rgba(25,31,37,0.12);
/* font-weight: bold; */
}
.timeViewSwich switch{
...
...
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