Browse Source

样式修改

tanxue 4 weeks ago
parent
commit
29710ebbf3
1 changed files with 13 additions and 4 deletions
  1. 13 4
      pages/study/index.vue

+ 13 - 4
pages/study/index.vue

@@ -125,14 +125,18 @@
 	}
 	}
 
 
 	function getProjectImg() {
 	function getProjectImg() {
-		if (currentProduct.value == 1) {
+		if (currentProduct.value == 1 && typeId.value==2) {
 			// 数学
 			// 数学
 			productTipImg.value = 'static/images/study/shuxue/shuxue-tip.gif';
 			productTipImg.value = 'static/images/study/shuxue/shuxue-tip.gif';
 			getBj('shuxue')
 			getBj('shuxue')
-		} else if (currentProduct.value == 2) {
+		} else if (currentProduct.value == 2 && typeId.value==2) {
 			// 英语
 			// 英语
 			productTipImg.value = 'static/images/study/yingyu/yingyu-tip.gif'
 			productTipImg.value = 'static/images/study/yingyu/yingyu-tip.gif'
 			getBj('yingyu');
 			getBj('yingyu');
+		}else if (currentProduct.value == 1 && typeId.value==1) {
+			// 英语
+			productTipImg.value = 'static/images/study/shuxue/shuxue-tip.gif'
+			getBj('shuxueNew');
 		}
 		}
 	}
 	}
 
 
@@ -158,16 +162,21 @@
 	function daoTipClose() {
 	function daoTipClose() {
 		if (cacheManager.get('auth')) {
 		if (cacheManager.get('auth')) {
 			// 非游客 记缓存
 			// 非游客 记缓存
-			if (currentProduct.value == 1) {
+			if (currentProduct.value == 1 && typeId.value==2) {
 				// 数学
 				// 数学
 				cacheManager.updateObject('dao-tip', {
 				cacheManager.updateObject('dao-tip', {
 					shuxue: 'has'
 					shuxue: 'has'
 				})
 				})
-			} else if (currentProduct.value == 2) {
+			} else if (currentProduct.value == 2 && typeId.value==2) {
 				// 英语
 				// 英语
 				cacheManager.updateObject('dao-tip', {
 				cacheManager.updateObject('dao-tip', {
 					yingyu: 'has'
 					yingyu: 'has'
 				})
 				})
+			}else if (currentProduct.value == 1 && typeId.value==1) {
+				// 英语
+				cacheManager.updateObject('dao-tip', {
+					shuxueNew: 'has'
+				})
 			}
 			}
 		} else {
 		} else {
 			//游客
 			//游客