修改显示逻辑

master
于肖磊 2024-10-08 11:48:10 +08:00
parent 0b694ee052
commit 94adb20493
7 changed files with 21 additions and 10 deletions

View File

@ -210,7 +210,7 @@
footer_height_value: 0,
};
},
created() {
created() {
//
this.init_config();

View File

@ -42,7 +42,7 @@
</view>
</view>
</view>
<hotWordList v-if="is_click" :propValue="form.content.hot_word_list" :prophotWordsColor="form.style.hot_words_color" :propIsPageSettings="true" @search_hot_close="search_hot_close"></hotWordList>
<hotWordList v-if="is_click && form.content.hot_word_list.length > 0" :propValue="form.content.hot_word_list" :prophotWordsColor="form.style.hot_words_color" :propIsPageSettings="true" @search_hot_close="search_hot_close"></hotWordList>
</view>
<block v-if="!is_immersion_model">
<view v-if="!is_positon_realative" class="nav-seat" :style="top_content_style">

View File

@ -16,7 +16,7 @@
required: true,
},
propSourceList: {
type: Object,
type: [ Object, Array ],
default: () => {
return {};
},

View File

@ -19,7 +19,7 @@
required: true,
},
propSourceList: {
type: Object,
type: [ Object, Array ],
default: () => {
return {};
},

View File

@ -23,7 +23,7 @@
required: true,
},
propSourceList: {
type: Object,
type: [ Object, Array ],
default: () => {
return {};
},

View File

@ -54,7 +54,7 @@
</view>
</template>
</view>
<hotWordList v-if="is_click && !propIsPageSettings" :propValue="form.hot_word_list" :prophotWordsColor="new_style.hot_words_color" @search_hot_close="search_hot_close"></hotWordList>
<hotWordList v-if="is_click && !propIsPageSettings && form.content.hot_word_list.length > 0" :propValue="form.hot_word_list" :prophotWordsColor="new_style.hot_words_color" @search_hot_close="search_hot_close"></hotWordList>
</view>
</template>
@ -180,9 +180,11 @@
})
},
search_icon_tap() {
if (!isEmpty(this.form.icon_src)) {
app.globalData.url_open(this.form.icon_src.page);
if (isEmpty(this.form.icon_src)) {
this.search_tap();
return;
}
app.globalData.url_open(this.form.icon_src.page);
},
url_event() {
if (!isEmpty(this.search_content)) {

View File

@ -3,7 +3,7 @@
<view :class="(plugins_mourning_data_is_app ? ' grayscale' : '') + (is_single_page == 1 ? ' single-page-top' : '')">
<!-- diy模式 -->
<block v-if="data_mode == 3">
<block v-if="data_list !== null">
<block v-if="data_list !== null && hackReset">
<componentDiy :propValue="data_list.config" :propDataId="data_list.id">
<template slot="diy-bottom">
<!-- 结尾 -->
@ -402,6 +402,8 @@
plugins_binding_data: null,
//
plugins_magic_data: null,
//
hackReset: true,
};
},
@ -437,7 +439,14 @@
onShow() {
//
app.globalData.page_event_onshow_handle();
this.setData({
hackReset: false,
});
this.$nextTick(() => {
this.setData({
hackReset: true,
});
});
//
this.init();