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
72efc23d
Commit
72efc23d
authored
5 years ago
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改会议室列表样式
parent
5c185c19
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
32 deletions
+79
-32
meetingRoomList.acss
pages/meetingRoomList/meetingRoomList.acss
+41
-22
meetingRoomList.axml
pages/meetingRoomList/meetingRoomList.axml
+21
-5
meetingRoomList.js
pages/meetingRoomList/meetingRoomList.js
+17
-5
No files found.
pages/meetingRoomList/meetingRoomList.acss
View file @
72efc23d
...
...
@@ -232,33 +232,26 @@
z-index: 999;
}
.modalContent {
.modalContent
, .calendarMoadl
{
width: 100%;
height: 732rpx;
overflow: hidden;
margin-top: -10px;
}
.modalHeader {
height:
44
rpx;
line-height:
44rpx
;
height:
32
rpx;
line-height:
1
;
font-size: 32rpx;
padding: 0 32rpx;
text-align: right;
color: #
3070F2
;
color: #
0A0A0A
;
box-sizing: border-box;
}
.modalHeader>view {
flex: 1;
}
.modalHeader>view:nth-of-type(1) {
color: #191F25;
text-align: left;
}
.modalHeader>view:nth-of-type(2) {
color: #3296FA;
text-align: right;
}
.changeDay {
...
...
@@ -267,13 +260,29 @@
font-size: 30rpx;
text-align: center;
display: flex;
height:
10
0rpx;
height:
8
0rpx;
align-items: center;
justify-content: center;
justify-content: space-between;
padding: 0 32rpx;
margin-top: 30rpx;
}
.changeDay>view {
flex: 1;
height: 80rpx;
}
.changeDay>view>view:nth-of-type(1) {
font-size: 28rpx;
font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold;
color: rgba(10, 10, 10, 1);
line-height: 28rpx;
margin-bottom: 4rpx;
}
.changeDay>view>view:nth-of-type(2) {
font-size: 22rpx;
color: rgba(27, 38, 61, .56)
}
.modalOccupyTimeSlot {
...
...
@@ -282,7 +291,7 @@
}
.modalOccupyTimeSlot>view {
height:
10
0rpx;
height:
8
0rpx;
width: 100%;
padding-left: 32rpx;
}
...
...
@@ -400,7 +409,11 @@
}
.dataNumSelected {
color: #3296FA;
border-bottom: 2rpx solid #EA0C28;
}
.dataNumSelected view:nth-of-type(1) {
color: #EA0C28 !important;
}
.roomScrollView {
...
...
@@ -446,10 +459,12 @@
.modalTimeSlot {
height: 44rpx;
font-family: DINAlternate-Bold;
font-size: 32rpx;
font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold;
color: rgba(10, 10, 10, .49);
line-height: 38rpx;
text-align: center;
color: #1B263D;
}
::-webkit-scrollbar {
...
...
@@ -472,7 +487,10 @@
color: rgba(25, 31, 37, 0.12);
font-size: 40rpx;
}
.calendarTip{
.calendarTip {
font-size: 24rpx;
color: rgba(25,31,37,.56)
text-align: center;
color: rgba(25, 31, 37, .56);
margin-top: 40rpx;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pages/meetingRoomList/meetingRoomList.axml
View file @
72efc23d
...
...
@@ -66,10 +66,26 @@
<text a:if="{{modalFooter.startTime && modalFooter.endTime}}">{{modalFooter.startTime}}至{{modalFooter.isOneDay ? modalFooter.endTime.substr(11,16):modalFooter.endTime}} 共{{modalFooter.allMinutes}}分钟</text>
</view>
<view class="changeDay">
<view class="{{dataNum == '0' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="0">{{TimeSlot.todayTime.split('/')[1]}}月{{TimeSlot.todayTime.split('/')[2]}}日</view>
<view class="{{dataNum == '1' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="1">{{TimeSlot.tomorrowTime.split('/')[1]}}月{{TimeSlot.tomorrowTime.split('/')[2]}}日</view>
<view class="{{dataNum == '2' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="2">{{TimeSlot.afterTomorrowTime.split('/')[1]}}月{{TimeSlot.afterTomorrowTime.split('/')[2]}}日</view>
<view class="{{dataNum == '3' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="3">自定义日期</view>
<view class="{{dataNum == '0' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="0">
<view>{{TimeSlot.todayTime.split('/')[1]}}月{{TimeSlot.todayTime.split('/')[2]}}日</view>
<view>今天</view>
</view>
<view class="{{dataNum == '1' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="1">
<view>{{TimeSlot.tomorrowTime.split('/')[1]}}月{{TimeSlot.tomorrowTime.split('/')[2]}}日</view>
<view>明天</view>
</view>
<view class="{{dataNum == '2' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="2">
<view>{{TimeSlot.afterTomorrowTime.split('/')[1]}}月{{TimeSlot.afterTomorrowTime.split('/')[2]}}日</view>
<view>后天</view>
</view>
<view class="{{dataNum == '3' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="3">
<view>
自定义日期
</view>
<view>
<text a:if="{{dataNum == '3'}}">{{meetingTime.date.split('/')[1]}}月{{meetingTime.date.split('/')[2]}}日</text>
</view>
</view>
</view>
<scroll-view scroll-y='{{true}}' class="modalOccupyTimeSlot" scroll-into-view="{{toThisTime}}">
<view class="OccupyTimeList" a:for="{{modalList}}" data-index="{{index}}" onTap="onChangeModalTime" id="{{item.reserveStartTime.substr(11,15)}}">
...
...
@@ -96,7 +112,7 @@
</view>
</scroll-view>
</view>
<view a:else>
<view
class="calendarMoadl"
a:else>
<view class="calendarTip">
自定义时间
</view>
...
...
This diff is collapsed.
Click to expand it.
pages/meetingRoomList/meetingRoomList.js
View file @
72efc23d
...
...
@@ -69,7 +69,8 @@ create.Page({
TimeSlot
:
{
todayTime
:
""
,
tomorrowTime
:
""
,
afterTomorrowTime
:
""
afterTomorrowTime
:
""
,
customTime
:
""
}
},
onLoad
(
query
)
{
...
...
@@ -89,9 +90,9 @@ create.Page({
"search.time"
:
`
${
year
}
-
${
month
}
-
${
day
}
`
,
"TimeSlot.todayTime"
:
todayTime
,
"TimeSlot.tomorrowTime"
:
`
${
year
}
/
${
tomorrowTime
.
getMonth
()
+
1
}
/
${
tomorrowTime
.
getDate
()}
/
`
,
1
}
/
${
tomorrowTime
.
getDate
()}
`
,
"TimeSlot.afterTomorrowTime"
:
`
${
year
}
/
${
afterTomorrowTime
.
getMonth
()
+
1
}
/
${
afterTomorrowTime
.
getDate
()}
/
`
1
}
/
${
afterTomorrowTime
.
getDate
()}
`
});
this
.
getPageData
();
},
...
...
@@ -1233,11 +1234,22 @@ create.Page({
});
},
handleSelect
(
e
)
{
let
date
=
getFormatDate
(
e
[
0
],
"yyyyMMdd"
);
let
date
=
`
${
e
[
0
].
getFullYear
()}
/
${
e
[
0
].
getMonth
()
+
1
}
/
${
e
[
0
].
getDate
()}
`
;
let
num
=
""
;
if
(
date
===
this
.
data
.
TimeSlot
.
todayTime
)
{
num
=
"0"
;
}
else
if
(
date
===
this
.
data
.
TimeSlot
.
tomorrowTime
)
{
num
=
"1"
;
}
else
if
(
date
===
this
.
data
.
TimeSlot
.
afterTomorrowTime
)
{
num
=
"2"
;
}
else
{
num
=
"3"
;
}
this
.
setData
(
{
isShowCalendar
:
false
,
"meetingTime.date"
:
date
"meetingTime.date"
:
date
,
dataNum
:
num
},
()
=>
{
this
.
getTimeSlotData
();
...
...
This diff is collapsed.
Click to expand it.
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