wangguoyu преди 3 месеца
родител
ревизия
e970f44720
променени са 1 файла, в които са добавени 11 реда и са изтрити 7 реда
  1. 11 7
      pages/study/lookShipin.vue

+ 11 - 7
pages/study/lookShipin.vue

@@ -211,6 +211,7 @@
 				this.goUpPage()
 			},
 			goNext() {
+				debugger
 				this.$refs.popupRef.close();
 				if (!cacheManager.get('auth')) {
 					console.log(this);
@@ -218,17 +219,20 @@
 				} else {
 					const AuthCode = getUserIdentity();
 					console.log(AuthCode);
-					if (AuthCode == 'Not-Vip') {
-						this.$refs.svipDialogRef.handleShow();
-						return false
-					}
+					// if (AuthCode == 'Not-Vip') {
+					// 	this.$refs.svipDialogRef.handleShow();
+					// 	return false
+					// }
 					//	debugger
 					Number(this.jieId++)
+					console.log('this.pageData',this.pageData);
 					let currentObject = this.cacheZhangInfo.zhangList[this.cacheCurrentZhangIndex].jieList.find(item =>
 						item.jieId == this.jieId);
-					this.pageData = {
-						...currentObject
-					}
+						if(currentObject){
+							this.pageData = {
+								...currentObject
+							}
+						}
 					// lastFlag是否是本章最后一节,0否1是  type,1视频,2试题
 					if (this.pageData.lastFlag == 1 && this.pageData.type == 2) {
 						uni.redirectTo({