1002884655 4 anni fa
parent
commit
6607fe1462
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6
    1
      src/pages/Index/BookDetail/index.vue

+ 6
- 1
src/pages/Index/BookDetail/index.vue Vedi File

@@ -55,7 +55,7 @@
55 55
               </view>
56 56
 
57 57
               <!-- 去答题 -->
58
-              <view class="ToAnswer">
58
+              <view class="ToAnswer" v-if="ArticleInfo.postTestList && ArticleInfo.postTestList.length">
59 59
                 <navigator :url="`/pages/Index/BookAnswer/index?id=${ArticleInfo.postId}`" hover-class="none">去答题</navigator>
60 60
               </view>
61 61
 
@@ -110,6 +110,11 @@ export default {
110 110
     MainPage,
111 111
     PageBottom
112 112
   },
113
+  onShow () {
114
+    if (this.UserInfo.studentId && this.$refs.MainPage) {
115
+      this.$refs.MainPage.ShowStudentIdPopup = false
116
+    }
117
+  },
113 118
   onShareAppMessage () {
114 119
     return {
115 120
       title: this.ArticleInfo.shareSetting === null ? this.ArticleInfo.name : this.ArticleInfo.shareSetting.title,