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
72dfd681
Commit
72dfd681
authored
Apr 25, 2020
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会议室列表滚动问题
parent
a0c17226
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
58 deletions
+60
-58
appDetails.js
pages/appDetails/appDetails.js
+5
-3
meetingRoomList.axml
pages/meetingRoomList/meetingRoomList.axml
+55
-55
No files found.
pages/appDetails/appDetails.js
View file @
72dfd681
...
@@ -52,16 +52,18 @@ create.Page({
...
@@ -52,16 +52,18 @@ create.Page({
ddUserId
:
getApp
().
globalData
.
userid
ddUserId
:
getApp
().
globalData
.
userid
};
};
getThirdUserPlatForm
(
data
).
then
(
res
=>
{
getThirdUserPlatForm
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
msg
===
"当前账号已被其他账号绑定!"
)
{
console
.
log
(
JSON
.
stringify
(
res
));
console
.
log
(
res
.
data
.
msg
===
"当前账号已被其他账号绑定!"
);
if
(
res
.
data
.
msg
===
"当前账号已被其他账号绑定!"
)
{
this
.
setData
({
this
.
setData
({
isBind
:
false
,
isBind
:
false
,
bindStatus
:
"
fail
"
bindStatus
:
"
binded
"
});
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
that
.
setData
({
that
.
setData
({
isLoading
:
false
isLoading
:
false
});
});
},
2
000
);
},
10
000
);
clearInterval
(
interval
);
clearInterval
(
interval
);
}
else
if
(
res
.
data
.
data
)
{
}
else
if
(
res
.
data
.
data
)
{
if
(
res
.
data
.
data
.
platform
===
this
.
data
.
platform
)
{
if
(
res
.
data
.
data
.
platform
===
this
.
data
.
platform
)
{
...
...
pages/meetingRoomList/meetingRoomList.axml
View file @
72dfd681
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view class="iconfont iconicon_open" onTap="selectSearchTime"></view>
<view class="iconfont iconicon_open" onTap="selectSearchTime"></view>
</view>
</view>
</view>
</view>
<
view class="roomScrollView" style="{{canScroll ? '': 'overflow:hidden'
}}">
<
scroll-view scroll-y="true" class="roomScrollView" disable-scroll="{{!canScroll
}}">
<view class="reserveMeeting">
<view class="reserveMeeting">
<view class="meetingRoomContent" a:for="{{reserveRoomList}}" data-roomid="{{item.meetingRoomId}}" data-roomname="{{item.name}}" onTap="changeRoomTime">
<view class="meetingRoomContent" a:for="{{reserveRoomList}}" data-roomid="{{item.meetingRoomId}}" data-roomname="{{item.name}}" onTap="changeRoomTime">
<view class="roomMessage">
<view class="roomMessage">
...
@@ -52,67 +52,67 @@
...
@@ -52,67 +52,67 @@
<view class="noRoomTip">当前暂无会议室</view>
<view class="noRoomTip">当前暂无会议室</view>
</view>
</view>
</view>
</view>
<view>
</scroll-view>
<popup show="{{isShowModal}}" onClose="onCancel" position="bottom">
<popup show="{{isShowModal}}" onClose="onCancel" position="bottom">
<view a:if="{{!isShowCalendar}}" class="modalContent">
<view a:if="{{!isShowCalendar}}" class="modalContent">
<view class="modalHeader">
<view class="modalHeader">
<text onTap="onDetermine">确定</text>
<text onTap="onDetermine">确定</text>
</view>
<view class="modalTimeSlot">
<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 class="changeDay">
<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>
<view class="modalTimeSlot">
<view>
<text a:if="{{!modalFooter.startTime || !modalFooter.endTime}}">请选择会议时间</text>
<text a:if="{{dataNum == '3'}}">{{meetingTime.date.split('/')[1]}}月{{meetingTime.date.split('/')[2]}}日</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>
<view class="{{dataNum == '0' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="0">
</view>
<view>{{TimeSlot.todayTime.split('/')[1]}}月{{TimeSlot.todayTime.split('/')[2]}}日</view>
<scroll-view scroll-y='{{true}}' class="modalOccupyTimeSlot" scroll-into-view="{{toThisTime}}">
<view>今天</view>
<view class="OccupyTimeList" a:for="{{modalList}}" data-index="{{index}}" onTap="onChangeModalTime" id="{{item.reserveStartTime.substr(11,15)}}">
<view>
<view a:if="{{item.status==='BeOverdue'}}" class="beOverdue">
<text class="iconfont iconicon_Agreed1"></text>
</view>
</view>
<view class="{{dataNum == '1' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="1">
<view a:elif="{{item.status==='Uncheck'}}" class="Unchecked">
<view>{{TimeSlot.tomorrowTime.split('/')[1]}}月{{TimeSlot.tomorrowTime.split('/')[2]}}日</view>
<text class="iconfont iconicon_uncheck"></text>
<view>明天</view>
</view>
</view>
<view class="{{dataNum == '2' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="2">
<view a:elif="{{item.status==='checked'}}" class="checked">
<view>{{TimeSlot.afterTomorrowTime.split('/')[1]}}月{{TimeSlot.afterTomorrowTime.split('/')[2]}}日</view>
<text class="iconfont iconicon_Agreed1"></text>
<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>
</view>
<scroll-view scroll-y='{{true}}' class="modalOccupyTimeSlot" scroll-into-view="{{toThisTime}}">
<view>
<view class="OccupyTimeList" a:for="{{modalList}}" data-index="{{index}}" onTap="onChangeModalTime" id="{{item.reserveStartTime.substr(11,15)}}">
<view>{{item.reserveStartTime.substr(10,15)}} ~ {{item.reserveEndTime.substr(10,15)}}</view>
<view>
<view class="expiredStatus" a:if="{{item.reserveStatus === 'expired'}}">
<view a:if="{{item.status==='BeOverdue'}}" class="beOverdue">
<text class="iconfont iconicon_Agreed1"></text>
</view>
<view a:elif="{{item.status==='Uncheck'}}" class="Unchecked">
<text class="iconfont iconicon_uncheck"></text>
</view>
<view a:elif="{{item.status==='checked'}}" class="checked">
<text class="iconfont iconicon_Agreed1"></text>
</view>
</view>
<view>
<view>{{item.reserveStartTime.substr(10,15)}} ~ {{item.reserveEndTime.substr(10,15)}}</view>
<view class="expiredStatus" a:if="{{item.reserveStatus === 'expired'}}">
已过期
已过期
</view>
</view>
<view class="occupiedStatus" a:if="{{item.reserveStatus === 'occupied'}}">
<view class="occupiedStatus" a:if="{{item.reserveStatus === 'occupied'}}">
已被{{item.scheduleList[0].organizerName}}预定
已被{{item.scheduleList[0].organizerName}}预定
</view>
</view>
</view>
</view>
</scroll-view>
</view>
<view class="calendarMoadl" a:else>
<view class="calendarTip">
自定义时间
</view>
</view>
<calendar type="single" haveYear="{{false}}" selectedDate="{{meetingTime.date}}" onSelect="handleSelect" onMonthChange="onMonthChange" onYearChange="onYearChange" onSelectHasDisableDate="onSelectHasDisableDate" />
</view>
</view>
</popup>
</scroll-view>
\ No newline at end of file
</view>
<view class="calendarMoadl" a:else>
<view class="calendarTip">
自定义时间
</view>
<calendar type="single" haveYear="{{false}}" selectedDate="{{meetingTime.date}}" onSelect="handleSelect" onMonthChange="onMonthChange" onYearChange="onYearChange" onSelectHasDisableDate="onSelectHasDisableDate" />
</view>
</popup>
\ 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