diff --git a/components/diy/goods-list.vue b/components/diy/goods-list.vue index 754de481..94187fe5 100644 --- a/components/diy/goods-list.vue +++ b/components/diy/goods-list.vue @@ -60,7 +60,7 @@ - {{ form.shop_button_text }} + {{ form.shop_button_text }} @@ -90,7 +90,7 @@ - {{ form.shop_button_text }} + {{ form.shop_button_text }} @@ -145,7 +145,7 @@ - {{ form.shop_button_text }} + {{ form.shop_button_text }} @@ -228,8 +228,10 @@ price_style: '', sold_number_style: '', score_style: '', - button_gradient: '', + button_style: '', simple_desc: '', + // 按钮背景色 + button_gradient: '', }; }, watch: { @@ -261,6 +263,7 @@ const flex = ['0', '2', '6'].includes(new_form.theme) ? 'flex-col ' : 'flex-row '; const wrap = new_form.theme == '5' ? '' : 'flex-wrap '; const background = ['6'].includes(new_form.theme) ? 'bg-white ' : ''; + const button_gradient = gradient_handle(new_style.shop_button_color, '180deg'); this.setData({ form: new_form, @@ -282,11 +285,12 @@ style_container: this.propIsCommonStyle ? common_styles_computer(new_style.common_style) : '', // 公共样式 style_img_container: this.propIsCommonStyle ? common_img_computer(new_style.common_style, this.propIndex) : '', // 图片样式 // 内容样式设置 - button_gradient: gradient_handle(new_style.shop_button_color, '180deg'), + button_gradient: button_gradient, title_style: this.trends_config(new_style, 'title', 'title', new_form.theme), price_style: this.trends_config(new_style, 'price'), sold_number_style: this.trends_config(new_style, 'sold_number'), score_style: this.trends_config(new_style, 'score'), + button_style: this.trends_config(new_style, 'button', 'buy_button')+button_gradient, simple_desc: this.trends_config(new_style, 'simple_desc', 'desc'), shop_content_list: this.get_shop_content_list(new_list, new_form), }); @@ -402,7 +406,9 @@ } else if (type == 'desc') { style += `line-height: ${size}px;height: ${size}px;color: ${color};`; } else { - style += `color: ${color};`; + if(type != 'buy_button') { + style += `color: ${color};`; + } } return style; },