wangxy 3 months ago
parent
commit
ab761a6d82
1 changed files with 10 additions and 4 deletions
  1. 10 4
      pages/selectGradesTerms/index.vue

+ 10 - 4
pages/selectGradesTerms/index.vue

@@ -102,10 +102,10 @@
 					data.activeXueke = 1
 				}
 				
-				nextTick(() => {
+				setTimeout(() => {
 					// 滚动到某个元素显示
 					data.scrollTop = `s_${data.activeProduct}`
-				})
+				}, 100)
 			})
 		}
 
@@ -188,10 +188,16 @@
 		function handleBack() {
 			if (userCode !== 'Visitor') {
 				
-				if (!data.activeProduct) {
+			
+				const auth = cacheManager.get('auth');
+				
+				if (!data.activeProduct && !auth.levelId) {
+					uni.showToast({
+						title:'请选择内容'
+					})
 					return;
 				}
-				const auth = cacheManager.get('auth');
+				
 				if (auth.subjectId == 2 && auth.typeId == 1) {
 					// 新版英语
 					uni.redirectTo({