修改默认模版的显示

master
于肖磊 2024-11-12 15:12:32 +08:00
parent 431179c589
commit af776e7cf4
4 changed files with 10 additions and 9 deletions

View File

@ -7,10 +7,10 @@
data: {
//
//
request_url:'http://shopxo.com/',
request_url:'http://new.shopxo.vip/',
// publicpublichttps://d1.shopxo.vip/public/
static_url:'http://shopxo.com/',
static_url:'http://new.shopxo.vip/',
// default
system_type: 'default',

View File

@ -233,11 +233,11 @@
}
//
const article_data = {
background_img_style: new_style.article_background_img_style,
background_img: new_style.article_background_img,
background_img_style: new_style?.article_background_img_style || '',
background_img: new_style?.article_background_img || '',
}
//
const gradient = gradient_handle(new_style.article_color_list, new_style.article_direction);
const gradient = gradient_handle(new_style?.article_color_list || [], new_style?.article_direction || '');
//
if (this.article_theme == '0') {
this.setData({

View File

@ -386,7 +386,7 @@
//
get_layout_style(new_style, form) {
const radius = form.theme == '6' ? '' : radius_computer(new_style.shop_radius);
const gradient = form.theme != '6' ? gradient_handle(new_style.shop_color_list, new_style.shop_direction) : '';
const gradient = form.theme != '6' ? gradient_handle(new_style?.shop_color_list || [], new_style?.shop_direction || '') : '';
let size_style = ``;
if (['1', '4'].includes(form.theme)) {
size_style = `width: calc((100% - ${new_style.content_outer_spacing * 2 + 'rpx'}) / 2);`;
@ -400,8 +400,8 @@
get_layout_img_style(new_style, form) {
const padding = ['0', '4'].includes(form.theme) ? padding_computer(new_style.shop_padding) + 'box-sizing: border-box;' : '';
const data = {
background_img_style: new_style.shop_background_img_style,
background_img: new_style.shop_background_img,
background_img_style: new_style?.shop_background_img_style || '',
background_img: new_style?.shop_background_img || '',
}
const background = form.theme != '6' ? background_computer(data) : '';
return `${padding} ${background}`;

View File

@ -212,7 +212,8 @@
} else if (form.tabs_theme == '3') {
bottom = 10;
}
return ['1', '2', '4'].includes(form.tabs_theme) ? '' : `padding-bottom: ${(new_style?.tabs_sign_spacing || 0) + bottom}px;`;
const tabs_sign_spacing = !isEmpty(new_style.tabs_sign_spacing) ? new_style.tabs_sign_spacing : 4;
return ['1', '2', '4'].includes(form.tabs_theme) ? '' : `padding-bottom: ${tabs_sign_spacing + bottom}px;`;
},
//
tabs_check_computer(data) {