From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目
---
src/components/DiyEditor/components/mobile/PromotionSeckill/config.ts | 96 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 96 insertions(+), 0 deletions(-)
diff --git a/src/components/DiyEditor/components/mobile/PromotionSeckill/config.ts b/src/components/DiyEditor/components/mobile/PromotionSeckill/config.ts
new file mode 100644
index 0000000..022be92
--- /dev/null
+++ b/src/components/DiyEditor/components/mobile/PromotionSeckill/config.ts
@@ -0,0 +1,96 @@
+import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
+
+/** 绉掓潃灞炴�� */
+export interface PromotionSeckillProperty {
+ // 甯冨眬绫诲瀷锛氬崟鍒� | 涓夊垪
+ layoutType: 'oneColBigImg' | 'oneColSmallImg' | 'twoCol'
+ // 鍟嗗搧瀛楁
+ fields: {
+ // 鍟嗗搧鍚嶇О
+ name: PromotionSeckillFieldProperty
+ // 鍟嗗搧绠�浠�
+ introduction: PromotionSeckillFieldProperty
+ // 鍟嗗搧浠锋牸
+ price: PromotionSeckillFieldProperty
+ // 甯傚満浠�
+ marketPrice: PromotionSeckillFieldProperty
+ // 鍟嗗搧閿�閲�
+ salesCount: PromotionSeckillFieldProperty
+ // 鍟嗗搧搴撳瓨
+ stock: PromotionSeckillFieldProperty
+ }
+ // 瑙掓爣
+ badge: {
+ // 鏄惁鏄剧ず
+ show: boolean
+ // 瑙掓爣鍥剧墖
+ imgUrl: string
+ }
+ // 鎸夐挳
+ btnBuy: {
+ // 绫诲瀷锛氭枃瀛� | 鍥剧墖
+ type: 'text' | 'img'
+ // 鏂囧瓧
+ text: string
+ // 鏂囧瓧鎸夐挳锛氳儗鏅笎鍙樿捣濮嬮鑹�
+ bgBeginColor: string
+ // 鏂囧瓧鎸夐挳锛氳儗鏅笎鍙樼粨鏉熼鑹�
+ bgEndColor: string
+ // 鍥剧墖鎸夐挳锛氬浘鐗囧湴鍧�
+ imgUrl: string
+ }
+ // 涓婂渾瑙�
+ borderRadiusTop: number
+ // 涓嬪渾瑙�
+ borderRadiusBottom: number
+ // 闂磋窛
+ space: number
+ // 绉掓潃娲诲姩缂栧彿
+ activityIds: number[]
+ // 缁勪欢鏍峰紡
+ style: ComponentStyle
+}
+
+// 鍟嗗搧瀛楁
+export interface PromotionSeckillFieldProperty {
+ // 鏄惁鏄剧ず
+ show: boolean
+ // 棰滆壊
+ color: string
+}
+
+// 瀹氫箟缁勪欢
+export const component = {
+ id: 'PromotionSeckill',
+ name: '绉掓潃',
+ icon: 'mdi:calendar-time',
+ property: {
+ layoutType: 'oneColBigImg',
+ fields: {
+ name: { show: true, color: '#000' },
+ introduction: { show: true, color: '#999' },
+ price: { show: true, color: '#ff3000' },
+ marketPrice: { show: true, color: '#c4c4c4' },
+ salesCount: { show: true, color: '#c4c4c4' },
+ stock: { show: false, color: '#c4c4c4' }
+ },
+ badge: { show: false, imgUrl: '' },
+ btnBuy: {
+ type: 'text',
+ text: '绔嬪嵆绉掓潃',
+ bgBeginColor: '#FF6000',
+ bgEndColor: '#FE832A',
+ imgUrl: ''
+ },
+ borderRadiusTop: 8,
+ borderRadiusBottom: 8,
+ space: 8,
+ style: {
+ bgType: 'color',
+ bgColor: '',
+ marginLeft: 8,
+ marginRight: 8,
+ marginBottom: 8
+ } as ComponentStyle
+ }
+} as DiyComponent<PromotionSeckillProperty>
--
Gitblit v1.8.0