修改选项卡的显示

master
于肖磊 2025-02-10 13:58:56 +08:00
parent cd6ca800de
commit c4746232cd
4 changed files with 4 additions and 19 deletions

View File

@ -116,12 +116,6 @@
this.tabs_background = 'background:transparent';
}
},
propTop(val) {
let new_style = this.propValue.style || {};
this.setData({
sticky_top: val + (new_style?.tabs_margin?.margin_top || 0),
});
},
propKey(val) {
this.setData({
diy_key: val,
@ -199,6 +193,7 @@
const tabs_content = new_style?.tabs_content || old_border_and_box_shadow;
this.setData({
top_up: new_content.tabs_top_up,
sticky_top: this.propTop + (new_style?.tabs_margin?.margin_top || 0),
article_tabs: new_data,
style_container: common_styles_computer(common_style),
style_img_container: common_img_computer(common_style, this.propIndex),

View File

@ -179,12 +179,6 @@
this.tabs_background = 'background:transparent';
}
},
propTop(val) {
let new_style = this.propValue.style || {};
this.setData({
sticky_top: val + (new_style?.tabs_margin?.margin_top || 0),
});
},
propKey(val) {
//
this.setData({
@ -251,6 +245,7 @@
this.tabs_click_event(0);
this.setData({
top_up: new_content.tabs_top_up,
sticky_top: this.propTop + (new_style?.tabs_margin?.margin_top || 0),
data_tabs: new_data,
//
outer_container_width: common_style.margin_left + common_style.margin_right + common_style.padding_left + common_style.padding_right + new_style.data_content_margin.margin_left + new_style.data_content_margin.margin_right + new_style.data_content_padding.padding_left + new_style.data_content_padding.padding_right,

View File

@ -353,7 +353,7 @@
is_search_alone_row: header.com_data.content.data_alone_row_value.length > 0 ? true : false,
data_alone_row_space: parseInt(header.com_data.style.data_alone_row_space || 5),
is_immersive_style_and_general_safe_distance_value: header_style.immersive_style == '1' && header_style.general_safe_distance_value == '1',
is_the_safe_distance_enabled: header_style.immersive_style == '1' && header_style.general_safe_distance_value == '1' && tabs_data.length == 0,// diy_data
is_the_safe_distance_enabled: header_style.immersive_style == '1' && header_style.general_safe_distance_value == '1' && new_tabs_data.length == 0,// diy_data
});
//
uni.setStorageSync(this.cache_key + this.tabs_home_id, diy_data);

View File

@ -114,12 +114,6 @@
this.tabs_background = 'background:transparent';
}
},
propTop(val) {
let new_style = this.propValue.style || {};
this.setData({
sticky_top: val + (new_style?.tabs_margin?.margin_top || 0),
});
},
propKey(val) {
//
this.setData({
@ -192,6 +186,7 @@
const tabs_content = new_style?.tabs_content || old_border_and_box_shadow;
this.setData({
top_up: new_content.tabs_top_up,
sticky_top: this.propTop + (new_style?.tabs_margin?.margin_top || 0),
goods_tabs: new_data,
style_container: common_styles_computer(common_style),
style_img_container: common_img_computer(common_style, this.propIndex),