yswk-ui 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/live/script/type.d.ts +2 -2
- package/dist/component/scan/ScanTobaResult/type.d.ts +3 -0
- package/dist/component/scan/ScanTobaResultV2/type.d.ts +3 -0
- package/dist/index.es.js +3545 -3449
- package/dist/utils/busiHelper.d.ts +1 -0
- package/dist/wkc-ui/component/address/AddressForm/index.vue.d.ts +5 -0
- package/dist/wkc-ui/component/address/AddressForm/type.d.ts +58 -0
- package/dist/wkc-ui/component/address/AddressList/index.vue.d.ts +7 -0
- package/dist/wkc-ui/component/address/AddressList/type.d.ts +100 -0
- package/dist/wkc-ui/component/address/script/index.vue.d.ts +29 -0
- package/dist/wkc-ui/component/address/script/type.d.ts +28 -0
- package/dist/wkc-ui/component/base/btn/BtnLink/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/base/btn/BtnLink/type.d.ts +89 -0
- package/dist/wkc-ui/component/base/btn/CountdownButton/type.d.ts +34 -0
- package/dist/wkc-ui/component/base/media/AudioPlayer/index.vue.d.ts +36 -0
- package/dist/wkc-ui/component/base/media/BlockBackground/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/base/media/BlockBackground/type.d.ts +171 -0
- package/dist/wkc-ui/component/base/media/ImgCommon/data.d.ts +1 -0
- package/dist/wkc-ui/component/base/media/ImgCommon/index.vue.d.ts +10 -0
- package/dist/wkc-ui/component/base/media/ImgCommon/type.d.ts +77 -0
- package/dist/wkc-ui/component/base/media/PageBackground/index.vue.d.ts +33 -0
- package/dist/wkc-ui/component/base/media/UserImg/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/base/media/UserImg/type.d.ts +55 -0
- package/dist/wkc-ui/component/base/media/VideoPlayer/index.vue.d.ts +49 -0
- package/dist/wkc-ui/component/base/text/ActTimeAlert/index.vue.d.ts +13 -0
- package/dist/wkc-ui/component/base/text/ActTimeAlert/type.d.ts +25 -0
- package/dist/wkc-ui/component/base/text/TextCommon/data.d.ts +1 -0
- package/dist/wkc-ui/component/base/text/TextCommon/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/base/text/TextCommon/type.d.ts +179 -0
- package/dist/wkc-ui/component/base/time/Countdown/index.vue.d.ts +35 -0
- package/dist/wkc-ui/component/index.d.ts +76 -0
- package/dist/wkc-ui/component/live/LiveEnter/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/live/LiveEnter/type.d.ts +38 -0
- package/dist/wkc-ui/component/live/LivePassword/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/live/LivePassword/type.d.ts +31 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/Chat/MsgInput.vue.d.ts +25 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/Chat/TabChat.vue.d.ts +12 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabEvaluate.vue.d.ts +2 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabGIftRank.vue.d.ts +2 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabImg.vue.d.ts +6 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabInfo.vue.d.ts +2 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabSign.vue.d.ts +2 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabsIndex.vue.d.ts +9 -0
- package/dist/wkc-ui/component/live/LiveStream/components/VideoPlay/VideoPlay.vue.d.ts +10 -0
- package/dist/wkc-ui/component/live/LiveStream/index.vue.d.ts +9 -0
- package/dist/wkc-ui/component/live/LiveStream/type.d.ts +137 -0
- package/dist/wkc-ui/component/live/LiveText/index.vue.d.ts +7 -0
- package/dist/wkc-ui/component/live/LiveText/type.d.ts +46 -0
- package/dist/wkc-ui/component/live/script/type.d.ts +247 -0
- package/dist/wkc-ui/component/lucky/BlindBox/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/BlindBox/type.d.ts +66 -0
- package/dist/wkc-ui/component/lucky/FlipCard/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/FlipCard/type.d.ts +47 -0
- package/dist/wkc-ui/component/lucky/LuckyBag/index.vue.d.ts +3 -0
- package/dist/wkc-ui/component/lucky/LuckyBag/type.d.ts +153 -0
- package/dist/wkc-ui/component/lucky/NineGrid/index.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/NineGrid/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/NineGrid/type.d.ts +54 -0
- package/dist/wkc-ui/component/lucky/PasswordLottery/index.vue.d.ts +3 -0
- package/dist/wkc-ui/component/lucky/PasswordLottery/type.d.ts +47 -0
- package/dist/wkc-ui/component/lucky/PlateLottery/index.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/PlateLottery/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/PlateLottery/type.d.ts +66 -0
- package/dist/wkc-ui/component/lucky/PrizeDisplay/index.vue.d.ts +3 -0
- package/dist/wkc-ui/component/lucky/PrizeDisplay/type.d.ts +50 -0
- package/dist/wkc-ui/component/lucky/RedPacketRain/index.vue.d.ts +3 -0
- package/dist/wkc-ui/component/lucky/RedPacketRain/type.d.ts +28 -0
- package/dist/wkc-ui/component/lucky/ScratchCard/index.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/ScratchCard/index.vue.d.ts +8 -0
- package/dist/wkc-ui/component/lucky/ScratchCard/type.d.ts +47 -0
- package/dist/wkc-ui/component/lucky/script/index.vue.d.ts +46 -0
- package/dist/wkc-ui/component/lucky/script/type.d.ts +37 -0
- package/dist/wkc-ui/component/point/script/type.d.ts +20 -0
- package/dist/wkc-ui/component/pop/PopNotice/index.vue.d.ts +2 -0
- package/dist/wkc-ui/component/pop/PopOverlay/index.vue.d.ts +9 -0
- package/dist/wkc-ui/component/pop/PopOverlay/type.d.ts +11 -0
- package/dist/wkc-ui/component/prize/MyPrizeList/index.vue.d.ts +3 -0
- package/dist/wkc-ui/component/prize/MyPrizeList/type.d.ts +115 -0
- package/dist/wkc-ui/component/prize/WinRecordBarrage/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/prize/WinRecordBarrage/type.d.ts +41 -0
- package/dist/wkc-ui/component/prize/WinRecordList/index.vue.d.ts +8 -0
- package/dist/wkc-ui/component/prize/WinRecordList/type.d.ts +54 -0
- package/dist/wkc-ui/component/register.d.ts +8 -0
- package/dist/wkc-ui/component/scan/ScanTobaInput/index.vue.d.ts +18 -0
- package/dist/wkc-ui/component/scan/ScanTobaInput/type.d.ts +187 -0
- package/dist/wkc-ui/component/scan/ScanTobaResult/index.vue.d.ts +10 -0
- package/dist/wkc-ui/component/scan/ScanTobaResult/type.d.ts +148 -0
- package/dist/wkc-ui/component/scan/ScanTobaResultV2/index.vue.d.ts +10 -0
- package/dist/wkc-ui/component/scan/ScanTobaResultV2/type.d.ts +154 -0
- package/dist/wkc-ui/component/shared/PopupWrapper/index.vue.d.ts +36 -0
- package/dist/wkc-ui/component/test/CaptchaInput/index.vue.d.ts +38 -0
- package/dist/wkc-ui/constants.d.ts +63 -0
- package/dist/wkc-ui/index.d.ts +3 -0
- package/dist/wkc-ui/types/act.d.ts +506 -0
- package/dist/wkc-ui/types/component.d.ts +30 -0
- package/dist/wkc-ui/utils/busiHelper.d.ts +24 -0
- package/dist/wkc-ui/utils/index.d.ts +12 -0
- package/dist/wkc-ui/utils/libraryManager.d.ts +154 -0
- package/dist/wkc-ui/utils/request.d.ts +29 -0
- package/dist/wkc-ui/utils/sessionHelper.d.ts +23 -0
- package/dist/wkc-ui/utils/styleHelper.d.ts +44 -0
- package/dist/wkc-ui/vite.config.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
export interface IActivityInfo {
|
|
2
|
+
/** 活动ID(主键) */
|
|
3
|
+
id: string
|
|
4
|
+
|
|
5
|
+
/** 活动编号 */
|
|
6
|
+
code: string
|
|
7
|
+
|
|
8
|
+
/** 活动名称 */
|
|
9
|
+
name: string
|
|
10
|
+
|
|
11
|
+
/** 活动预热时间 */
|
|
12
|
+
advanceTime: string
|
|
13
|
+
|
|
14
|
+
/** 活动开始时间 */
|
|
15
|
+
beginTime: string
|
|
16
|
+
|
|
17
|
+
/** 活动结束时间 */
|
|
18
|
+
endTime: string
|
|
19
|
+
|
|
20
|
+
/** 活动失效时间 */
|
|
21
|
+
expiredTime: string
|
|
22
|
+
|
|
23
|
+
/** 活动状态:0-草稿,1-生效,2-中止 */
|
|
24
|
+
status: 0 | 1 | 2
|
|
25
|
+
|
|
26
|
+
/** 活动类型(JSON 字符串数组格式,如 "[\"03\", \"11\"]") */
|
|
27
|
+
type: string
|
|
28
|
+
|
|
29
|
+
// ========== 可选字段 ==========
|
|
30
|
+
|
|
31
|
+
/** 活动卷烟(JSON 字符串数组格式) */
|
|
32
|
+
tobaId?: string
|
|
33
|
+
|
|
34
|
+
/** 活动区域(JSON 字符串数组格式) */
|
|
35
|
+
districtCode?: string
|
|
36
|
+
|
|
37
|
+
/** 活动区域类型:1-零售户归属区域,2-实时定位区域 */
|
|
38
|
+
districtType?: 1 | 2
|
|
39
|
+
|
|
40
|
+
/** 活动对象:00-全部,01-零售户,02-消费者 */
|
|
41
|
+
target?: '00' | '01' | '02'
|
|
42
|
+
|
|
43
|
+
/** 是否需要地理位置:0-否,1-是 */
|
|
44
|
+
location?: 0 | 1
|
|
45
|
+
|
|
46
|
+
/** 应用授权作用域 */
|
|
47
|
+
scope?: string
|
|
48
|
+
|
|
49
|
+
/** 活动参与标签 */
|
|
50
|
+
tagId?: string
|
|
51
|
+
|
|
52
|
+
/** 活动素材列表 */
|
|
53
|
+
materials?: ActMaterialMapping[]
|
|
54
|
+
|
|
55
|
+
/** 模板ID */
|
|
56
|
+
templateId?: string | null
|
|
57
|
+
|
|
58
|
+
/** 中奖后多少天内必须领取,否则过期 */
|
|
59
|
+
claimExpireDays?: number
|
|
60
|
+
|
|
61
|
+
/** 备注信息 */
|
|
62
|
+
remarks?: string
|
|
63
|
+
|
|
64
|
+
/** 其他扩展字段 */
|
|
65
|
+
[key: string]: any
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface IUserInfo {
|
|
69
|
+
/** 用户ID */
|
|
70
|
+
id: string
|
|
71
|
+
|
|
72
|
+
/** 订阅状态,true已订阅,false未订阅 */
|
|
73
|
+
subscribe: boolean
|
|
74
|
+
|
|
75
|
+
/** 电话号码 */
|
|
76
|
+
phone?: string
|
|
77
|
+
|
|
78
|
+
/** 用户唯一标识 */
|
|
79
|
+
openId: string
|
|
80
|
+
|
|
81
|
+
/** 昵称 */
|
|
82
|
+
nickname?: string
|
|
83
|
+
|
|
84
|
+
/** 性别:0未知、1男、2女 */
|
|
85
|
+
sex: 0 | 1 | 2
|
|
86
|
+
|
|
87
|
+
/** 头像 */
|
|
88
|
+
headImgUrl?: string
|
|
89
|
+
|
|
90
|
+
/** 关注人OPENID */
|
|
91
|
+
follow?: string | null
|
|
92
|
+
|
|
93
|
+
/** 是否可用,"1"可用,"0"禁用 */
|
|
94
|
+
status: '0' | '1'
|
|
95
|
+
|
|
96
|
+
/** 注册时间 */
|
|
97
|
+
registTime?: string | null
|
|
98
|
+
|
|
99
|
+
// ========== 详细信息(可选) ==========
|
|
100
|
+
|
|
101
|
+
/** 订阅时间(时间戳) */
|
|
102
|
+
subscribeTime?: number
|
|
103
|
+
|
|
104
|
+
/** 取关时间(时间戳) */
|
|
105
|
+
unSubscribeTime?: number
|
|
106
|
+
|
|
107
|
+
/** 国家 */
|
|
108
|
+
country?: string
|
|
109
|
+
|
|
110
|
+
/** 省份 */
|
|
111
|
+
province?: string
|
|
112
|
+
|
|
113
|
+
/** 城市 */
|
|
114
|
+
city?: string
|
|
115
|
+
|
|
116
|
+
/** 语言 */
|
|
117
|
+
language?: string
|
|
118
|
+
|
|
119
|
+
/** UnionID(绑定开放平台后才有) */
|
|
120
|
+
unionId?: string
|
|
121
|
+
|
|
122
|
+
/** 备注 */
|
|
123
|
+
remark?: string
|
|
124
|
+
|
|
125
|
+
/** 分组ID */
|
|
126
|
+
groupId?: number
|
|
127
|
+
|
|
128
|
+
/** 关注渠道来源 */
|
|
129
|
+
subscribeScene?:
|
|
130
|
+
| 'ADD_SCENE_SEARCH' // 公众号搜索
|
|
131
|
+
| 'ADD_SCENE_ACCOUNT_MIGRATION' // 公众号迁移
|
|
132
|
+
| 'ADD_SCENE_PROFILE_CARD' // 名片分享
|
|
133
|
+
| 'ADD_SCENE_QR_CODE' // 扫描二维码
|
|
134
|
+
| 'ADD_SCENE_PROFILE_LINK' // 图文页内名称点击
|
|
135
|
+
| 'ADD_SCENE_PROFILE_ITEM' // 图文页右上角菜单
|
|
136
|
+
| 'ADD_SCENE_PAID' // 支付后关注
|
|
137
|
+
| 'ADD_SCENE_OTHERS' // 其他
|
|
138
|
+
| string
|
|
139
|
+
|
|
140
|
+
/** 二维码扫码场景(开发者自定义) */
|
|
141
|
+
qrScene?: string
|
|
142
|
+
|
|
143
|
+
/** 二维码扫码场景描述(开发者自定义) */
|
|
144
|
+
qrSceneStr?: string
|
|
145
|
+
|
|
146
|
+
/** 默认收货地址ID */
|
|
147
|
+
defaultAddressId?: string
|
|
148
|
+
|
|
149
|
+
/** 邀请码 */
|
|
150
|
+
inviteCode?: string
|
|
151
|
+
|
|
152
|
+
/** 邀请人 */
|
|
153
|
+
invitedBy?: string
|
|
154
|
+
|
|
155
|
+
/** 是否黑名单用户,"1"是,"0"否 */
|
|
156
|
+
black?: '0' | '1'
|
|
157
|
+
|
|
158
|
+
/** 粉丝最后互动时间(时间戳) */
|
|
159
|
+
lastTime?: number
|
|
160
|
+
|
|
161
|
+
/** 其他扩展字段 */
|
|
162
|
+
[key: string]: any
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
//#region 地址
|
|
166
|
+
// 地址数据结构
|
|
167
|
+
export interface IAddressItem {
|
|
168
|
+
id: string
|
|
169
|
+
userId: string
|
|
170
|
+
userName: string
|
|
171
|
+
userPhone: string
|
|
172
|
+
provCode: string
|
|
173
|
+
provName: string
|
|
174
|
+
cityCode: string
|
|
175
|
+
cityName: string
|
|
176
|
+
countyCode: string
|
|
177
|
+
countyName: string
|
|
178
|
+
townCode: string
|
|
179
|
+
townName: string
|
|
180
|
+
streetName: string
|
|
181
|
+
isDefault: number // 0否 1是
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// 收获地址
|
|
185
|
+
export interface IPrizeAddress {
|
|
186
|
+
actId: string
|
|
187
|
+
id: string // 中奖记录ID
|
|
188
|
+
receiverName: string
|
|
189
|
+
receiverPhone: string
|
|
190
|
+
provCode: string
|
|
191
|
+
cityCode: string
|
|
192
|
+
countyCode: string
|
|
193
|
+
townCode?: string
|
|
194
|
+
provName: string
|
|
195
|
+
cityName: string
|
|
196
|
+
countyName: string
|
|
197
|
+
townName?: string
|
|
198
|
+
address: string
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface IProvCity {
|
|
202
|
+
provCode: string
|
|
203
|
+
provName: string
|
|
204
|
+
children: {
|
|
205
|
+
cityCode: string
|
|
206
|
+
cityName: string
|
|
207
|
+
}[]
|
|
208
|
+
}
|
|
209
|
+
export interface ICounty {
|
|
210
|
+
provCode: string
|
|
211
|
+
provName: string
|
|
212
|
+
children: {
|
|
213
|
+
cityCode: string
|
|
214
|
+
cityName: string
|
|
215
|
+
children: {
|
|
216
|
+
countyCode: string
|
|
217
|
+
countyName: string
|
|
218
|
+
}[]
|
|
219
|
+
}[]
|
|
220
|
+
}
|
|
221
|
+
export interface ITown {
|
|
222
|
+
countyCode: string
|
|
223
|
+
countyName: string
|
|
224
|
+
children: {
|
|
225
|
+
townCode: string
|
|
226
|
+
townName: string
|
|
227
|
+
}[]
|
|
228
|
+
}
|
|
229
|
+
//#endregion
|
|
230
|
+
|
|
231
|
+
//#region 抽奖&奖项&奖品
|
|
232
|
+
|
|
233
|
+
// 抽奖结果数据结构
|
|
234
|
+
export interface ILuckyDrawResult {
|
|
235
|
+
/** 允许抽奖?0否,1是 */
|
|
236
|
+
allowDraw: number
|
|
237
|
+
/** 中奖了?0否,1是 */
|
|
238
|
+
win: number
|
|
239
|
+
/** 奖项名称 */
|
|
240
|
+
name?: string
|
|
241
|
+
/** 奖项排名 */
|
|
242
|
+
rank?: number
|
|
243
|
+
/** 图片数组 */
|
|
244
|
+
img?: Array<{
|
|
245
|
+
/** 类型 */
|
|
246
|
+
type: string
|
|
247
|
+
/** 链接地址 */
|
|
248
|
+
url: string
|
|
249
|
+
}>
|
|
250
|
+
goodsImg?: Array<{
|
|
251
|
+
/** 类型 */
|
|
252
|
+
type: string
|
|
253
|
+
/** 链接地址 */
|
|
254
|
+
url: string
|
|
255
|
+
}>
|
|
256
|
+
/** 物资ID */
|
|
257
|
+
goodsId?: string
|
|
258
|
+
/** 物资名称 */
|
|
259
|
+
goodsName?: string
|
|
260
|
+
/** 物资数量 */
|
|
261
|
+
goodsNum?: string | number
|
|
262
|
+
/** 物资类型:01红包,02积分,03实物 */
|
|
263
|
+
goodsType: string
|
|
264
|
+
/** 转盘序号,从0开始编号 */
|
|
265
|
+
position: string
|
|
266
|
+
/** 中奖记录id,没中奖的话是null */
|
|
267
|
+
id: string | null
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
interface IActLuckyPrize {
|
|
271
|
+
id?: string // 奖项ID
|
|
272
|
+
actId?: string // 活动ID
|
|
273
|
+
luckyId?: string // 抽奖ID
|
|
274
|
+
name?: string // 奖项名称
|
|
275
|
+
rank?: number // 奖项排名,从1开始
|
|
276
|
+
position?: number // 转盘位置,从0开始编号
|
|
277
|
+
img?: ILuckyPrizeImage[] // 奖项图片url数组
|
|
278
|
+
type?: 1,
|
|
279
|
+
goodsId?: string // 物资ID
|
|
280
|
+
goodsType?: number // 01红包,02积分,03实物
|
|
281
|
+
goodsName?: string // 物资名称
|
|
282
|
+
goodsNum?: number // 物资数量
|
|
283
|
+
goodsImg?: ILuckyPrizeImage[], // 物资图片url数组
|
|
284
|
+
goodsSourceType?: string // 物资来源类型(京东/苏宁...)
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface ILuckyPrizeImage {
|
|
288
|
+
id?: string,
|
|
289
|
+
type?: string // 类型
|
|
290
|
+
url?: string // 地址
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// 抽奖配置
|
|
294
|
+
export interface ILuckyInfo {
|
|
295
|
+
id: string // 抽奖ID,主键
|
|
296
|
+
actId?: string // 活动ID
|
|
297
|
+
code?: string // 抽奖编码
|
|
298
|
+
name?: string // 抽奖名称
|
|
299
|
+
beginTime?: string // 开始时间 yyyy-MM-dd HH:mm:ss
|
|
300
|
+
endTime?: string // 结束时间 yyyy-MM-dd HH:mm:ss
|
|
301
|
+
remarks?: string // 备注
|
|
302
|
+
actLuckyPrizeList?: ActLuckyPrize[] // 奖项列表
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// 中奖记录
|
|
306
|
+
export interface IWinRecord {
|
|
307
|
+
/** 中奖记录ID */
|
|
308
|
+
id: string
|
|
309
|
+
/** 奖项名称 */
|
|
310
|
+
name?: string
|
|
311
|
+
/** 用户ID */
|
|
312
|
+
userId?: string
|
|
313
|
+
/** 活动ID */
|
|
314
|
+
actId?: string
|
|
315
|
+
/** 环节ID */
|
|
316
|
+
phaseId?: string
|
|
317
|
+
/** 来源ID */
|
|
318
|
+
sourceId?: string
|
|
319
|
+
/** 奖品ID */
|
|
320
|
+
goodsId: string
|
|
321
|
+
/** 奖品名称 */
|
|
322
|
+
goodsName: string
|
|
323
|
+
/** 奖品数量 */
|
|
324
|
+
goodsNum: string | number
|
|
325
|
+
/** 奖品类型:01红包,02积分,03实物 */
|
|
326
|
+
goodsType: string
|
|
327
|
+
/** 是否领取:0-否,1-是 */
|
|
328
|
+
received: 0 | 1
|
|
329
|
+
/** 是否需要邮寄:0-否,1-是 */
|
|
330
|
+
posted: 0 | 1
|
|
331
|
+
/** 物流单号 */
|
|
332
|
+
logisticsCode?: string
|
|
333
|
+
/** 收件人姓名 */
|
|
334
|
+
receiverName?: string
|
|
335
|
+
/** 收件人电话 */
|
|
336
|
+
receiverPhone?: string
|
|
337
|
+
/** 中奖时间 */
|
|
338
|
+
winTime: string
|
|
339
|
+
goodsImg: {
|
|
340
|
+
url: string
|
|
341
|
+
type: string
|
|
342
|
+
}[]
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
// 中奖记录列表响应
|
|
346
|
+
export interface IWinRecordListResponse {
|
|
347
|
+
/** 中奖记录列表 */
|
|
348
|
+
records: IWinRecord[]
|
|
349
|
+
/** 总数 */
|
|
350
|
+
total: number
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
// 活动中奖用户记录(用于展示中奖榜单)
|
|
354
|
+
export interface IActWinnerRecord {
|
|
355
|
+
/** 中奖记录ID */
|
|
356
|
+
id: string
|
|
357
|
+
/** 用户ID */
|
|
358
|
+
userId?: string
|
|
359
|
+
/** 活动ID */
|
|
360
|
+
actId?: string
|
|
361
|
+
/** 抽奖游戏ID */
|
|
362
|
+
luckyId?: string
|
|
363
|
+
/** 抽奖源ID */
|
|
364
|
+
sourceId?: string
|
|
365
|
+
/** 活动对象:01-零售户,02-消费者 */
|
|
366
|
+
target?: string
|
|
367
|
+
/** 奖项ID */
|
|
368
|
+
prizeId?: string
|
|
369
|
+
/** 奖项名称 */
|
|
370
|
+
prizeName?: string
|
|
371
|
+
/** 奖项排名 */
|
|
372
|
+
prizeRank?: number
|
|
373
|
+
/** 抽奖结果状态:0-未中奖,1-已中奖 */
|
|
374
|
+
status?: number
|
|
375
|
+
/** 省份编码 */
|
|
376
|
+
provCode?: string
|
|
377
|
+
/** 省份名称 */
|
|
378
|
+
provName?: string
|
|
379
|
+
/** 城市编码 */
|
|
380
|
+
cityCode?: string
|
|
381
|
+
/** 城市名称 */
|
|
382
|
+
cityName?: string
|
|
383
|
+
/** 区县编码 */
|
|
384
|
+
countyCode?: string
|
|
385
|
+
/** 区县名称 */
|
|
386
|
+
countyName?: string
|
|
387
|
+
/** GPS纬度 */
|
|
388
|
+
gpsLat?: number
|
|
389
|
+
/** GPS经度 */
|
|
390
|
+
gpsLng?: number
|
|
391
|
+
/** 中奖日期 */
|
|
392
|
+
luckyDate?: string
|
|
393
|
+
/** 中奖时间 */
|
|
394
|
+
luckyTime?: string
|
|
395
|
+
/** 用户昵称 */
|
|
396
|
+
nickname?: string
|
|
397
|
+
/** 用户头像 */
|
|
398
|
+
headImgUrl?: string
|
|
399
|
+
/** 奖项图片列表 */
|
|
400
|
+
prizeImg?: Array<{
|
|
401
|
+
/** 图片ID */
|
|
402
|
+
id?: string
|
|
403
|
+
/** 来源ID */
|
|
404
|
+
sourceId?: string
|
|
405
|
+
/** 来源类型 */
|
|
406
|
+
sourceType?: string
|
|
407
|
+
/** 素材ID */
|
|
408
|
+
materialId?: string
|
|
409
|
+
/** 图片地址 */
|
|
410
|
+
url: string
|
|
411
|
+
/** 图片类型:ICON-图标,THUMB-缩略图,POSTER-海报,VOICE-语音,VIDEO-视频 */
|
|
412
|
+
type: string
|
|
413
|
+
}>
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
//#endregion
|
|
417
|
+
|
|
418
|
+
//#region 积分相关
|
|
419
|
+
|
|
420
|
+
// 积分账户信息
|
|
421
|
+
export interface IPointAccount {
|
|
422
|
+
/** 账户积分 */
|
|
423
|
+
balancePoint: number
|
|
424
|
+
/** 冻结积分 */
|
|
425
|
+
freezePoint: number
|
|
426
|
+
/** 账户状态:0-正常,1-冻结 */
|
|
427
|
+
status: 0 | 1
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
// 积分流水记录
|
|
431
|
+
export interface IPointRecord {
|
|
432
|
+
/** 活动来源ID(业务主键) */
|
|
433
|
+
sourceId: string
|
|
434
|
+
/** 活动来源类型,活动id */
|
|
435
|
+
sourceType: number
|
|
436
|
+
/** 活动来源名称 */
|
|
437
|
+
sourceName: string
|
|
438
|
+
/** 积分数额 */
|
|
439
|
+
point: number
|
|
440
|
+
/** 发生时间 */
|
|
441
|
+
breakTime: string
|
|
442
|
+
/** 状态:0-未提交,1-已提交,2-已取消 */
|
|
443
|
+
status: 0 | 1 | 2
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// 积分流水列表响应
|
|
447
|
+
export interface IPointRecordListResponse {
|
|
448
|
+
/** 流水记录集合 */
|
|
449
|
+
records: IPointRecord[]
|
|
450
|
+
/** 数据总数 */
|
|
451
|
+
total: number
|
|
452
|
+
/** 每页数据量 */
|
|
453
|
+
size: number
|
|
454
|
+
/** 当前页 */
|
|
455
|
+
current: number
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
//#endregion
|
|
459
|
+
|
|
460
|
+
//#region 直播
|
|
461
|
+
export interface ILiveInfo {
|
|
462
|
+
id: string // '1769550409391874049'
|
|
463
|
+
addUser: string // '1235128760584400898'
|
|
464
|
+
addTime: string // '2024-03-18 10:24:29'
|
|
465
|
+
modUser: string // '1235128760584400898'
|
|
466
|
+
modTime: string // '2024-03-18 10:24:29'
|
|
467
|
+
orderTag: number
|
|
468
|
+
remarks: string
|
|
469
|
+
name: string // '测试区域限制'
|
|
470
|
+
subTitle: string // ''
|
|
471
|
+
beginTime: string // '2024-03-18 00:00:00'
|
|
472
|
+
endTime: string // '2024-03-18 17:01:00'
|
|
473
|
+
expireTime: string // '2024-03-18 17:01:00'
|
|
474
|
+
coverImage: string // ''
|
|
475
|
+
status: number // 0
|
|
476
|
+
districtType: number // 2
|
|
477
|
+
districtCode: string // '["120100"]'
|
|
478
|
+
statisticalDisplayType: string // '1'
|
|
479
|
+
initialQuantity: number // 初始观看人事
|
|
480
|
+
password: string //
|
|
481
|
+
commentable: boolean
|
|
482
|
+
introduction: string // '测试区域限制'
|
|
483
|
+
streamName: string // '1769550409404456962'
|
|
484
|
+
pushStreamUrl: string // 'rtmp://livepush.lxtx37.com/live/1769550409404456962?auth_key=1710752460-c1ffe6a530954211828ece716f65cfdb-0-0a45a28bc5b17f635f3f37d9f171863d'
|
|
485
|
+
pushStreamSecret: string // '1769550409404456962?auth_key=1710752460-c1ffe6a530954211828ece716f65cfdb-0-0a45a28bc5b17f635f3f37d9f171863d'
|
|
486
|
+
pullStreamUrlToM3U8: string // 'http://livepull.lxtx37.com/live/1769550409404456962.m3u8?auth_key=1710752460-43bc5d37087f4a838296551f1bcc90bd-0-1bc4d76f737ec78f92a7554d4de74e8c'
|
|
487
|
+
pullStreamUrlToM3U8Lld: string // 'http://livepull.lxtx37.com/live/1769550409404456962_lld.m3u8?auth_key=1710752460-c9a0d12de33f46f1913ba60ecc4fada5-0-2354f4e01c1839e5bf52318cd2991447'
|
|
488
|
+
pullStreamUrlToM3U8Lsd: string // 'http://livepull.lxtx37.com/live/1769550409404456962_lsd.m3u8?auth_key=1710752460-de2fb27220b3430a8f1062fa8efcfdaa-0-3db08e49b53c6e2d71bcbad626a98dea'
|
|
489
|
+
pullStreamUrlToM3U8Lhd: string // 'http://livepull.lxtx37.com/live/1769550409404456962_lhd.m3u8?auth_key=1710752460-0f3c2aa24ced48918001669efedb0602-0-1acd53398078908ac0998daa3555c6b2'
|
|
490
|
+
pullStreamUrlToM3U8Lud: string // 'http://livepull.lxtx37.com/live/1769550409404456962_lud.m3u8?auth_key=1710752460-997f3d4d382b48488cfb574a1a838a31-0-09e0a9daa293300652737b8c7834db75'
|
|
491
|
+
pullStreamUrlToRtmp: string // 'rtmp://livepull.lxtx37.com/live/1769550409404456962?auth_key=1710752460-ce234f8873b34340b76ccd197bb771e0-0-5eec40c1fd02efddbd5f8d36cfa970c5'
|
|
492
|
+
pullStreamUrlToFlv: string // 'http://livepull.lxtx37.com/live/1769550409404456962.flv?auth_key=1710752460-05ae5264dc7f45079bd508e5d52be7ba-0-da0ca37a41402b9451150f4ea23df061'
|
|
493
|
+
pushBeginTime: null
|
|
494
|
+
pushEndTime: null
|
|
495
|
+
topicId: string // '1478293791104491521'
|
|
496
|
+
tabConfigId: string // '1471020390095716354'
|
|
497
|
+
topicUrl: string // 'https://zoomlgd-live-record-shanghai.oss-cn-shanghai.aliyuncs.com/record/live-theme/mo-ren-zhu-ti-20220104171439.css'
|
|
498
|
+
enableAppointment: true
|
|
499
|
+
scanPlayUrl: string // 'https://work.yszngs.cn/live/live/access/redirect?liveId=1769550409391874049'
|
|
500
|
+
enablePassword: false
|
|
501
|
+
forTest: true
|
|
502
|
+
createUserName: string // '系统管理员'
|
|
503
|
+
projectNumber: string //
|
|
504
|
+
activityCode: string //
|
|
505
|
+
}
|
|
506
|
+
//#endregion
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentGroup, FormItemEditType } from '../constants';
|
|
2
|
+
import { ComponentListItem, IApiConfigBase, IComponentConfigBase, IMockFieldBase, PropertyConfigBase } from '../../share';
|
|
3
|
+
export interface ITrackingItem {
|
|
4
|
+
dateId: string // 时间id
|
|
5
|
+
relative: string // 关联的时间
|
|
6
|
+
code: string // 埋点的编码 存数据库
|
|
7
|
+
type: string // 埋点类型 存数据库 如click enter
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface PropertyConfig extends PropertyConfigBase<FormItemEditType> {}
|
|
11
|
+
|
|
12
|
+
export interface IApiParam {
|
|
13
|
+
key: string // 参数名
|
|
14
|
+
isData?: boolean // 是否在请求体中(true)还是URL参数(false)
|
|
15
|
+
value: string // 数据来源(可以是占位符如$qrCodeMd5$或直接值)
|
|
16
|
+
desc?: string // 参数描述
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IMockField extends IMockFieldBase {
|
|
20
|
+
type: 'string' | 'number' | 'boolean' | 'array' | 'object' | 'null' // 字段类型
|
|
21
|
+
value?: any // 默认值
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IApiConfig extends IApiConfigBase<IMockField, IApiParam> {}
|
|
25
|
+
|
|
26
|
+
export interface IComponentConfig
|
|
27
|
+
extends IComponentConfigBase<PropertyConfig, IApiConfig, IComponentConfig> {}
|
|
28
|
+
|
|
29
|
+
export type { ComponentListItem }
|
|
30
|
+
export { ComponentGroup }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 埋点相关工具函数
|
|
3
|
+
*/
|
|
4
|
+
interface TrackingItem {
|
|
5
|
+
relative: string;
|
|
6
|
+
code: string;
|
|
7
|
+
type: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 创建埋点触发器
|
|
11
|
+
* @param trackingList 埋点配置列表
|
|
12
|
+
* @returns 触发埋点的函数
|
|
13
|
+
*/
|
|
14
|
+
export declare function createTrackingTrigger(trackingList: TrackingItem[] | undefined): (name: string) => void;
|
|
15
|
+
/**
|
|
16
|
+
* 使用组件通信助手
|
|
17
|
+
* 提供统一的事件发送方法
|
|
18
|
+
*/
|
|
19
|
+
export declare function useComponentEvent(): {
|
|
20
|
+
updatePageParams: (params: any) => void;
|
|
21
|
+
executeEventBus: (eventConfig: any, callback?: (data?: any) => void) => void;
|
|
22
|
+
emitEvent: (eventName: string, params?: any, callback?: (data?: any) => void) => void;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { clearComponentLibrary, getComponent, getComponentConfig, getComponentList, getComponentListByGroup, initComponentLibrary, registerComponents, setRequiredSessionKey, InitOptions } from './libraryManager';
|
|
2
|
+
export declare const LibraryHelper: {
|
|
3
|
+
init: typeof initComponentLibrary;
|
|
4
|
+
clear: typeof clearComponentLibrary;
|
|
5
|
+
setRequiredSessionKey: typeof setRequiredSessionKey;
|
|
6
|
+
registerAll: typeof registerComponents;
|
|
7
|
+
getComponent: typeof getComponent;
|
|
8
|
+
getComponentConfig: typeof getComponentConfig;
|
|
9
|
+
getList: typeof getComponentList;
|
|
10
|
+
getGroupedList: typeof getComponentListByGroup;
|
|
11
|
+
};
|
|
12
|
+
export type { InitOptions };
|