谢杰标 2 gadi atpakaļ
vecāks
revīzija
ec963d56f0
2 mainītis faili ar 6 papildinājumiem un 4 dzēšanām
  1. 2 1
      pages/learn/index.vue
  2. 4 3
      pages3/live/detail.vue

+ 2 - 1
pages/learn/index.vue

@@ -832,6 +832,7 @@ export default {
     // 1668873600 ,2022.11.20的时间戳
     this.leftDays = 1668873600 - parseInt(curTime / 1000);
     this.sysTime = +this.$method.timest();
+    !this.userInfo && this.$api.refreshUserInfo();
   },
   async onShow() {
     uni.pageScrollTo({
@@ -960,7 +961,7 @@ export default {
           "/pages/live/index?token=" +
           uni.getStorageSync("token") +
           "&userInfo=" +
-          JSON.stringify(this.userInfo) +
+          (JSON.stringify(this.userInfo) || "") +
           "&channelId=" +
           item.liveUrl +
           "&gradeId=" +

+ 4 - 3
pages3/live/detail.vue

@@ -925,7 +925,7 @@ export default {
       this.courseDetail();
       this.getGoodsDetail();
       this.getAnswerList();
-      this.studyRecordMenuAllList();
+      // this.studyRecordMenuAllList();
       // this.answerTimer = setInterval(() => {
       //   this.getAnswerList();
       // }, 5000);
@@ -1142,7 +1142,7 @@ export default {
 			let sectionId = item.sectionId || item.menuId;
       let uuid = new Date().valueOf() + ""
       // buyCourse 是否购买课程:1是 0否
-			let encode = encodeURIComponent(this.config.hostLive+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+'&channelId='+
+			let encode = encodeURIComponent(this.config.hostLive+'/pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+(JSON.stringify(this.userInfo) || "")+'&channelId='+
       item.liveUrl+'&gradeId='+this.gradeId+'&courseId='+this.courseId+'&goodsId='+this.goodsId+'&orderGoodsId='+this.orderGoodsId+'&sectionId='+sectionId+
       '&chapterId='+chapterId+'&moduleId='+moduleId+'&buyCourse=1'+'&ident='+uuid)
 			uni.navigateTo({
@@ -1159,7 +1159,7 @@ export default {
 				// this.livingItem = res.data.data[0]
         if (res.data.data) {
 				this.livingItem = res.data.data.find(item => item.liveStartTime<=nowTime&&item.liveEndTime>nowTime);
-        let isShowNotice = res.data.data.every(e => e.studyStatus == -1)
+        let isShowNotice = this.goodsData.buyNote && res.data.data.every(e => e.studyStatus == -1)
           if (this.CountTo == 30 && isShowNotice) { // studyStatus 全部等于-1的时候就是没有看过
             this.noticeShow = true
             var timer = setInterval(() => {
@@ -2380,6 +2380,7 @@ export default {
             self.photoNum = self.goodsPhotographConfig.photoNum;
           }
         }
+        this.studyRecordMenuAllList();
       });
     },
     startVideo() {