1.diy---置顶开发
parent
4cee900821
commit
af7f2147d1
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue