Commit c183fe36 by liang ce

修改utils方法,更改可用会议室图标

parent cb85460e
......@@ -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(),
......
......@@ -44,10 +44,10 @@
</view>
<view class="reserveRoomNumAndLocation">
<view class="reserveRoomNum">
<text class="locationIcon iconfont icondingwei1"></text>{{item.capacityNum}}
<text class="locationIcon iconfont iconcanhuiren"></text>{{item.capacityNum}}
</view>
<view class="reserveRoomLocation">
<text class="locationIcon iconfont iconcanhuiren"></text>{{item.locationName}}
<text class="locationIcon iconfont icondingwei1"></text>{{item.locationName}}
</view>
</view>
</view>
......
......@@ -21,10 +21,11 @@
</view>
<view class="mettingRoomDetail">
<view class="num">
<text class="numIcon iconfont iconbeifangren"></text>
<text class="numIcon iconfont iconcanhuiren"></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>
......
......@@ -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
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment