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
Apr 13, 2020
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 @@
...
@@ -232,33 +232,26 @@
z-index: 999;
z-index: 999;
}
}
.modalContent {
.modalContent
, .calendarMoadl
{
width: 100%;
width: 100%;
height: 732rpx;
height: 732rpx;
overflow: hidden;
margin-top: -10px;
}
}
.modalHeader {
.modalHeader {
height:
44
rpx;
height:
32
rpx;
line-height:
44rpx
;
line-height:
1
;
font-size: 32rpx;
font-size: 32rpx;
padding: 0 32rpx;
padding: 0 32rpx;
text-align: right;
text-align: right;
color: #
3070F2
;
color: #
0A0A0A
;
box-sizing: border-box;
box-sizing: border-box;
}
}
.modalHeader>view {
.modalHeader>view {
flex: 1;
flex: 1;
}
.modalHeader>view:nth-of-type(1) {
color: #191F25;
color: #191F25;
text-align: left;
}
.modalHeader>view:nth-of-type(2) {
color: #3296FA;
text-align: right;
}
}
.changeDay {
.changeDay {
...
@@ -267,13 +260,29 @@
...
@@ -267,13 +260,29 @@
font-size: 30rpx;
font-size: 30rpx;
text-align: center;
text-align: center;
display: flex;
display: flex;
height:
10
0rpx;
height:
8
0rpx;
align-items: center;
align-items: center;
justify-content: center;
justify-content: space-between;
padding: 0 32rpx;
margin-top: 30rpx;
}
}
.changeDay>view {
.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 {
.modalOccupyTimeSlot {
...
@@ -282,7 +291,7 @@
...
@@ -282,7 +291,7 @@
}
}
.modalOccupyTimeSlot>view {
.modalOccupyTimeSlot>view {
height:
10
0rpx;
height:
8
0rpx;
width: 100%;
width: 100%;
padding-left: 32rpx;
padding-left: 32rpx;
}
}
...
@@ -400,7 +409,11 @@
...
@@ -400,7 +409,11 @@
}
}
.dataNumSelected {
.dataNumSelected {
color: #3296FA;
border-bottom: 2rpx solid #EA0C28;
}
.dataNumSelected view:nth-of-type(1) {
color: #EA0C28 !important;
}
}
.roomScrollView {
.roomScrollView {
...
@@ -446,10 +459,12 @@
...
@@ -446,10 +459,12 @@
.modalTimeSlot {
.modalTimeSlot {
height: 44rpx;
height: 44rpx;
font-family: DINAlternate-Bold;
font-size: 32rpx;
font-size: 32rpx;
font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold;
color: rgba(10, 10, 10, .49);
line-height: 38rpx;
text-align: center;
text-align: center;
color: #1B263D;
}
}
::-webkit-scrollbar {
::-webkit-scrollbar {
...
@@ -472,7 +487,10 @@
...
@@ -472,7 +487,10 @@
color: rgba(25, 31, 37, 0.12);
color: rgba(25, 31, 37, 0.12);
font-size: 40rpx;
font-size: 40rpx;
}
}
.calendarTip{
.calendarTip {
font-size: 24rpx;
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
pages/meetingRoomList/meetingRoomList.axml
View file @
72efc23d
...
@@ -66,10 +66,26 @@
...
@@ -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>
<text a:if="{{modalFooter.startTime && modalFooter.endTime}}">{{modalFooter.startTime}}至{{modalFooter.isOneDay ? modalFooter.endTime.substr(11,16):modalFooter.endTime}} 共{{modalFooter.allMinutes}}分钟</text>
</view>
</view>
<view class="changeDay">
<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 == '0' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="0">
<view class="{{dataNum == '1' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="1">{{TimeSlot.tomorrowTime.split('/')[1]}}月{{TimeSlot.tomorrowTime.split('/')[2]}}日</view>
<view>{{TimeSlot.todayTime.split('/')[1]}}月{{TimeSlot.todayTime.split('/')[2]}}日</view>
<view class="{{dataNum == '2' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="2">{{TimeSlot.afterTomorrowTime.split('/')[1]}}月{{TimeSlot.afterTomorrowTime.split('/')[2]}}日</view>
<view>今天</view>
<view class="{{dataNum == '3' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="3">自定义日期</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>
</view>
<scroll-view scroll-y='{{true}}' class="modalOccupyTimeSlot" scroll-into-view="{{toThisTime}}">
<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)}}">
<view class="OccupyTimeList" a:for="{{modalList}}" data-index="{{index}}" onTap="onChangeModalTime" id="{{item.reserveStartTime.substr(11,15)}}">
...
@@ -96,7 +112,7 @@
...
@@ -96,7 +112,7 @@
</view>
</view>
</scroll-view>
</scroll-view>
</view>
</view>
<view a:else>
<view
class="calendarMoadl"
a:else>
<view class="calendarTip">
<view class="calendarTip">
自定义时间
自定义时间
</view>
</view>
...
...
pages/meetingRoomList/meetingRoomList.js
View file @
72efc23d
...
@@ -69,7 +69,8 @@ create.Page({
...
@@ -69,7 +69,8 @@ create.Page({
TimeSlot
:
{
TimeSlot
:
{
todayTime
:
""
,
todayTime
:
""
,
tomorrowTime
:
""
,
tomorrowTime
:
""
,
afterTomorrowTime
:
""
afterTomorrowTime
:
""
,
customTime
:
""
}
}
},
},
onLoad
(
query
)
{
onLoad
(
query
)
{
...
@@ -89,9 +90,9 @@ create.Page({
...
@@ -89,9 +90,9 @@ create.Page({
"search.time"
:
`
${
year
}
-
${
month
}
-
${
day
}
`
,
"search.time"
:
`
${
year
}
-
${
month
}
-
${
day
}
`
,
"TimeSlot.todayTime"
:
todayTime
,
"TimeSlot.todayTime"
:
todayTime
,
"TimeSlot.tomorrowTime"
:
`
${
year
}
/
${
tomorrowTime
.
getMonth
()
+
"TimeSlot.tomorrowTime"
:
`
${
year
}
/
${
tomorrowTime
.
getMonth
()
+
1
}
/
${
tomorrowTime
.
getDate
()}
/
`
,
1
}
/
${
tomorrowTime
.
getDate
()}
`
,
"TimeSlot.afterTomorrowTime"
:
`
${
year
}
/
${
afterTomorrowTime
.
getMonth
()
+
"TimeSlot.afterTomorrowTime"
:
`
${
year
}
/
${
afterTomorrowTime
.
getMonth
()
+
1
}
/
${
afterTomorrowTime
.
getDate
()}
/
`
1
}
/
${
afterTomorrowTime
.
getDate
()}
`
});
});
this
.
getPageData
();
this
.
getPageData
();
},
},
...
@@ -1233,11 +1234,22 @@ create.Page({
...
@@ -1233,11 +1234,22 @@ create.Page({
});
});
},
},
handleSelect
(
e
)
{
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
(
this
.
setData
(
{
{
isShowCalendar
:
false
,
isShowCalendar
:
false
,
"meetingTime.date"
:
date
"meetingTime.date"
:
date
,
dataNum
:
num
},
},
()
=>
{
()
=>
{
this
.
getTimeSlotData
();
this
.
getTimeSlotData
();
...
...
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