diff --git a/src/assets/images/components/model-seckill/theme-1-bg.png b/src/assets/images/components/model-seckill/theme-1-bg.png deleted file mode 100644 index f1460d26..00000000 Binary files a/src/assets/images/components/model-seckill/theme-1-bg.png and /dev/null differ diff --git a/src/components/model-seckill/index.vue b/src/components/model-seckill/index.vue index 5d564fcb..eb880f1b 100644 --- a/src/components/model-seckill/index.vue +++ b/src/components/model-seckill/index.vue @@ -1,10 +1,31 @@ diff --git a/src/components/model-seckill/model-seckill-setting.vue b/src/components/model-seckill/model-seckill-setting.vue index 16e875e7..a4034c39 100644 --- a/src/components/model-seckill/model-seckill-setting.vue +++ b/src/components/model-seckill/model-seckill-setting.vue @@ -1,14 +1,15 @@ diff --git a/src/components/model-seckill/model-seckill-styles.vue b/src/components/model-seckill/model-seckill-styles.vue index cf54941e..8ede39b6 100644 --- a/src/components/model-seckill/model-seckill-styles.vue +++ b/src/components/model-seckill/model-seckill-styles.vue @@ -19,28 +19,30 @@ - -
-
背景图
- - - - - - - - - - - - - - - - - +
+ +
+
背景图
+ + + + + + + + + + + + + + + + + +
+
-
@@ -82,7 +84,7 @@ - + @@ -115,7 +117,6 @@
diff --git a/src/views/layout/components/main/default/seckill.ts b/src/views/layout/components/main/default/seckill.ts index b977b8e5..ae56990e 100644 --- a/src/views/layout/components/main/default/seckill.ts +++ b/src/views/layout/components/main/default/seckill.ts @@ -1,4 +1,6 @@ import defaultCommon from './index'; +import { online_url } from '@/utils'; +const new_url = await online_url('/static/plugins/seckill/images/diy/'); interface DefaultSeckill { content: { head_state: string; @@ -18,14 +20,14 @@ interface DefaultSeckill { }; style: { topic_color: string; - topic_size: string; + topic_size: number; head_button_color: string; - head_button_size: string; + head_button_size: number; end_text_color: string; - countdown_bg_color_list: string; + countdown_bg_color_list: color_list[]; countdown_direction: string; countdown_color: string; - header_background_color_list: string; + header_background_color_list: color_list[]; header_background_direction: string; header_background_img_style: string; header_background_img_url: uploadList[]; @@ -33,14 +35,14 @@ interface DefaultSeckill { shop_img_radius: radiusStyle; shop_title_color: string; shop_title_typeface: string; - shop_title_size: string; + shop_title_size: number; price_color: string; original_price_color: string; seckill_subscript_location: string; seckill_subscript_text_color: string; seckill_subscript_bg_color: string; progress_bg_color: string, - progress_actived_color: string, + progress_actived_color_list: color_list[], progress_actived_direction: string, progress_button_color: string, progress_button_icon_color: string, @@ -55,11 +57,11 @@ const defaultSeckill: DefaultSeckill = { content: { head_state: '1', theme: '1', - topic_type: 'text', - topic_src: [], - topic_text: '', + topic_type: 'image', + topic_src: [{ id: 1, url: new_url + 'header-title.png', original: '标题', title: '标题', ext: '.png', type: 'img' }], + topic_text: '限时秒杀', button_status: '1', - button_text: '', + button_text: '更多', shop_style_type: '1', single_line_number: 3, shop_number: 10, @@ -69,18 +71,18 @@ const defaultSeckill: DefaultSeckill = { subscript_text: '秒杀' }, style: { - topic_color: '', - topic_size: '', - head_button_color: '', - head_button_size: '', - end_text_color: '', - countdown_bg_color_list: '', + topic_color: '#fff', + topic_size: 14, + head_button_color: '#fff', + head_button_size: 12, + end_text_color: '#fff', + countdown_bg_color_list: [{ color: '#fff', color_percentage: undefined }], countdown_direction: '180deg', - countdown_color: '', - header_background_color_list: '', + countdown_color: '#FF1818', + header_background_color_list: [{ color: '', color_percentage: undefined }], header_background_direction: '180deg', header_background_img_style: '2', - header_background_img_url: [], + header_background_img_url: [{ id: 1, url: new_url + 'header-bg.png', original: '背景', title: '背景1', ext: '.png', type: 'img' }], shop_radius: { radius: 8, radius_top_left: 8, @@ -97,22 +99,22 @@ const defaultSeckill: DefaultSeckill = { }, shop_title_color: '', shop_title_typeface: '', - shop_title_size: '', + shop_title_size: 12, price_color: '', original_price_color: '', seckill_subscript_location: '', seckill_subscript_text_color: '', seckill_subscript_bg_color: '', progress_bg_color: '', - progress_actived_color: '', + progress_actived_color_list: [{ color: '', color_percentage: undefined }], progress_actived_direction: '180deg', progress_button_color: '', progress_button_icon_color: '', progress_text_color: '', is_roll: true, interval_time: 2, - rolling_fashion: '', - common_style: { ...defaultCommon, padding: 10, padding_top: 10, padding_bottom: 10, padding_left: 10, padding_right: 10 }, + rolling_fashion: 'translation', + common_style: { ...defaultCommon, padding: 0, padding_top: 2, padding_bottom: 10, padding_left: 10, padding_right: 10 }, }, }; diff --git a/src/views/layout/components/main/index.vue b/src/views/layout/components/main/index.vue index bc3a7aac..be21197f 100644 --- a/src/views/layout/components/main/index.vue +++ b/src/views/layout/components/main/index.vue @@ -262,45 +262,7 @@ interface componentsData { key: string; data: componentsData[]; } -const components = ref([ - // { - // name: '基础组件', - // key: 'base', - // data: [ - // { key: 'carousel', name: '轮播图' }, - // { key: 'search', name: '搜索框' }, - // { key: 'nav-group', name: '导航组' }, - // { key: 'notice', name: '公告' }, - // { key: 'video', name: '视频' }, - // { key: 'user-info', name: '用户信息' }, - // { key: 'tabs', name: '选项卡' }, - // { key: 'article-tabs', name: '文章选项卡' }, - // { key: 'shop-tabs', name: '商品选项卡' }, - // { key: 'article-list', name: '文章列表' }, - // { key: 'shop-list', name: '商品列表' }, - // { key: 'img-magic', name: '图片魔方' }, - // { key: 'data-magic', name: '数据魔方' }, - // { key: 'hot-zone', name: '热区' }, - // { key: 'custom', name: '自定义' }, - // ], - // }, - // { - // name: '营销组件', - // key: 'plugins', - // data: [{ key: 'coupon', name: '优惠券' }], - // }, - // { - // name: '工具组件', - // key: 'tool', - // data: [ - // { key: 'float-window', name: '悬浮按钮' }, - // { key: 'text-title', name: '文本标题' }, - // { key: 'auxiliary-blank', name: '辅助空白' }, - // { key: 'row-line', name: '横线' }, - // { key: 'rich-text', name: '富文本' }, - // ], - // }, -]); +const components = ref([]); const url_computer = (name: string) => { const new_url = ref(new URL(`../../../../assets/images/layout/siderbar/${name}.png`, import.meta.url).href).value; return new_url;