Commit 61bf197e by fengzhaoyu

提测2版

parents e1007fa8 dcb5ea4b
......@@ -2,7 +2,7 @@
<view>2020年3月</view>
<view onTap="changesidebar">icon</view>
</view>
<scroll-view class="indexScrollView" scroll-y="{{true}}" style="background: #FFFFFF" lower-threshold="1000" onScrollToLower="lower" scroll-into-view="{{thisDay}}">
<scroll-view class="indexScrollView" scroll-y="{{true}}" style="background: #FFFFFF" lower-threshold="1000" onScrollToLower="lower" scroll-into-view="{{todayStr}}">
<block a:for="{{scheduleList}}" a:for-item="scheduleYearList">
<block a:for="{{scheduleYearList}}">
<block a:if="{{item.type == 'year'}}">
......
......@@ -59,18 +59,25 @@ create.Component({
scheduleList.push(that.returnScheduleList(2019 + i));
}
// 第一次加载
const today = new Date();
// finalDate 是用来定位到今天的
const finalDate = new Date(today);
const finalDate = new Date();
// finalDate.setDate(today.getDate() - today.getDay())
that.setData({
that.setData(
{
scheduleList: scheduleList,
todayStr: finalDate.toLocaleDateString(),
thisYear: year,
maxYear: year,
startPageOnShow: true,
isFirstLoad: false
});
}
// ,
// () => {
// that.setData({
// });
// }
);
}
);
});
......
......@@ -193,6 +193,7 @@ Component({
if (this.props.endTime) {
endDate = new Date(this.props.endTime);
}
console.log(this.props)
this.changeStart(startDate);
this.changeEnd(endDate);
......
......@@ -10,12 +10,7 @@
<view onTap="changeTabBar" data-tabbar='0'>
<view class="tabBarView {{tabBarIndex === '0' ? 'ischooseTabBar' : ''}}">
<text class="iconfont iconicon_dynamic"></text>
<<<<<<< HEAD
<text>动态
</text>
=======
<text>动态</text>
>>>>>>> b7fb19ed327785cdcb5da3f8a7365609dc94eaf8
</view>
</view>
<view onTap="changeTabBar" data-tabbar='1'>
......
......@@ -212,22 +212,12 @@
</view>
<file-list fileView="{{item.fileView}}" organizer="{{organizer}}" currentPeople="{{currentPeople}}" onDeleteMeetingFile="deleteMeetingFile"/>
</view>
<view a:if="{{item.content}}" class='simple-column'>{{item.content}}{{item.createTime}}</view>
</block>
<view class="affair-placeholder" a:if="{{affairList.length <= 1}}">
<image mode="widthFix" src="../../assests/noDynamic.png"/>
<view class="affair-placeholder-text">我们不开无准备的会,快来上传会议文件吧。</view>
<view onTap="addMeetingFile" class="affair-placeholder-button">添加会议文件</view>
</view>
<<<<<<< HEAD
=======
<view a:if="{{item.content}}" class='simple-column'>{{item.content}} {{item.createTime}}</view>
</block>
<view class="affair-placeholder" a:if="{{affairList.length <= 1}}">
<image mode="widthFix" src="../../assests/noDynamic.png"/>
<view class="affair-placeholder-text">我们不开无准备的会,快来上传会议文件吧。</view>
<view onTap="addMeetingFile" class="affair-placeholder-button">添加会议文件</view>
>>>>>>> b7fb19ed327785cdcb5da3f8a7365609dc94eaf8
</view>
<!--<view class="delMetting" onTap="delSheudle"><view class=" iconfont iconicon_close"></view><view>
删除该会议</view></view> -->
......@@ -244,4 +234,4 @@
<task-panel a:if="{{pop.type === 'updateTask'}}" action='update' onDeleteTask="deleteTask"/>
</popup>
</view>
</block>
\ No newline at end of file
</block>
\ No newline at end of file
......@@ -194,8 +194,8 @@ create.Page({
this.$store.data.originUsers = participatorList
this.$store.data.locationName = res.data.data.location.locationName
this.$store.data.roomId = res.data.data.meetingRoomId < 0 ? '' : res.data.data.meetingRoomId
this.$store.data.startTime = res.data.data.startTime.replace(/'-'/g, "\/")
this.$store.data.endTime = res.data.data.endTime.replace(/'-'/g, "\/")
this.$store.data.startTime = res.data.data.startTime.replace(/-/g, "/")
this.$store.data.endTime = res.data.data.endTime.replace(/-/g, "/")
this.$store.data.participatorList = participatorList
this.$store.data.participatorUserId = participatorUserId
this.$store.data.originUsersId = participatorUserId
......
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