diff --git a/components/diy/coupon.vue b/components/diy/coupon.vue new file mode 100644 index 00000000..d6989e22 --- /dev/null +++ b/components/diy/coupon.vue @@ -0,0 +1,796 @@ + + + + diff --git a/components/diy/hot-zone.vue b/components/diy/hot-zone.vue index 242febb5..10e23645 100644 --- a/components/diy/hot-zone.vue +++ b/components/diy/hot-zone.vue @@ -3,7 +3,7 @@ - + diff --git a/components/diy/modules/tabs-view.vue b/components/diy/modules/tabs-view.vue index 87d1fa08..5e34376b 100644 --- a/components/diy/modules/tabs-view.vue +++ b/components/diy/modules/tabs-view.vue @@ -3,7 +3,7 @@ - {{ item.title }} + {{ item.title }} {{ item.desc }} @@ -30,6 +30,10 @@ tabs_spacing: '', tabs_list: [], active_index: 0, + tabs_theme_style: { + tabs_title_checked: '', + tabs_title: '', + }, }; }, mounted() { @@ -47,6 +51,11 @@ // 选项卡样式 this.tabs_check = this.tabs_check_computer(new_style); this.icon_tabs_check = `${this.tabs_check};line-height: 1;background-clip: text;-webkit-background-clip: text;-webkit-text-fill-color: transparent;`; + // 标题样式 + this.tabs_theme_style = { + tabs_title_checked: `font-weight: ${new_style.tabs_weight_checked};font-size: ${new_style.tabs_size_checked}px;color:${new_style.tabs_color_checked};` + (['2', '4'].includes(this.tabs_theme_index) ? this.tabs_check : ``), + tabs_title: `font-weight: ${new_style.tabs_weight};font-size: ${new_style.tabs_size}px;color:${new_style.tabs_color};`, + }; }, get_tabs_theme(data) { switch (data.tabs_theme) { @@ -70,24 +79,6 @@ }; return gradient_computer(new_gradient_params); }, - // 标题样式 - title_style(index) { - const new_style = this.value.style || {}; - const tabs_theme_style = { - tabs_title_checked: `font-weight: ${new_style.tabs_weight_checked};font-size: ${new_style.tabs_size_checked}px;color:${new_style.tabs_color_checked};`, - tabs_title: `font-weight: ${new_style.tabs_weight};font-size: ${new_style.tabs_size}px;color:${new_style.tabs_color};`, - }; - // 默认是未选中的状态 - let style = `${tabs_theme_style.tabs_title}`; - if (index == this.active_index) { - let checked_style = tabs_theme_style.tabs_title_checked; - if (['2', '4'].includes(this.tabs_theme_index)) { - checked_style += this.tabs_check; - } - style = checked_style; - } - return style; - }, // 事件 // tabs切换事件