1.diy---header

master
sws 2024-09-25 15:48:17 +08:00
parent 647e10f25b
commit 45dfd5e1f9
2 changed files with 17 additions and 4 deletions

View File

@ -11,7 +11,7 @@
</view>
<view v-if="is_tabs_type" class="diy-content">
<template v-if="diy_data.length > 0">
<view v-for="(item, index) in diy_data" :key="index" :style="{'margin-top': -(item.com_data.style.common_style.floating_up * 2 || 0) + 'rpx' }">
<view v-for="(item, index) in diy_data" :key="index" :style="{ 'margin-top': -(item.com_data.style.common_style.floating_up * 2 || 0) + 'rpx' }">
<!-- 基础组件 -->
<componentDiySearch v-if="item.key == 'search'" :value="item.com_data"></componentDiySearch>
<componentDiyCarousel v-else-if="item.key == 'carousel'" :value="item.com_data"></componentDiyCarousel>
@ -55,7 +55,9 @@
</scroll-view>
</view>
</view>
<componentDiyFooter :key="key" :value="footer_data.com_data" @footer-height="footer_height_computer" @footer-click="footer_click_event"></componentDiyFooter>
<block v-if="is_show_footer !== '0'">
<componentDiyFooter :key="key" :value="footer_data.com_data" @footer-height="footer_height_computer" @footer-click="footer_click_event"></componentDiyFooter>
</block>
</view>
</template>
@ -164,6 +166,7 @@
//
tabs_data: {},
diy_data: [],
is_show_footer: '0',
tabs_home_id: this.propHomeId,
//
goods_list: [],
@ -197,6 +200,7 @@
// tabs
// const filter_tabs_list = this.value.tabs_data || [];
this.setData({
is_show_footer: this.value.header.com_data.content.bottom_navigation_show,
key: get_math(),
header_data: this.value.header,
footer_data: this.value.footer,

View File

@ -31,7 +31,7 @@
</view>
</view>
</view>
<view class="tc padding-top-lg" @tap="quick_close_event">
<view class="tc padding-top-lg flex-row jc-c align-c" @tap="quick_close_event">
<text class="padding-right-sm">{{ $t('nav-more.nav-more.h9g4b1') }}</text>
<iconfont name="icon-arrow-top" color="#ccc"></iconfont>
</view>
@ -85,7 +85,16 @@
//
popup_status: false,
propIsBar: false,
propTop: bar_height + 120 + 'rpx',
// 5,7,0 12 60bar_height
// #ifdef MP
propTop: bar_height + 34 + 5 + 12 + 'px;',
// #endif
// #ifdef H5 || MP-TOUTIAO
propTop: bar_height + 34 + 7 + 12 + 'px;',
// #endif
// #ifdef APP
propTop: bar_height + 34 + 0 + 12 + 'px;',
// #endif
};
},
mounted() {