wangguoyu 3 months ago
parent
commit
05abebe983
1 changed files with 7 additions and 6 deletions
  1. 7 6
      pages/study/index.vue

+ 7 - 6
pages/study/index.vue

@@ -676,17 +676,18 @@
 
 	function chooseMethodListClick(data, data2, index) {
 
-		// console.log('data', data); // 节内容
-		// console.log('data2', data2); //章内容
-		const authCode = getUserIdentity();
+		console.log('data', data); // 节内容
+		 console.log('data2', data2); //章内容
+		const authCode = getUserIdentity();
+		debugger
 		if (currentProduct.value == 2 && typeId.value == 1) {
-			const isFirst = data.jieName == data2.jieList[0].jieName
-			if (!cacheManager.get('auth') && !isFirst) {
+		//	const isFirst = data.jieName == data2.jieList[0].jieName
+			if (!cacheManager.get('auth') && data.number !=1) {
 				youkeDialogRef.value.handleShow();
 				return false;
 			}
 			// console.log('authCode', authCode);
-			if (!(authCode == 'VIP' || isFirst)) {
+			if (!(authCode == 'VIP' || data.number ==1)) {
 				goPayDialogRef.value.handleShow();
 				return false
 			}