wangxy 4 месяцев назад
Родитель
Сommit
0ee1a7122e
1 измененных файлов с 6 добавлено и 15 удалено
  1. 6 15
      pages/study/index.vue

+ 6 - 15
pages/study/index.vue

@@ -110,23 +110,14 @@
 	
 	function listSelectJieClick(item,data,index) {
 		
-		if ((!cacheManager.get('auth') && item.number != 1)||(!cacheManager.get('auth') && data.type == 2) ) {
-			youkeDialogRef.value.handleShow();
-			return;
-		}
-		const authCode = getUserIdentity();
-		if (!(authCode == 'VIP' || item.number == 1)) {
-		//	debugger
-			goPayDialogRef.value.handleShow();
-			return false
+		if( cacheManager.get('auth')){
+			cacheManager.updateObject('auth', {
+				currentZhang: zhangList.value.findIndex(citem => citem.zhangId == item.zhangId),
+				zhangId: item.zhangId
+			})
 		}
 		
-		if (data.type == 2) {
-			// 最后一项
-			goKaoshi(data,index)
-		} else {
-			goLookShipin(data,index)
-		}
+		listClick(data,item,index );
 	}
 	
 	function getProjectImg(){