@uxda/appkit 1.2.72 → 4.0.0

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.
Files changed (83) hide show
  1. package/.eslintrc.mjs +7 -7
  2. package/README.md +187 -187
  3. package/babel.config.js +12 -12
  4. package/dist/appkit.css +7 -501
  5. package/dist/index.js +58 -85
  6. package/package.json +78 -78
  7. package/project.config.json +15 -15
  8. package/project.tt.json +13 -13
  9. package/rollup.config.mjs +54 -54
  10. package/src/Appkit.ts +65 -65
  11. package/src/balance/api/endpoints.ts +126 -126
  12. package/src/balance/api/index.ts +82 -82
  13. package/src/balance/components/AccountView.vue +748 -748
  14. package/src/balance/components/BalanceCard.vue +209 -209
  15. package/src/balance/components/BalanceReminder.vue +85 -85
  16. package/src/balance/components/ConsumptionFilter.vue +218 -218
  17. package/src/balance/components/ConsumptionRules.vue +68 -68
  18. package/src/balance/components/DateFilter.vue +235 -235
  19. package/src/balance/components/SecondBalance.vue +71 -71
  20. package/src/balance/components/Tip.vue +45 -45
  21. package/src/balance/components/index.ts +9 -9
  22. package/src/balance/types.ts +90 -90
  23. package/src/components/dd-area/index.vue +225 -225
  24. package/src/components/dd-icon/doc.md +21 -21
  25. package/src/components/dd-icon/index.vue +23 -23
  26. package/src/components/dd-notice-bar/index.vue +78 -78
  27. package/src/components/dd-search/doc.md +34 -34
  28. package/src/components/dd-search/index.vue +168 -168
  29. package/src/components/dd-selector/index.vue +124 -124
  30. package/src/components/ocr-id/index.vue +114 -114
  31. package/src/components/ocr-id/types.d.ts +12 -12
  32. package/src/global.ts +6 -6
  33. package/src/index.ts +88 -88
  34. package/src/main.scss +1 -1
  35. package/src/notice/api/endpoints.ts +17 -17
  36. package/src/notice/api/index.ts +82 -82
  37. package/src/notice/components/LoginSetting.vue +112 -112
  38. package/src/notice/components/NoticeBanner.vue +243 -243
  39. package/src/notice/components/NoticeEntry.vue +99 -99
  40. package/src/notice/components/NoticeList.vue +278 -315
  41. package/src/notice/components/NoticePopup.vue +163 -161
  42. package/src/notice/components/index.ts +6 -6
  43. package/src/notice/components/useCommonList.ts +86 -86
  44. package/src/notice/components/useNotice.ts +35 -35
  45. package/src/notice/index.ts +1 -1
  46. package/src/notice/types.ts +25 -25
  47. package/src/payment/api/config.ts +7 -7
  48. package/src/payment/api/endpoints.ts +103 -103
  49. package/src/payment/api/index.ts +71 -71
  50. package/src/payment/components/AmountPicker.vue +93 -93
  51. package/src/payment/components/RechargeResult.vue +69 -69
  52. package/src/payment/components/RechargeView.vue +154 -154
  53. package/src/payment/components/RightsPicker.vue +105 -105
  54. package/src/payment/components/TradeView.vue +298 -298
  55. package/src/payment/components/UserAgreement.vue +141 -141
  56. package/src/payment/components/index.ts +22 -22
  57. package/src/payment/index.ts +5 -5
  58. package/src/payment/services/index.ts +16 -16
  59. package/src/payment/services/invoke-recharge.ts +25 -25
  60. package/src/payment/services/request-payment.ts +58 -58
  61. package/src/payment/types.ts +28 -28
  62. package/src/register/components/SelfRegistration.vue +227 -227
  63. package/src/register/components/index.ts +2 -2
  64. package/src/shared/components/AppDrawer.vue +58 -58
  65. package/src/shared/components/DeviceVersion.vue +67 -67
  66. package/src/shared/components/EmptyView.vue +33 -33
  67. package/src/shared/components/PageHeader.vue +79 -79
  68. package/src/shared/components/index.ts +5 -5
  69. package/src/shared/composables/index.ts +2 -2
  70. package/src/shared/composables/useSafeArea.ts +46 -46
  71. package/src/shared/composables/useTabbar.ts +24 -24
  72. package/src/shared/http/Http.ts +135 -135
  73. package/src/shared/http/index.ts +1 -1
  74. package/src/shared/http/types.ts +157 -157
  75. package/src/shared/index.ts +3 -3
  76. package/src/shared/weixin/payment.ts +38 -38
  77. package/src/styles/fonts.scss +2 -2
  78. package/src/styles/vars.scss +3 -3
  79. package/tsconfig.json +30 -30
  80. package/types/global.d.ts +21 -21
  81. package/types/vue.d.ts +10 -10
  82. package/dist/main.css +0 -3
  83. package/dist/styles.css +0 -1
