1.diy---置顶开发

master
sws 2024-09-28 19:24:13 +08:00
parent 4cee900821
commit af7f2147d1
3 changed files with 11 additions and 3 deletions

View File

@ -63,8 +63,12 @@
if (tabs_bg.length > 0 && tabs_bg[0].color !== '') {
new_tabs_background = gradient_computer(new_style.common_style);
}
let new_tabs_background_img = background_computer(new_style.common_style);
if (new_tabs_background_img.length > 0) {
new_tabs_background_img += 'background-position: top left;';
}
this.setData({
tabs_background: background_computer(new_style.common_style) + (new_tabs_background.length > 0 ? new_tabs_background : 'background:#fff'),
tabs_background: (new_tabs_background.length > 0 ? new_tabs_background : 'background:#fff;') + new_tabs_background_img,
});
} else {
this.tabs_background = 'background:transparent';

View File

@ -62,8 +62,12 @@
if (tabs_bg.length > 0 && tabs_bg[0].color !== '') {
new_tabs_background = gradient_computer(new_style.common_style);
}
let new_tabs_background_img = background_computer(new_style.common_style);
if (new_tabs_background_img.length > 0) {
new_tabs_background_img += 'background-position: top left;';
}
this.setData({
tabs_background: background_computer(new_style.common_style) + (new_tabs_background.length > 0 ? new_tabs_background : 'background:#fff'),
tabs_background: (new_tabs_background.length > 0 ? new_tabs_background : 'background:#fff;') + new_tabs_background_img,
});
} else {
this.tabs_background = 'background:transparent';

View File

@ -91,7 +91,7 @@
//
let other_style = 'calc(' + this.propTop + 'px' + ' + 66rpx)';
let new_tabs_top_style = this.propNavIsTop || this.propTabsIsTop || new_content.tabs_top_up == '1' ? (new_content.tabs_top_up == '1' ? 'top:0;padding-top:' + other_style + ';z-index:3;' : '') : '';
let new_tabs_top_style = this.propNavIsTop || this.propTabsIsTop || new_content.tabs_top_up == '1' ? (new_content.tabs_top_up == '1' ? 'top:' + other_style + ';z-index:3;' : '') : '';
let new_top_up = new_content.tabs_top_up;
// #ifdef H5 || MP-TOUTIAO
if (this.propTabsIsTop) {