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