Browse Source

修改navtitle

xiaohaizhao 1 năm trước cách đây
mục cha
commit
f864c2bec9

+ 3 - 0
packageA/course/detail.vue

@@ -78,6 +78,9 @@ export default {
                     return v.usetype == "file"
                 });
                 this.detail = res.data;
+                uni.setNavigationBarTitle({
+                    title: res.data.title,
+                })
                 setTimeout(() => { this.showListbox = true }, 100)
             })
         },

+ 3 - 0
packageA/course/list.vue

@@ -78,6 +78,9 @@ export default {
             if (this.cutoff(res.msg)) return;
             res.data.cover = this.getSpecifiedImage(res.data.attinfos[0] || {})
             this.detail = res.data;
+            uni.setNavigationBarTitle({
+                title: res.data.title,
+            })
         })
     },
     methods: {

+ 3 - 0
packageA/exam/detail.vue

@@ -205,6 +205,9 @@ export default {
                     this.$refs.timer.showTime = res.data.countdown;
                     this.showFinish = true;
                 }
+                uni.setNavigationBarTitle({
+                    title: res.data.title,
+                })
                 this.$nextTick(() => { this.setSwiperHeight() })
             })
         },

+ 3 - 1
packageA/exam/index.vue

@@ -49,7 +49,6 @@
 
 <script>
 export default {
-
     data() {
         return {
             crumbs: [],
@@ -83,6 +82,9 @@ export default {
         }]
         this.getType()
         this.getList(true)
+        uni.setNavigationBarTitle({
+            title: '考试',
+        })
     },
     onShow() {
         this.updateList()