package/dist/appkit.css CHANGED
@@ -1,477 +1,3 @@
1
- .user-entry {
2
- position: absolute;
3
- left: 0;
4
- top: 130px;
5
- transform: translateY(-50%);
6
- display: flex;
7
- padding: 0 22px;
8
- align-items: center;
9
- width: 100%;
10
- }
11
- .user-entry-head {
12
- position: relative;
13
- width: 65px;
14
- height: 65px;
15
- margin-right: 8px;
16
- }
17
- .user-entry-head-img {
18
- width: 100%;
19
- height: 100%;
20
- overflow: hidden;
21
- border-radius: 50%;
22
- }
23
- .user-entry-head-icon {
24
- position: absolute;
25
- width: 15px;
26
- height: 15px;
27
- bottom: 2px;
28
- left: 48px;
29
- background: url("https://cdn.ddjf.com/static/images/wx-yunservice/edit-icon.png") center;
30
- background-size: cover;
31
- }
32
- .user-entry-bd {
33
- color: #fff;
34
- }
35
- .user-entry-bd-bigtxt {
36
- display: flex;
37
- align-items: center;
38
- font-size: 20px;
39
- font-weight: 500;
40
- line-height: 28px;
41
- margin-left: 10px;
42
- }
43
- .user-entry-bd-bigtxt-icon {
44
- width: 20px;
45
- }
46
- .user-entry-bd-txt {
47
- font-size: 20px;
48
- font-weight: 500;
49
- line-height: 25px;
50
- margin-bottom: 5px;
51
- }
52
- .user-entry-bd-smalltxt {
53
- margin-top: 0;
54
- font-size: 15px;
55
- line-height: 21px;
56
- }
57
-
58
- .user-info {
59
- padding: 0 12px;
60
- padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
61
- }
62
- .user-info-tit {
63
- height: 38px;
64
- display: flex;
65
- align-items: center;
66
- color: #666666;
67
- font-size: 12px;
68
- padding-left: 10px;
69
- }
70
- .user-info-head {
71
- border-radius: 5px;
72
- background: #fff;
73
- padding: 60px 11px 0;
74
- }
75
- .user-info-head-avatar {
76
- position: relative;
77
- width: 80px;
78
- height: 80px;
79
- margin: 0 auto 60px;
80
- }
81
- .user-info-head-img {
82
- width: 100%;
83
- height: 100%;
84
- overflow: hidden;
85
- border-radius: 50%;
86
- }
87
- .user-info-head-upload {
88
- position: absolute;
89
- bottom: -2px;
90
- left: 52px;
91
- width: 29px;
92
- height: 29px;
93
- background: #333333;
94
- overflow: hidden;
95
- border-radius: 50%;
96
- display: flex;
97
- align-items: center;
98
- justify-content: center;
99
- }
100
- .user-info-head-upload-icon {
101
- width: 17px;
102
- height: 17px;
103
- }
104
- .user-info-team-item {
105
- border-radius: 5px;
106
- background: #fff;
107
- display: flex;
108
- padding: 15px;
109
- margin-bottom: 10px;
110
- }
111
- .user-info-team-item-avatar {
112
- width: 38px;
113
- height: 38px;
114
- margin-right: 15px;
115
- border-radius: 5px;
116
- }
117
- .user-info-team-item-avatar-img {
118
- width: 100%;
119
- height: 100%;
120
- }
121
- .user-info-team-item-title {
122
- font-size: 16px;
123
- font-weight: 500;
124
- margin-bottom: 5px;
125
- }
126
- .user-info-team-item-app {
127
- margin-bottom: 8px;
128
- display: flex;
129
- align-items: center;
130
- }
131
- .user-info-team-item-app-tag {
132
- border: 1px solid rgba(53, 53, 53, 0.2);
133
- font-size: 10px;
134
- height: 18px;
135
- display: inline-flex;
136
- align-items: center;
137
- justify-content: center;
138
- padding: 0 6px;
139
- border-radius: 2px;
140
- margin-right: 20px;
141
- }
142
- .user-info-team-item-bd {
143
- flex: 1;
144
- }
145
- .user-info-team-item-role-btn {
146
- color: var(--app-primary-color, #017fff);
147
- font-size: 10px;
148
- display: inline-flex;
149
- align-items: center;
150
- }
151
- .user-info-team-item-role-btn-icon {
152
- width: 12px;
153
- height: 12px;
154
- position: relative;
155
- top: 1px;
156
- }
157
- .user-info-team-item-role-btn-icon.showRole {
158
- transform: rotate(180deg);
159
- }
160
- .user-info-team-item-role-item {
161
- display: flex;
162
- font-size: 10px;
163
- padding: 10px;
164
- background: rgba(245, 245, 245, 0.5);
165
- border-radius: 5px;
166
- margin-bottom: 10px;
167
- }
168
- .user-info-team-item-role-item-name {
169
- opacity: 0.5;
170
- white-space: nowrap;
171
- margin-right: 10px;
172
- }
173
- .user-info-team-item-role-item-info {
174
- flex: 1;
175
- color: #1a1a1a;
176
- }
177
- .user-info-team-item-user {
178
- margin-bottom: 4px;
179
- font-size: 12px;
180
- display: flex;
181
- align-items: center;
182
- }
183
- .user-info-team-item-user-icon {
184
- width: 10px;
185
- height: 10px;
186
- margin-left: 4px;
187
- }
188
- .user-info-team-item-dept {
189
- font-size: 10px;
190
- color: rgba(26, 26, 26, 0.8);
191
- }
192
- .user-info-ft-btn {
193
- width: 100%;
194
- border-color: transparent !important;
195
- color: rgba(27, 63, 107, 0.8) !important;
196
- }
197
- .user-info .nut-cell {
198
- padding-top: 11px;
199
- padding-bottom: 11px;
200
- box-shadow: none;
201
- border-bottom: 1px solid #f0f0f0;
202
- }
203
- .user-feedback {
204
- margin: 10px 12px;
205
- padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
206
- height: 100vh;
207
- box-sizing: border-box;
208
- overflow: hidden;
209
- }
210
- .user-feedback-wrap {
211
- height: 100%;
212
- background: #fff;
213
- display: flex;
214
- flex-direction: column;
215
- box-sizing: border-box;
216
- padding: 10px;
217
- border-radius: 5px;
218
- }
219
- .user-feedback-head {
220
- background: #f2f9ff;
221
- padding: 15px;
222
- border-radius: 2px;
223
- font-size: 12px;
224
- margin-bottom: 8px;
225
- }
226
- .user-feedback-head-info {
227
- padding-left: 9px;
228
- text-indent: -9px;
229
- }
230
- .user-feedback-tit {
231
- height: 44px;
232
- display: flex;
233
- align-items: center;
234
- color: #1a1a1a;
235
- font-weight: 500;
236
- font-size: 17px;
237
- }
238
- .user-feedback-body {
239
- flex: 1;
240
- background: #f5f5f5;
241
- border-radius: 4px 4px 0px 0px;
242
- display: flex;
243
- flex-direction: column;
244
- overflow: hidden;
245
- }
246
- .user-feedback-handle {
247
- border: 1px solid rgba(138, 138, 138, 0.1019607843);
248
- background: #ffffff;
249
- height: 30px;
250
- display: flex;
251
- align-items: center;
252
- padding: 3px 10px;
253
- border-radius: 4px 4px 0 0;
254
- }
255
- .user-feedback-handle-item {
256
- border-radius: 4px;
257
- color: #838383;
258
- font-size: 12px;
259
- padding: 0 5px;
260
- height: 24px;
261
- display: flex;
262
- align-items: center;
263
- }
264
- .user-feedback-handle-item-icon {
265
- width: 18px;
266
- height: 18px;
267
- margin-right: 6px;
268
- }
269
- .user-feedback-handle-item:active {
270
- background: rgba(217, 217, 217, 0.2);
271
- }
272
- .user-feedback-editor {
273
- padding: 10px;
274
- font-size: 14px;
275
- flex: 1;
276
- overflow-y: auto;
277
- }
278
- .user-feedback .ql-editor.ql-blank:before {
279
- color: rgba(0, 0, 0, 0.3);
280
- font-style: normal;
281
- }
282
- .user-feedback-footer {
283
- position: fixed;
284
- z-index: 10;
285
- bottom: 0;
286
- left: 0;
287
- width: 100%;
288
- min-height: 63px;
289
- background: #ffffff;
290
- box-shadow: 0 -3px 11px 0 rgba(224, 224, 224, 0.5);
291
- padding: 10px 12px calc(8px + env(safe-area-inset-bottom, 0px));
292
- display: flex;
293
- justify-content: space-between;
294
- box-sizing: border-box;
295
- }
296
- .user-feedback-footer-btn {
297
- flex: 1;
298
- }
299
- .user-feedback-footer-btn:first-child {
300
- margin-right: 10px;
301
- }
302
- .user-head-crop {
303
- height: 100vh;
304
- }
305
- .user-head-crop-btns {
306
- position: absolute;
307
- bottom: 0;
308
- left: 0;
309
- width: 100%;
310
- height: 50px;
311
- padding: 0 20px;
312
- box-sizing: border-box;
313
- line-height: 50px;
314
- }
315
- .user-head-crop .cbtn {
316
- color: #fff;
317
- }
318
- .user-head-crop .comfirmBtn {
319
- color: var(--app-primary-color, #017fff);
320
- }
321
- .bt-container {
322
- display: flex;
323
- flex-direction: column;
324
- justify-content: space-between;
325
- height: 100%;
326
- box-sizing: border-box;
327
- background-color: #0e1319;
328
- position: relative;
329
- overflow: hidden;
330
- }
331
- .bt-container .iconfont {
332
- position: absolute;
333
- z-index: 999;
334
- top: 20px;
335
- font-size: 15px;
336
- padding: 5px;
337
- background-color: rgba(255, 255, 255, 0.2);
338
- border-radius: 50%;
339
- color: #ffffff;
340
- }
341
- .bt-container .iconfont.active {
342
- color: #007aff;
343
- }
344
- .bt-container .icon-replay {
345
- right: 20px;
346
- }
347
- .bt-container .bt-canvas {
348
- position: absolute;
349
- left: 100%;
350
- top: 0;
351
- width: 300px;
352
- height: 300px;
353
- }
354
- .bt-container .mainContent {
355
- flex: 1;
356
- margin: 30px;
357
- position: relative;
358
- }
359
- .bt-container .mainContent .image {
360
- position: absolute;
361
- transform-origin: center center;
362
- }
363
- .bt-container .mainContent .controller {
364
- position: absolute;
365
- z-index: 99;
366
- padding: 10px;
367
- }
368
- .bt-container .mainContent .controller::after {
369
- display: block;
370
- content: "";
371
- box-shadow: 0 0 5px #333;
372
- background-color: #e4e7ed;
373
- }
374
- .bt-container .mainContent .controller.controller_dot::after {
375
- width: 20px;
376
- height: 20px;
377
- border-radius: 99px;
378
- }
379
- .bt-container .mainContent .controller.vertical::after {
380
- width: 5px;
381
- height: 20px;
382
- }
383
- .bt-container .mainContent .controller.horizon::after {
384
- width: 20px;
385
- height: 5px;
386
- }
387
- .bt-container .mainContent .cropper {
388
- position: absolute;
389
- border: 1px solid #eee;
390
- box-sizing: content-box;
391
- transform-origin: center center;
392
- outline: 999px solid rgba(0, 0, 0, 0.5);
393
- will-change: transform;
394
- display: contain;
395
- pointer-events: none;
396
- }
397
- .bt-container .mainContent .cropper .line {
398
- position: absolute;
399
- }
400
- .bt-container .mainContent .cropper .row {
401
- width: 100%;
402
- height: 0px;
403
- left: 0;
404
- border-top: 1px dashed #007aff;
405
- }
406
- .bt-container .mainContent .cropper .col {
407
- height: 100%;
408
- width: 0px;
409
- border-left: 1px dashed #007aff;
410
- }
411
- .bt-container .mainContent .cropper .row1 {
412
- top: 33%;
413
- }
414
- .bt-container .mainContent .cropper .row2 {
415
- top: 66%;
416
- }
417
- .bt-container .mainContent .cropper .col1 {
418
- left: 33%;
419
- }
420
- .bt-container .mainContent .cropper .col2 {
421
- left: 66%;
422
- }
423
- .bt-container .slot {
424
- position: relative;
425
- padding-top: 10px;
426
- }
427
- .user-feedback-entry {
428
- position: fixed;
429
- right: 12px;
430
- bottom: calc(120px + env(safe-area-inset-bottom, 0px));
431
- display: flex;
432
- flex-direction: column;
433
- align-items: center;
434
- justify-content: center;
435
- background: #fff;
436
- box-shadow: 0px 2px 5px 0px rgba(0, 110, 229, 0.1019607843);
437
- width: 40px;
438
- height: 40px;
439
- border-radius: 50%;
440
- color: rgba(0, 0, 0, 0.5);
441
- font-size: 10px;
442
- }
443
- .user-feedback-entry-icon {
444
- width: 13px;
445
- height: 13px;
446
- margin-bottom: 1px;
447
- }
448
- .user-feedback-entry:active {
449
- background: rgba(255, 255, 255, 0.7);
450
- }
451
- .login-setting {
452
- position: fixed;
453
- z-index: 4;
454
- left: 12px;
455
- top: 10px;
456
- bottom: 10px;
457
- align-items: center;
458
- justify-content: center;
459
- width: calc(100% - 24px);
460
- background: #ffffff;
461
- border-radius: 5px;
462
- display: flex;
463
- flex-direction: column;
464
- }
465
- .login-setting-img {
466
- height: 111px;
467
- width: 198px;
468
- }
469
- .login-setting-text {
470
- margin-top: 10px;
471
- color: #353535;
472
- opacity: 0.4;
473
- font-size: 12px;
474
- }
475
1
  .amount-picker {
476
2
  padding: 14px 0 14px 14px;
477
3
  }
@@ -847,12 +373,12 @@
847
373
  color: #353535;
848
374
  background: linear-gradient(90deg, #FFEBC1 0%, #FFB875 100%);
849
375
  }
850
- page {
851
- --text-color: #333;
852
- --text-color-dark-mode: #eee;
376
+ page {
377
+ --text-color: #333;
378
+ --text-color-dark-mode: #eee;
853
379
  }
854
- .number {
855
- font-family: 'DIN alternate', 'Barlow Condensed', 'Roboto Condensed', sans-serif-condensed-light;
380
+ .number {
381
+ font-family: 'DIN alternate', 'Barlow Condensed', 'Roboto Condensed', sans-serif-condensed-light;
856
382
  }
857
383
  .account-card .card {
858
384
  background: #2f2f2f;
@@ -1781,8 +1307,8 @@ page {
1781
1307
  }
1782
1308
  .notice-entry {
1783
1309
  position: fixed;
1784
- right: 0;
1785
- top: 120px;
1310
+ right: 43px;
1311
+ top: 21px;
1786
1312
  min-width: 66px;
1787
1313
  padding: 0 12px 0 15px;
1788
1314
  text-align: center;
@@ -1955,12 +1481,6 @@ page {
1955
1481
  font-size: 15px;
1956
1482
  margin-bottom: 4px;
1957
1483
  }
1958
- .notice-list .wrapper .content .card.active .notice-list-label {
1959
- opacity: 1;
1960
- }
1961
- .notice-list .wrapper .content .card.active .notice-list-file {
1962
- opacity: 1;
1963
- }
1964
1484
  .notice-list .no-data {
1965
1485
  background-color: #fff;
1966
1486
  display: flex;
@@ -1983,24 +1503,10 @@ page {
1983
1503
  .notice-list-file {
1984
1504
  font-size: 10px;
1985
1505
  color: #017fff;
1986
- opacity: 0.5;
1987
1506
  }
1988
1507
  .notice-list .cue-text {
1989
1508
  font-size: 13px;
1990
1509
  color: rgba(60, 60, 60, 0.5);
1991
1510
  padding: 30px 0 calc(30px + env(safe-area-inset-bottom, 0px));
1992
1511
  text-align: center;
1993
- }
1994
- .notice-list-label {
1995
- border: 1px solid #caa264;
1996
- color: #caa264;
1997
- border-radius: 1px;
1998
- font-size: 8px;
1999
- display: inline-flex;
2000
- justify-content: center;
2001
- align-items: center;
2002
- height: 14px;
2003
- padding: 0 5px;
2004
- margin-left: 4px;
2005
- opacity: 0.5;
2006
1512
  }