Commit a27d4f8e by xiexiaoqin

创建完会议回到当前日期

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