Commit a27d4f8e by xiexiaoqin

创建完会议回到当前日期

parent b4e6b0da
......@@ -9,8 +9,8 @@
},
"dingtalk-jsapi": {
"version": "2.10.3",
"resolved": "https://registry.npmjs.org/dingtalk-jsapi/-/dingtalk-jsapi-2.10.3.tgz",
"integrity": "sha512-ozfuwWzOKx4qgfs+ijdN2XgylB8xZ4zxetDp4ND272YDD5C9GJLo5GKhsFR6kQ/lnU0WIzBo2rYjEwZKtMrJxw==",
"resolved": "https://registry.npm.taobao.org/dingtalk-jsapi/download/dingtalk-jsapi-2.10.3.tgz",
"integrity": "sha1-reXC+Fj0rEEUPSlK4XKzTvrrleI=",
"requires": {
"promise-polyfill": "^7.1.0"
}
......@@ -23,8 +23,8 @@
},
"promise-polyfill": {
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-7.1.2.tgz",
"integrity": "sha512-FuEc12/eKqqoRYIGBrUptCBRhobL19PS2U31vMNTfyck1FxPyMfgsXyW4Mav85y/ZN1hop3hOwRlUDok23oYfQ=="
"resolved": "https://registry.npm.taobao.org/promise-polyfill/download/promise-polyfill-7.1.2.tgz",
"integrity": "sha1-qwUwHYwoU2MBYi1pInYyJppwyjs="
},
"rrule": {
"version": "2.6.4",
......
......@@ -388,9 +388,9 @@
.iconicon_days {
position: absolute;
left: 7rpx;
top: 10rpx;
font-size: 27rpx;
left: 9rpx;
top: 12rpx;
font-size: 24rpx;
}
.tabBarView .iconicon_days {
......
......@@ -432,7 +432,7 @@ create.Page({
}
// 取出DateMap的value值平铺到DateList
const DateList = [];
DateMap.forEach(function(value, key) {
DateMap.forEach(function (value, key) {
const keyDate = new Date(key);
const year = keyDate.getFullYear();
const month = keyDate.getMonth();
......@@ -465,13 +465,13 @@ create.Page({
value: `第${getWeekNumber(year, month, date)}周,${month +
1}${date}日 - ${
rangeMonth2 == month ? "" : rangeMonth2 + 1 + "月"
}${rangeDay2}日`,
}${rangeDay2}日`,
dateStr: `${year}/${month + 1}/${date}-week`
});
}
// 有日程长度
if (value.length !== 0) {
value.sort(function(a, b) {
value.sort(function (a, b) {
return a.startTime.getTime() - b.startTime.getTime();
});
value.forEach((item, index) => {
......@@ -515,6 +515,8 @@ create.Page({
),
loading: false
});
//定位到当前日期
this.backToToday("first");
},
//日程上拉加载
lower() {
......@@ -697,7 +699,7 @@ create.Page({
createMeeting() {
dd.navigateTo({ url: "./../createMeeting/createMeeting" });
},
nextDetail: throttle(function(e) {
nextDetail: throttle(function (e) {
dd.navigateTo({
url: `./../meetingDetail/meetingDetail?scheduleItem=${encodeURIComponent(
JSON.stringify(e.target.dataset.item)
......
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