@uxda/appkit 4.3.27 → 4.3.30
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/.cursor/skills/appkit-build-update-component-rules/SKILL.md +54 -49
- package/.cursor/skills/appkit-sync-component-rules/SKILL.md +60 -0
- package/.eslintrc.mjs +7 -7
- package/Appkit/347/273/204/344/273/266/344/275/277/347/224/250/350/247/204/345/210/231.md +2002 -1724
- package/PROJECT_DOCS.md +142 -142
- package/README.md +194 -194
- package/babel.config.js +12 -12
- package/dist/appkit.css +121 -3
- package/dist/index.js +265 -70
- package/package.json +82 -79
- package/project.config.json +15 -15
- package/project.tt.json +13 -13
- package/rollup.config.mjs +81 -78
- package/src/Appkit.ts +72 -72
- package/src/balance/api/endpoints.ts +133 -133
- package/src/balance/api/index.ts +118 -118
- package/src/balance/components/AccountView.vue +770 -770
- package/src/balance/components/BalanceCard.vue +210 -210
- package/src/balance/components/BalanceReminder.vue +84 -84
- package/src/balance/components/ConsumptionFilter.vue +218 -218
- package/src/balance/components/ConsumptionRules.vue +68 -68
- package/src/balance/components/DateFilter.vue +259 -259
- package/src/balance/components/DateRange.vue +111 -111
- package/src/balance/components/ListFilter.vue +62 -62
- package/src/balance/components/ListFilterPicker.vue +191 -191
- package/src/balance/components/PromoterCard.vue +308 -308
- package/src/balance/components/SecondBalance.vue +77 -77
- package/src/balance/components/Tip.vue +45 -45
- package/src/balance/components/index.ts +8 -8
- package/src/balance/types.ts +99 -99
- package/src/components/bt-cropper/index.vue +730 -730
- package/src/components/bt-cropper/utils/calcCropper.js +42 -42
- package/src/components/bt-cropper/utils/calcImagePosition.js +23 -23
- package/src/components/bt-cropper/utils/calcImageSize.js +37 -37
- package/src/components/bt-cropper/utils/calcPointDistance.js +12 -12
- package/src/components/bt-cropper/utils/calcRightAndBottom.js +7 -7
- package/src/components/bt-cropper/utils/ratio.js +3 -3
- package/src/components/bt-cropper/utils/tools.js +25 -25
- package/src/components/dd-area/index.vue +225 -225
- package/src/components/dd-icon/doc.md +21 -21
- package/src/components/dd-icon/index.vue +23 -23
- package/src/components/dd-notice-bar/index.vue +78 -78
- package/src/components/dd-search/doc.md +34 -34
- package/src/components/dd-search/index.vue +168 -168
- package/src/components/dd-selector/index.vue +124 -124
- package/src/components/dd-skeleton/doc.md +19 -19
- package/src/components/dd-skeleton/index.vue +36 -36
- package/src/global.ts +6 -6
- package/src/index.ts +101 -101
- package/src/main.scss +1 -1
- package/src/notice/api/endpoints.ts +54 -54
- package/src/notice/api/index.ts +121 -121
- package/src/notice/components/NoticeBanner.vue +247 -247
- package/src/notice/components/NoticeEntry.vue +99 -99
- package/src/notice/components/NoticeList.vue +311 -311
- package/src/notice/components/NoticeList2.vue +401 -401
- package/src/notice/components/NoticePopup.vue +163 -163
- package/src/notice/components/index.ts +6 -6
- package/src/notice/components/useCommonList.ts +87 -87
- package/src/notice/components/useNotice.ts +35 -35
- package/src/notice/index.ts +1 -1
- package/src/notice/types.ts +25 -25
- package/src/payment/api/config.ts +7 -7
- package/src/payment/api/endpoints.ts +112 -112
- package/src/payment/api/index.ts +108 -108
- package/src/payment/components/AmountPicker.vue +77 -68
- package/src/payment/components/RechargeResult.vue +68 -68
- package/src/payment/components/RechargeView.vue +414 -227
- package/src/payment/components/RightsPicker.vue +105 -105
- package/src/payment/components/TradeView.vue +616 -616
- package/src/payment/components/UserAgreement.vue +234 -234
- package/src/payment/components/index.ts +22 -22
- package/src/payment/components/recharge-amount.spec.ts +51 -0
- package/src/payment/components/recharge-amount.ts +63 -0
- package/src/payment/index.ts +5 -5
- package/src/payment/services/index.ts +16 -16
- package/src/payment/services/invoke-recharge.ts +25 -25
- package/src/payment/services/request-payment.ts +136 -136
- package/src/payment/types.ts +34 -34
- package/src/register/components/SelfRegistration.vue +233 -233
- package/src/register/components/index.ts +2 -2
- package/src/scenarios/components/SharePoster.vue +364 -364
- package/src/scenarios/components/index.ts +2 -2
- package/src/scenarios/components/poster-paste.vue +93 -93
- package/src/scenarios/components/share-poster.md +273 -273
- package/src/shared/components/AppDrawer.vue +53 -53
- package/src/shared/components/AppVerify.vue +137 -137
- package/src/shared/components/DeviceVersion.vue +78 -78
- package/src/shared/components/EmptyView.vue +33 -33
- package/src/shared/components/OcrBank.vue +202 -202
- package/src/shared/components/OcrBusinessLicense.vue +120 -120
- package/src/shared/components/OcrIcon.vue +267 -267
- package/src/shared/components/OcrInvoice.vue +323 -323
- package/src/shared/components/OfficeDocx.vue +33 -0
- package/src/shared/components/OfficePdf.vue +35 -0
- package/src/shared/components/PageHeader.vue +84 -84
- package/src/shared/components/index.ts +12 -10
- package/src/shared/composables/index.ts +10 -10
- package/src/shared/composables/useAmount.ts +46 -46
- package/src/shared/composables/useCompress.ts +64 -64
- package/src/shared/composables/useCountdown.ts +46 -46
- package/src/shared/composables/useCrypto.ts +76 -76
- package/src/shared/composables/useDeviceEnv.ts +61 -61
- package/src/shared/composables/useDragBox.ts +97 -97
- package/src/shared/composables/useEncode.ts +43 -43
- package/src/shared/composables/useLogger.ts +149 -149
- package/src/shared/composables/useSafeArea.ts +46 -46
- package/src/shared/composables/useTabbar.ts +24 -24
- package/src/shared/composables/useUpload.ts +106 -106
- package/src/shared/composables/useValidator.ts +32 -32
- package/src/shared/composables/useWxAuth.ts +49 -49
- package/src/shared/http/Http.ts +149 -149
- package/src/shared/http/index.ts +1 -1
- package/src/shared/http/types.ts +163 -163
- package/src/shared/index.ts +9 -9
- package/src/shared/tracking/directives/index.ts +40 -40
- package/src/shared/tracking/examples/page-tracking-template.vue +27 -27
- package/src/shared/weixin/index.ts +9 -9
- package/src/shared/weixin/jssdk.ts +104 -104
- package/src/shared/weixin/payment.ts +38 -38
- package/src/styles/vars.scss +3 -3
- package/src/user/api/endpoints.ts +17 -17
- package/src/user/api/index.ts +123 -123
- package/src/user/components/LoginSetting.vue +114 -114
- package/src/user/components/UserAuth.vue +218 -218
- package/src/user/components/UserBinding.vue +277 -277
- package/src/user/components/UserBindingSuccess.vue +80 -80
- package/src/user/components/UserEntry.vue +139 -139
- package/src/user/components/UserFeedback.vue +428 -428
- package/src/user/components/UserFeedbackEntry.vue +175 -175
- package/src/user/components/UserHeadCrop.vue +65 -65
- package/src/user/components/UserInfo.vue +711 -711
- package/src/user/components/UserResourceEmpty.vue +75 -75
- package/src/user/components/index.ts +23 -23
- package/src/user/index.ts +1 -1
- package/src/utils/utils.ts +33 -33
- package/tsconfig.json +30 -30
- package/types/global.d.ts +23 -23
- package/types/vue.d.ts +10 -10
- /package/dist/assets/{asset-3B_CoPto → index-DcH8Kg-2.css} +0 -0
package/babel.config.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// babel-preset-taro 更多选项和默认值:
|
|
2
|
-
// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
|
|
3
|
-
module.exports = {
|
|
4
|
-
presets: [
|
|
5
|
-
['taro', {
|
|
6
|
-
framework: 'vue3',
|
|
7
|
-
ts: true
|
|
8
|
-
}]
|
|
9
|
-
],
|
|
10
|
-
plugins: [
|
|
11
|
-
],
|
|
12
|
-
}
|
|
1
|
+
// babel-preset-taro 更多选项和默认值:
|
|
2
|
+
// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
|
|
3
|
+
module.exports = {
|
|
4
|
+
presets: [
|
|
5
|
+
['taro', {
|
|
6
|
+
framework: 'vue3',
|
|
7
|
+
ts: true
|
|
8
|
+
}]
|
|
9
|
+
],
|
|
10
|
+
plugins: [
|
|
11
|
+
],
|
|
12
|
+
}
|
package/dist/appkit.css
CHANGED
|
@@ -12,6 +12,15 @@
|
|
|
12
12
|
.amount-picker .tile.selected .nut-grid-item__content {
|
|
13
13
|
background: linear-gradient(#FFF7E3, #FEFDE6) padding-box, linear-gradient(to bottom, #efd082, #ffb877) border-box;
|
|
14
14
|
}
|
|
15
|
+
.amount-picker .tile.custom h4.token-line {
|
|
16
|
+
background-image: none;
|
|
17
|
+
padding-left: 0;
|
|
18
|
+
color: #353535;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
}
|
|
21
|
+
.amount-picker .tile.custom h5 {
|
|
22
|
+
color: #353535;
|
|
23
|
+
}
|
|
15
24
|
.amount-picker h4.token-line {
|
|
16
25
|
background-image: url("https://cdn.ddjf.com/static/images/appkit/yundou.png");
|
|
17
26
|
background-size: 20px;
|
|
@@ -229,6 +238,15 @@
|
|
|
229
238
|
.ocr-invoice.disabled .ns-icon {
|
|
230
239
|
filter: brightness(1.5) grayscale(1);
|
|
231
240
|
}
|
|
241
|
+
.office-pdf {
|
|
242
|
+
height: 100%;
|
|
243
|
+
}
|
|
244
|
+
.office-pdf .vue-office-pdf-wrapper {
|
|
245
|
+
height: 100%;
|
|
246
|
+
}
|
|
247
|
+
.office-docx {
|
|
248
|
+
height: 100%;
|
|
249
|
+
}
|
|
232
250
|
.recharge-view {
|
|
233
251
|
height: 100%;
|
|
234
252
|
display: flex;
|
|
@@ -238,6 +256,106 @@
|
|
|
238
256
|
.recharge-view .flex-grow {
|
|
239
257
|
flex-grow: 1;
|
|
240
258
|
}
|
|
259
|
+
.recharge-view .custom-amount-panel {
|
|
260
|
+
box-sizing: border-box;
|
|
261
|
+
display: block;
|
|
262
|
+
overflow: hidden;
|
|
263
|
+
margin: 8px 12px 12px;
|
|
264
|
+
padding: 12px;
|
|
265
|
+
background-color: rgba(255, 244, 223, 0.3);
|
|
266
|
+
border-radius: 5px;
|
|
267
|
+
border: 1px solid #fd6701;
|
|
268
|
+
}
|
|
269
|
+
.recharge-view .custom-amount-title,
|
|
270
|
+
.recharge-view .custom-amount-input,
|
|
271
|
+
.recharge-view .custom-amount-tip {
|
|
272
|
+
background: transparent;
|
|
273
|
+
}
|
|
274
|
+
.recharge-view .custom-amount-title {
|
|
275
|
+
display: flex;
|
|
276
|
+
align-items: center;
|
|
277
|
+
justify-content: space-between;
|
|
278
|
+
color: #262626;
|
|
279
|
+
font-size: 15px;
|
|
280
|
+
font-weight: 600;
|
|
281
|
+
line-height: 22px;
|
|
282
|
+
}
|
|
283
|
+
.recharge-view .custom-amount-tag {
|
|
284
|
+
color: #fd6701;
|
|
285
|
+
background: rgb(255, 244, 223);
|
|
286
|
+
border-radius: 12px;
|
|
287
|
+
padding: 3px 8px;
|
|
288
|
+
font-size: 10px;
|
|
289
|
+
font-weight: 600;
|
|
290
|
+
line-height: 14px;
|
|
291
|
+
}
|
|
292
|
+
.recharge-view .custom-amount-input {
|
|
293
|
+
display: flex;
|
|
294
|
+
align-items: center;
|
|
295
|
+
min-height: 50px;
|
|
296
|
+
margin-top: 8px;
|
|
297
|
+
padding: 0;
|
|
298
|
+
border: 0;
|
|
299
|
+
background: transparent;
|
|
300
|
+
}
|
|
301
|
+
.recharge-view .custom-amount-input .currency {
|
|
302
|
+
flex: none;
|
|
303
|
+
margin-right: 10px;
|
|
304
|
+
color: #9a9a9a;
|
|
305
|
+
font-size: 26px;
|
|
306
|
+
font-weight: 600;
|
|
307
|
+
line-height: 36px;
|
|
308
|
+
}
|
|
309
|
+
.recharge-view .custom-amount-control {
|
|
310
|
+
flex: 1;
|
|
311
|
+
min-width: 0;
|
|
312
|
+
height: 42px;
|
|
313
|
+
padding: 0;
|
|
314
|
+
border: 0;
|
|
315
|
+
outline: none;
|
|
316
|
+
background: transparent;
|
|
317
|
+
color: #353535;
|
|
318
|
+
caret-color: #fd6701;
|
|
319
|
+
font-size: 28px;
|
|
320
|
+
font-weight: 700;
|
|
321
|
+
line-height: 42px;
|
|
322
|
+
}
|
|
323
|
+
.recharge-view .custom-amount-control:focus, .recharge-view .custom-amount-control:focus-visible {
|
|
324
|
+
border: 0;
|
|
325
|
+
outline: none;
|
|
326
|
+
box-shadow: none;
|
|
327
|
+
}
|
|
328
|
+
.recharge-view .custom-amount-control::placeholder, .recharge-view .custom-amount-control::-webkit-input-placeholder {
|
|
329
|
+
color: #b8b8b8;
|
|
330
|
+
font-size: 26px;
|
|
331
|
+
font-weight: 700;
|
|
332
|
+
}
|
|
333
|
+
.recharge-view .custom-amount-placeholder {
|
|
334
|
+
color: #b8b8b8;
|
|
335
|
+
font-size: 26px;
|
|
336
|
+
font-weight: 700;
|
|
337
|
+
line-height: 42px;
|
|
338
|
+
}
|
|
339
|
+
.recharge-view .custom-amount-tip {
|
|
340
|
+
display: flex;
|
|
341
|
+
align-items: center;
|
|
342
|
+
gap: 6px;
|
|
343
|
+
margin-top: 10px;
|
|
344
|
+
color: #a5a5a5;
|
|
345
|
+
font-size: 10px;
|
|
346
|
+
line-height: 15px;
|
|
347
|
+
}
|
|
348
|
+
.recharge-view .custom-amount-tip-icon {
|
|
349
|
+
flex: none;
|
|
350
|
+
width: 12px;
|
|
351
|
+
height: 12px;
|
|
352
|
+
border: 1px solid #b8b8b8;
|
|
353
|
+
border-radius: 50%;
|
|
354
|
+
color: #9a9a9a;
|
|
355
|
+
font-size: 9px;
|
|
356
|
+
line-height: 12px;
|
|
357
|
+
text-align: center;
|
|
358
|
+
}
|
|
241
359
|
.recharge-view .amount-footer {
|
|
242
360
|
position: fixed;
|
|
243
361
|
bottom: 0;
|
|
@@ -505,9 +623,9 @@
|
|
|
505
623
|
color: #353535;
|
|
506
624
|
background: linear-gradient(90deg, #ffebc1 0%, #ffb875 100%);
|
|
507
625
|
}
|
|
508
|
-
page {
|
|
509
|
-
--text-color: #333;
|
|
510
|
-
--text-color-dark-mode: #eee;
|
|
626
|
+
page {
|
|
627
|
+
--text-color: #333;
|
|
628
|
+
--text-color-dark-mode: #eee;
|
|
511
629
|
}
|
|
512
630
|
.account-card .card {
|
|
513
631
|
background: linear-gradient(90deg, #EEF1FA 0%, #E4E6F3 100%);
|