谢杰标 2 years ago
parent
commit
3aeee66b02
2 changed files with 7 additions and 1 deletions
  1. 4 1
      pages/learn/index.vue
  2. 3 0
      pages/questionBank/index.vue

+ 4 - 1
pages/learn/index.vue

@@ -345,7 +345,7 @@
 				<view class="content">
 					为避免个人信息不正确导致您的学习时长无效,请认真核对以下信息是否正确,如信息有误请取消当前操作,立刻联系020-38946666
 					
-					<view class="msg-list">
+					<view class="msg-list" v-if="userInfo">
 						<view class="item">
 							<text class="item__left">姓名:</text>
 							<text class="item__right">{{userInfo.realname}}</text>
@@ -498,6 +498,9 @@ export default {
 		},
 		// 查询直播课
 		getCourseLiveQues() {
+			if (!this.$method.isLogin()) { 
+              return;
+            }
 			this.allLoading = true
 			let arrs = [
 				this.$api.listUserVideoLive(this.paramC), // 查询用户拥有视频+直播商品 /goods/listUserVideoLive

+ 3 - 0
pages/questionBank/index.vue

@@ -129,6 +129,9 @@ export default {
 	methods: {
 		// 查询用户拥有免费+自购题库商品 /bank/question/listUserFreeUnionBuyGoodsList
 		getBankList() {
+			if (!this.$method.isLogin()) { 
+              return;
+            }
 			this.allLoading = true
 			this.$api.listUserFreeUnionBuyGoodsList(this.param).then((res) => {
 				if (res.data.code == 200) {