@@ -234,6 +240,7 @@ interface data_list {
min_original_price: string;
show_original_price_symbol: string;
show_original_price_unit: string;
+ simple_desc: string;
min_price: string;
show_price_symbol: string;
show_price_unit: string;
@@ -400,6 +407,10 @@ const style_config = (typeface: string, size: number, color: string | object, ty
let style = `font-weight:${typeface}; font-size: ${size}px;`;
if (type == 'gradient') {
style += button_gradient();
+ } else if (type == 'title') {
+ style += `line-height: ${size > 0 ? size + 3 : 0}px;height: ${size > 0 ? (size + 3) * 2 : 0}px;color: ${color};`;
+ } else if (type == 'desc') {
+ style += `line-height: ${size}px;height: ${size}px;color: ${color};`;
} else {
style += `color: ${color};`;
}
diff --git a/src/components/model-seckill/model-seckill-content.vue b/src/components/model-seckill/model-seckill-content.vue
index 3724838e..02337269 100644
--- a/src/components/model-seckill/model-seckill-content.vue
+++ b/src/components/model-seckill/model-seckill-content.vue
@@ -137,6 +137,7 @@ const base_list = {
],
list_show_list: [
{ name: '商品名称', value: 'title'},
+ { name: '商品简述', value: 'simple_desc'},
{ name: '商品售价', value: 'price'},
{ name: '商品原价', value: 'original_price' },
{ name: '售价单位', value: 'price_unit' },
diff --git a/src/components/model-seckill/model-seckill-styles.vue b/src/components/model-seckill/model-seckill-styles.vue
index 9b37fd86..dee17605 100644
--- a/src/components/model-seckill/model-seckill-styles.vue
+++ b/src/components/model-seckill/model-seckill-styles.vue
@@ -4,7 +4,7 @@
头部样式
-
+
@@ -38,6 +38,13 @@
+
+
+
+
+
+
+
diff --git a/src/config/const/seckill.ts b/src/config/const/seckill.ts
index 17628cfa..154ae90b 100644
--- a/src/config/const/seckill.ts
+++ b/src/config/const/seckill.ts
@@ -44,6 +44,10 @@ interface DefaultSeckill {
shop_title_color: string;
shop_title_typeface: string;
shop_title_size: number;
+ shop_simple_desc_typeface: string;
+ shop_simple_desc_size: number;
+ shop_simple_desc_color: string;
+ title_simple_desc_spacing: 4,
shop_price_typeface: string;
shop_price_size: number;
shop_price_color: string;
@@ -130,6 +134,10 @@ const defaultSeckill: DefaultSeckill = {
shop_title_typeface: '500',
shop_title_size: 14,
shop_title_color: '#333333',
+ shop_simple_desc_typeface: '400',
+ shop_simple_desc_size: 12,
+ shop_simple_desc_color: "#999",
+ title_simple_desc_spacing: 4,
shop_price_typeface: '500',
shop_price_size: 18,
shop_price_color: '#EA3323;',