|
@@ -285,7 +285,7 @@ Page({
|
|
|
|
|
|
const content = data[this.data.currentIndex].scrollingcontent;
|
|
const content = data[this.data.currentIndex].scrollingcontent;
|
|
const title = data[this.data.currentIndex].noticetitle;
|
|
const title = data[this.data.currentIndex].noticetitle;
|
|
- const duration = (title.length + content.length) * 0.4;
|
|
|
|
|
|
+ const duration = (title.length + content.length) * 0.5;
|
|
|
|
|
|
this.setData({
|
|
this.setData({
|
|
scrollDuration: duration,
|
|
scrollDuration: duration,
|
|
@@ -298,7 +298,7 @@ Page({
|
|
isScrolling: false
|
|
isScrolling: false
|
|
});
|
|
});
|
|
|
|
|
|
- // 等待1秒后切换到下一条
|
|
|
|
|
|
+ // 等待2秒后切换到下一条
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
const nextIndex = (this.data.currentIndex + 1) % this.data.noticeList.length;
|
|
const nextIndex = (this.data.currentIndex + 1) % this.data.noticeList.length;
|
|
this.setData({
|
|
this.setData({
|