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
c183fe36
Commit
c183fe36
authored
Feb 28, 2020
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改utils方法,更改可用会议室图标
parent
cb85460e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
index.js
pages/index/index.js
+1
-0
meetingRoomList.axml
pages/meetingRoomList/meetingRoomList.axml
+2
-2
place.axml
pages/place/place.axml
+3
-2
utils.js
utils/utils.js
+2
-2
No files found.
pages/index/index.js
View file @
c183fe36
...
...
@@ -40,6 +40,7 @@ Page({
const
today
=
new
Date
()
const
finalDate
=
new
Date
(
today
)
finalDate
.
setDate
(
today
.
getDate
()
-
today
.
getDay
())
console
.
log
(
finalDate
.
toLocaleDateString
())
that
.
setData
({
scheduleList
:
scheduleList
,
todayStr
:
finalDate
.
toLocaleDateString
(),
...
...
pages/meetingRoomList/meetingRoomList.axml
View file @
c183fe36
...
...
@@ -44,10 +44,10 @@
</view>
<view class="reserveRoomNumAndLocation">
<view class="reserveRoomNum">
<text class="locationIcon iconfont icon
dingwei1
"></text>{{item.capacityNum}}
<text class="locationIcon iconfont icon
canhuiren
"></text>{{item.capacityNum}}
</view>
<view class="reserveRoomLocation">
<text class="locationIcon iconfont icon
canhuiren
"></text>{{item.locationName}}
<text class="locationIcon iconfont icon
dingwei1
"></text>{{item.locationName}}
</view>
</view>
</view>
...
...
pages/place/place.axml
View file @
c183fe36
...
...
@@ -21,10 +21,11 @@
</view>
<view class="mettingRoomDetail">
<view class="num">
<text class="numIcon iconfont icon
beifang
ren"></text>
<text class="numIcon iconfont icon
canhui
ren"></text>
<text>{{item.capacityNum}}</text>
</view>
<view class="equipment">
<view class="equipment" a:if="{{item.equipFacilityLabelList}}">
<text class="numIcon iconfont icondingwei1"></text>
<text a:for="{{item.equipFacilityLabelList}}" a:for-item="equipmentList">{{equipmentList.name}}</text>
</view>
</view>
...
...
utils/utils.js
View file @
c183fe36
...
...
@@ -6,9 +6,9 @@ export function throttle(fn, gapTime) {
let
_lastTime
=
null
return
function
()
{
let
_nowTime
=
+
new
Date
()
let
_nowTime
=
new
Date
()
if
(
_nowTime
-
_lastTime
>
gapTime
||
!
_lastTime
)
{
fn
()
fn
.
apply
(
this
,
arguments
)
//将this和参数传给原函数
_lastTime
=
_nowTime
}
}
...
...
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