panhui 3 years ago
parent
commit
aaa8b4ce22
1 changed files with 10 additions and 2 deletions
  1. 10 2
      src/views/creator/Detail.vue

+ 10 - 2
src/views/creator/Detail.vue

@@ -131,6 +131,7 @@
                     <van-tab title="展厅" v-if="showRoom" name="showRoom"></van-tab>
                 </van-tabs>
             </van-sticky>
+
             <van-list
                 style="padding-bottom: 100px"
                 class="list"
@@ -139,7 +140,7 @@
                 :finished="finished"
                 :immediate-check="false"
                 finished-text=""
-                @load="getData"
+                @load="getList"
             >
                 <template v-for="(item, index) in list" :key="item.id">
                     <show-info v-if="isShowType" v-model:info="list[index]" list></show-info>
@@ -237,7 +238,7 @@ export default {
             showRoom: false,
             isSave: false,
             showDialog: false,
-            publishShow: false
+            publishShow: true
         };
     },
     mounted() {
@@ -267,6 +268,11 @@ export default {
             });
     },
     methods: {
+        getList() {
+            if (this.info.isPublicShow || !this.publishShow) {
+                this.getData();
+            }
+        },
         beforeData() {
             if (this.isShowType) {
                 return {
@@ -331,6 +337,8 @@ export default {
                 .then(res => {
                     if (res.value === true || res.value === '1') {
                         this.publishShow = true;
+                    } else {
+                        this.publishShow = false;
                     }
                     return Promise.resolve();
                 })