diff --git a/public/index.html b/public/index.html
index 4de9392..df364a8 100644
--- a/public/index.html
+++ b/public/index.html
@@ -15,7 +15,7 @@
-
+
<% if (process.env.NODE_ENV === 'development') { %>
diff --git a/src/views/next/screen-content-left/jinshui-impression/index.vue b/src/views/next/screen-content-left/jinshui-impression/index.vue
index 1e2f464..200f9d4 100644
--- a/src/views/next/screen-content-left/jinshui-impression/index.vue
+++ b/src/views/next/screen-content-left/jinshui-impression/index.vue
@@ -95,20 +95,36 @@ export default {
this.videoStatus = 'end'
},
// 文字滚动效果
- textScroll () {
- this.textScrollId = setTimeout(() => {
- this.textScroll()
- }, 40)
- this.$nextTick(() => {
- if (this.scrollViewTop >= -this.$refs['para-container'].children[0].children[0].offsetHeight) {
- this.scrollViewTop -= 1
- } else {
- clearTimeout(this.textScrollId)
- this.scrollViewTop = 0
- this.textScroll()
- }
- })
- }
+ // textScroll () {
+ // this.textScrollId = setTimeout(() => {
+ // this.textScroll()
+ // }, 40)
+ // this.$nextTick(() => {
+ // if (this.scrollViewTop >= -this.$refs['para-container'].children[0].children[0].offsetHeight) {
+ // this.scrollViewTop -= 1
+ // } else {
+ // clearTimeout(this.textScrollId)
+ // this.scrollViewTop = 0
+ // this.textScroll()
+ // }
+ // })
+ // }
+ textScroll() {
+ this.textScrollId = setTimeout(() => {
+ this.$nextTick(() => {
+ if (this.scrollViewTop >= -this.$refs['para-container'].children[0].children[0].offsetHeight) {
+ this.scrollViewTop -= 1;
+ this.textScroll(); // 递归调用
+ } else {
+ clearTimeout(this.textScrollId);
+ this.scrollViewTop = 0;
+ // 继续递归调用
+ this.textScroll();
+ }
+ });
+ }, 40);
+}
+
}
}