Browse Source

处理手动看课逻辑

XSLu08042 5 ngày trước cách đây
mục cha
commit
8988846217
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      pages_course/videovip.vue

+ 4 - 4
pages_course/videovip.vue

@@ -456,8 +456,7 @@
 		    coureLogin: {
 		      immediate: true,          // 页面一进入就检查一次
 		      handler(val) {
-				  console.log(val ,this.isLogin)
-		        if (val == 2) {
+		        if (val == 2&&this.isLogin) {
 					console.log("看课AppToken失效,请重新登录")
 					this.isLogin = false
 					this.isAddKf = 0
@@ -548,6 +547,7 @@
 			// }
 			this.$isLoginCourse().then(res=>{
 				if(res) {
+					this.isLogin = true
 					this.getUserInfoLooks()
 					if (this.isAddKf == 1 && this.userinfo.userId) {
 						console.log(1233)
@@ -660,7 +660,7 @@
 										uni.getStorageSync('TOKEN_WEXIN');
 										this.userInfo = uni.getStorageSync('userInfo');
 										this.isLogin = true
-										this.getH5CourseVideoDetails()
+										// this.getH5CourseVideoDetails()
 										// setTimeout(()=>{
 										// 	this.getIsAddKf()
 										// },200)
@@ -894,7 +894,7 @@
 													.user));
 												this.userInfo = res.user;
 												uni.hideLoading()
-												this.checkUserInfoA()
+												// this.checkUserInfoA()
 												// this.isLogin = true
 												// setTimeout(()=>{
 												// 	this.getIsAddKf()