Forráskód Böngészése

更新新英语切换

wangxy 2 hónapja
szülő
commit
72fd9854e1
1 módosított fájl, 4 hozzáadás és 3 törlés
  1. 4 3
      pages/wordList/wordList.vue

+ 4 - 3
pages/wordList/wordList.vue

@@ -126,7 +126,7 @@
 
 	// Swiper 切换
 	function handleSwiperChange(e) {
-    useActiveDomIntoView('.word-title-box','.title-item.active')
+
 		listData.activeIndex = e.detail.current;
 		if (!swiperData.isAllowed) {
 			// 不满足条件时回退到原索引
@@ -200,8 +200,9 @@
 
 	// 获取滚动距离
 	function findWordLeft(data) {
-		wordLeft.value = data * 80;
-		return wordLeft.value;
+    useActiveDomIntoView('.word-title-box','.title-item.active')
+		// wordLeft.value = data * 80;
+		// return wordLeft.value;
 	}
 
 	// 非游客接口数据