diff --git a/components/diy/goods-list.vue b/components/diy/goods-list.vue
index 6a178e32..dabe868b 100644
--- a/components/diy/goods-list.vue
+++ b/components/diy/goods-list.vue
@@ -58,7 +58,7 @@
{{ form.shop_button_text }}
-
+
@@ -88,7 +88,7 @@
{{ form.shop_button_text }}
-
+
@@ -140,7 +140,7 @@
{{ form.shop_button_text }}
-
+
@@ -254,6 +254,12 @@
button_style: '',
};
},
+ computed: {
+ // 按钮渐变色处理
+ button_gradient() {
+ return gradient_handle(this.new_style.shop_button_color, '180deg');
+ }
+ },
created() {
this.setData({
form: this.value.content,
@@ -417,16 +423,12 @@
style_config(typeface, size, color, type) {
let style = `font-weight:${typeface}; font-size: ${size * 2}rpx;`;
if (type == 'gradient') {
- style += this.button_gradient();
+ style += this.button_gradient;
} else {
style += `color: ${color};`;
}
return style;
},
- // 按钮渐变色处理
- button_gradient() {
- return gradient_handle(this.new_style.shop_button_color, '180deg');
- },
// icon标志显示样式
icon_style(item) {
let style = `background: ${item.bg_color};color: ${item.color};`;
diff --git a/components/diy/seckill.vue b/components/diy/seckill.vue
index e82a0093..69238cb5 100644
--- a/components/diy/seckill.vue
+++ b/components/diy/seckill.vue
@@ -86,7 +86,7 @@
{{ form.shop_button_text }}
-
+
@@ -149,7 +149,7 @@
{{ form.shop_button_text }}
-
+
@@ -237,6 +237,10 @@
icon_time_check() {
return `${this.time_bg};line-height: 1;background-clip: text;-webkit-background-clip: text;-webkit-text-fill-color: transparent;`;
},
+ // 按钮渐变色处理
+ button_gradient() {
+ return gradient_handle(this.new_style.shop_button_color, '180deg');
+ }
},
created() {
this.setData({
@@ -444,16 +448,12 @@
style_config(typeface, size, color, type) {
let style = `font-weight:${typeface}; font-size: ${size * 2}rpx;`;
if (type == 'gradient') {
- style += this.button_gradient();
+ style += this.button_gradient;
} else {
style += `color: ${color};`;
}
return style;
},
- // 按钮渐变色处理
- button_gradient() {
- return gradient_handle(this.new_style.shop_button_color, '180deg');
- },
get_multicolumn_columns_width() {
let model_number = this.form.carousel_col;
if (this.form.shop_style_type == '1') {