ydb-components-material 0.1.125 → 0.1.127

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 (130) hide show
  1. package/build/docs/404.html +3 -3
  2. package/build/docs/_demos/:uuid +3 -3
  3. package/build/docs/colorful-button.html +3 -3
  4. package/build/docs/colorful-input.html +3 -3
  5. package/build/docs/index.html +3 -3
  6. package/build/docs/{umi.35f02979.css → umi.57dda8ea.css} +1 -1
  7. package/build/docs/umi.814d7acd.js +1 -0
  8. package/build/docs/~demos/:uuid.html +3 -3
  9. package/build/docs/~demos/colorful-button-demo.html +3 -3
  10. package/build/docs/~demos/colorful-input-demo.html +3 -3
  11. package/build/lowcode/3.js +2 -2
  12. package/build/lowcode/4.js +1 -1
  13. package/build/lowcode/5.js +1 -1
  14. package/build/lowcode/assets-daily.json +11 -11
  15. package/build/lowcode/assets-dev.json +2 -2
  16. package/build/lowcode/assets-prod.json +11 -11
  17. package/build/lowcode/index.js +1 -1
  18. package/build/lowcode/meta.js +10 -1
  19. package/build/lowcode/preview.js +145 -145
  20. package/build/lowcode/render/default/1.js +2 -2
  21. package/build/lowcode/render/default/2.js +1 -1
  22. package/build/lowcode/render/default/3.js +1 -1
  23. package/build/lowcode/render/default/view.css +1 -1
  24. package/build/lowcode/render/default/view.js +32 -23
  25. package/build/lowcode/view.css +1 -1
  26. package/build/lowcode/view.js +32 -23
  27. package/dist/1.js +2 -2
  28. package/dist/1.js.map +1 -1
  29. package/dist/2.js +1 -1
  30. package/dist/3.js +1 -1
  31. package/dist/BizComps.css +1 -1
  32. package/dist/BizComps.js +38 -29
  33. package/dist/BizComps.js.map +1 -1
  34. package/es/api.js +29 -28
  35. package/es/components/file-list/item.js +3 -1
  36. package/es/components/guide-pc/comment.js +4 -4
  37. package/es/components/guide-pc/comment.scss +3 -3
  38. package/es/components/guide-pc/components/accept.js +3 -3
  39. package/es/components/guide-pc/components/accept.scss +3 -3
  40. package/es/components/guide-pc/components/basicInfo.js +31 -31
  41. package/es/components/guide-pc/components/basicInfo.scss +5 -5
  42. package/es/components/guide-pc/components/eventInfo.d.ts +7 -0
  43. package/es/components/guide-pc/components/eventInfo.js +45 -0
  44. package/es/components/guide-pc/components/eventInfo.scss +36 -0
  45. package/es/components/guide-pc/components/guideTabs.js +2 -2
  46. package/es/components/guide-pc/components/guideTabs.scss +3 -2
  47. package/es/components/guide-pc/components/guideTitle.js +4 -4
  48. package/es/components/guide-pc/components/guideTitle.scss +3 -3
  49. package/es/components/guide-pc/components/materialsList.js +46 -49
  50. package/es/components/guide-pc/components/materialsList.scss +22 -22
  51. package/es/components/guide-pc/components/places.js +21 -21
  52. package/es/components/guide-pc/components/places.scss +19 -19
  53. package/es/components/guide-pc/components/processImg.js +19 -19
  54. package/es/components/guide-pc/components/processImg.scss +16 -16
  55. package/es/components/guide-pc/components/result.js +36 -36
  56. package/es/components/guide-pc/components/result.scss +15 -15
  57. package/es/components/guide-pc/components/situation.d.ts +4 -0
  58. package/es/components/guide-pc/components/situation.js +35 -31
  59. package/es/components/guide-pc/components/situation.scss +9 -9
  60. package/es/components/guide-pc/imgs/icon1.png +0 -0
  61. package/es/components/guide-pc/imgs/icon2.png +0 -0
  62. package/es/components/guide-pc/index.d.ts +1 -3
  63. package/es/components/guide-pc/index.js +41 -88
  64. package/es/components/guide-pc/index.scss +43 -103
  65. package/lib/api.js +29 -28
  66. package/lib/components/file-list/item.js +3 -1
  67. package/lib/components/guide-pc/comment.js +4 -4
  68. package/lib/components/guide-pc/comment.scss +3 -3
  69. package/lib/components/guide-pc/components/accept.js +3 -3
  70. package/lib/components/guide-pc/components/accept.scss +3 -3
  71. package/lib/components/guide-pc/components/basicInfo.js +31 -31
  72. package/lib/components/guide-pc/components/basicInfo.scss +5 -5
  73. package/lib/components/guide-pc/components/eventInfo.d.ts +7 -0
  74. package/lib/components/guide-pc/components/eventInfo.js +51 -0
  75. package/lib/components/guide-pc/components/eventInfo.scss +36 -0
  76. package/lib/components/guide-pc/components/guideTabs.js +2 -2
  77. package/lib/components/guide-pc/components/guideTabs.scss +3 -2
  78. package/lib/components/guide-pc/components/guideTitle.js +4 -4
  79. package/lib/components/guide-pc/components/guideTitle.scss +3 -3
  80. package/lib/components/guide-pc/components/materialsList.js +46 -49
  81. package/lib/components/guide-pc/components/materialsList.scss +22 -22
  82. package/lib/components/guide-pc/components/places.js +21 -21
  83. package/lib/components/guide-pc/components/places.scss +19 -19
  84. package/lib/components/guide-pc/components/processImg.js +19 -19
  85. package/lib/components/guide-pc/components/processImg.scss +16 -16
  86. package/lib/components/guide-pc/components/result.js +36 -36
  87. package/lib/components/guide-pc/components/result.scss +15 -15
  88. package/lib/components/guide-pc/components/situation.d.ts +4 -0
  89. package/lib/components/guide-pc/components/situation.js +35 -31
  90. package/lib/components/guide-pc/components/situation.scss +9 -9
  91. package/lib/components/guide-pc/imgs/icon1.png +0 -0
  92. package/lib/components/guide-pc/imgs/icon2.png +0 -0
  93. package/lib/components/guide-pc/index.d.ts +1 -3
  94. package/lib/components/guide-pc/index.js +41 -88
  95. package/lib/components/guide-pc/index.scss +43 -103
  96. package/lowcode/guide-pc/meta.ts +1 -32
  97. package/lowcode_es/guide-pc/meta.js +0 -30
  98. package/lowcode_es/meta.js +1 -1
  99. package/lowcode_lib/guide-pc/meta.js +0 -30
  100. package/lowcode_lib/meta.js +1 -1
  101. package/package.json +4 -3
  102. package/build/docs/umi.5327dbca.js +0 -1
  103. package/es/components/guide-pc/comment.vue +0 -117
  104. package/es/components/guide-pc/components/accept.vue +0 -50
  105. package/es/components/guide-pc/components/basicInfo.vue +0 -81
  106. package/es/components/guide-pc/components/guideTabs.vue +0 -48
  107. package/es/components/guide-pc/components/guideTitle.vue +0 -43
  108. package/es/components/guide-pc/components/materialsList.vue +0 -403
  109. package/es/components/guide-pc/components/places.vue +0 -198
  110. package/es/components/guide-pc/components/processImg.vue +0 -300
  111. package/es/components/guide-pc/components/result.vue +0 -191
  112. package/es/components/guide-pc/components/situation.vue +0 -430
  113. package/es/components/guide-pc/guide.vue +0 -179
  114. package/es/components/guide-pc/imgs/error.png +0 -0
  115. package/es/components/guide-pc/imgs/judge.png +0 -0
  116. package/es/components/guide-pc/imgs/pass.png +0 -0
  117. package/lib/components/guide-pc/comment.vue +0 -117
  118. package/lib/components/guide-pc/components/accept.vue +0 -50
  119. package/lib/components/guide-pc/components/basicInfo.vue +0 -81
  120. package/lib/components/guide-pc/components/guideTabs.vue +0 -48
  121. package/lib/components/guide-pc/components/guideTitle.vue +0 -43
  122. package/lib/components/guide-pc/components/materialsList.vue +0 -403
  123. package/lib/components/guide-pc/components/places.vue +0 -198
  124. package/lib/components/guide-pc/components/processImg.vue +0 -300
  125. package/lib/components/guide-pc/components/result.vue +0 -191
  126. package/lib/components/guide-pc/components/situation.vue +0 -430
  127. package/lib/components/guide-pc/guide.vue +0 -179
  128. package/lib/components/guide-pc/imgs/error.png +0 -0
  129. package/lib/components/guide-pc/imgs/judge.png +0 -0
  130. package/lib/components/guide-pc/imgs/pass.png +0 -0
@@ -1,4 +1,3 @@
1
- import _Button from "@alifd/next/es/button";
2
1
  import _Dialog from "@alifd/next/es/dialog";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _Message from "@alifd/next/es/message";
@@ -12,9 +11,7 @@ import ProcessImg from "./components/processImg";
12
11
  import Accept from "./components/accept";
13
12
  import Places from "./components/places";
14
13
  import Result from "./components/result";
15
- import commentIcon from "../guide/imgs/comment.png";
16
- import shareIcon from "../guide/imgs/share.png";
17
- import downloadIcon from "../guide/imgs/download.png";
14
+ import EventInfo from "./components/eventInfo";
18
15
  import "./index.scss";
19
16
 
20
17
  // TODO: API imports not available
@@ -40,12 +37,7 @@ var tabSections = [{
40
37
  label: '成效分析'
41
38
  }];
42
39
  var GuidePc = function GuidePc(_ref) {
43
- var _eventInfoProp$taskGe;
44
40
  var onNextStep = _ref.onNextStep,
45
- _ref$cantNext = _ref.cantNext,
46
- cantNext = _ref$cantNext === void 0 ? false : _ref$cantNext,
47
- _ref$hasPrevious = _ref.hasPrevious,
48
- hasPrevious = _ref$hasPrevious === void 0 ? false : _ref$hasPrevious,
49
41
  taskHandleItem = _ref.taskHandleItem,
50
42
  accessToken = _ref.accessToken,
51
43
  eventInfoProp = _ref.eventInfo,
@@ -58,7 +50,8 @@ var GuidePc = function GuidePc(_ref) {
58
50
  baseUrl = _ref.baseUrl,
59
51
  download = _ref.download,
60
52
  situationResRechange = _ref.situationResRechange,
61
- previousData = _ref.previousData;
53
+ previousData = _ref.previousData,
54
+ style = _ref.style;
62
55
  var _React$useState = React.useState(0),
63
56
  tabIndex = _React$useState[0],
64
57
  setTabIndex = _React$useState[1];
@@ -271,29 +264,36 @@ var GuidePc = function GuidePc(_ref) {
271
264
  };
272
265
  }, []);
273
266
  return /*#__PURE__*/React.createElement("div", {
274
- className: "guidePc-wrapper"
267
+ className: "pc-guidePc-wrapper",
268
+ style: style
275
269
  }, !canHandle && /*#__PURE__*/React.createElement("div", {
276
- className: "guide-empty"
270
+ className: "pc-guide-empty"
277
271
  }, "\u6682\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u4E8B\u9879"), canHandle && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
278
- className: "guidePc-main"
279
- }, /*#__PURE__*/React.createElement("div", {
280
- className: "guidePc-content"
272
+ className: "pc-guidePc-main"
273
+ }, /*#__PURE__*/React.createElement(EventInfo, {
274
+ eventInfo: eventInfoProp
275
+ }), /*#__PURE__*/React.createElement("div", {
276
+ className: "pc-guidePc-content"
281
277
  }, /*#__PURE__*/React.createElement("div", {
282
- className: "stity"
278
+ className: "pc-stity"
283
279
  }, /*#__PURE__*/React.createElement(GuideTabs, {
284
280
  curTab: tabIndex,
285
281
  onTabsChange: changeTab
286
282
  })), /*#__PURE__*/React.createElement("div", {
287
- className: "gap"
283
+ className: "pc-gap"
288
284
  }), /*#__PURE__*/React.createElement("div", {
289
285
  id: "section-materials"
290
- }, (eventInfoProp === null || eventInfoProp === void 0 ? void 0 : (_eventInfoProp$taskGe = eventInfoProp.taskGeneralExtend) === null || _eventInfoProp$taskGe === void 0 ? void 0 : _eventInfoProp$taskGe.programProcess) && /*#__PURE__*/React.createElement(Situation, {
286
+ }, situationPageUrl && /*#__PURE__*/React.createElement(Situation, {
291
287
  eventInfo: eventInfoProp,
292
288
  applicationId: applicationId,
293
289
  accessToken: accessToken,
294
290
  acctType: acctType,
291
+ finalMaterials: finalMaterials,
295
292
  declarationAppToken: declarationAppToken,
296
- taskHandleItem: taskHandleItem
293
+ situationPageUrl: situationPageUrl,
294
+ taskHandleItem: taskHandleItem,
295
+ situationResRechange: situationResRechange,
296
+ previousData: previousData
297
297
  }), /*#__PURE__*/React.createElement(MaterialsList, {
298
298
  eventInfo: eventInfoProp,
299
299
  finalMaterials: finalMaterials,
@@ -302,101 +302,54 @@ var GuidePc = function GuidePc(_ref) {
302
302
  download: download
303
303
  })), /*#__PURE__*/React.createElement("div", {
304
304
  id: "section-basicInfo",
305
- className: "content-section"
305
+ className: "pc-content-section"
306
306
  }, /*#__PURE__*/React.createElement(BasicInfo, {
307
307
  eventInfo: eventInfoProp
308
308
  })), /*#__PURE__*/React.createElement("div", {
309
309
  id: "section-process",
310
- className: "content-section"
310
+ className: "pc-content-section"
311
311
  }, /*#__PURE__*/React.createElement(ProcessImg, {
312
312
  eventInfo: eventInfoProp,
313
313
  baseUrl: baseUrl,
314
314
  declarationAppToken: declarationAppToken
315
315
  })), /*#__PURE__*/React.createElement("div", {
316
316
  id: "section-accept",
317
- className: "content-section"
317
+ className: "pc-content-section"
318
318
  }, /*#__PURE__*/React.createElement(Accept, {
319
319
  eventInfo: eventInfoProp
320
320
  })), /*#__PURE__*/React.createElement("div", {
321
321
  id: "section-places",
322
- className: "content-section"
322
+ className: "pc-content-section"
323
323
  }, /*#__PURE__*/React.createElement(Places, {
324
324
  eventInfo: eventInfoProp
325
325
  })), /*#__PURE__*/React.createElement("div", {
326
326
  id: "section-result",
327
- className: "content-section"
327
+ className: "pc-content-section"
328
328
  }, /*#__PURE__*/React.createElement(Result, {
329
329
  eventInfo: eventInfoProp
330
330
  })))), /*#__PURE__*/React.createElement("div", {
331
- className: "guidePc-bottom"
332
- }, /*#__PURE__*/React.createElement("div", {
333
- className: "bottom-inner"
334
- }, userAgreementList.length > 0 && /*#__PURE__*/React.createElement("div", {
335
- className: "agreement-row"
336
- }, /*#__PURE__*/React.createElement("label", {
337
- className: "agreement-checkbox"
338
- }, /*#__PURE__*/React.createElement("input", {
339
- type: "checkbox",
340
- checked: isAgree,
341
- onChange: function onChange(e) {
342
- return setIsAgree(e.target.checked);
343
- }
344
- }), /*#__PURE__*/React.createElement("span", {
345
- className: "agreement-label-text"
346
- }, agreementPrompt)), /*#__PURE__*/React.createElement("div", {
347
- className: "agreement-tip-slot"
348
- }, userAgreementList.map(function (item, index) {
349
- return /*#__PURE__*/React.createElement("span", {
350
- key: index,
351
- className: "agreement-item",
352
- onClick: function onClick() {
353
- return showAgree(item);
354
- }
355
- }, "\u300A", item.agreementName, "\u300B");
356
- }))), /*#__PURE__*/React.createElement("div", {
357
- className: "action-row"
358
- }, /*#__PURE__*/React.createElement("div", {
359
- className: "left-actions"
331
+ className: "pc-guidePc-bottom"
360
332
  }, /*#__PURE__*/React.createElement("div", {
361
- className: "action-btn",
333
+ className: "pc-action-btn",
362
334
  onClick: goComment
363
- }, /*#__PURE__*/React.createElement("img", {
364
- className: "btn-icon",
365
- src: commentIcon,
366
- alt: "\u8BC4\u4EF7"
367
- }), /*#__PURE__*/React.createElement("span", {
368
- className: "name"
335
+ }, /*#__PURE__*/React.createElement("span", {
336
+ className: "pc-name"
369
337
  }, "\u8BC4\u4EF7\u6307\u5357")), /*#__PURE__*/React.createElement("div", {
370
- className: "action-btn",
338
+ className: "pc-action-btn",
371
339
  onClick: goShare
372
- }, /*#__PURE__*/React.createElement("img", {
373
- className: "btn-icon",
374
- src: shareIcon,
375
- alt: "\u5206\u4EAB"
376
- }), /*#__PURE__*/React.createElement("span", {
377
- className: "name"
340
+ }, /*#__PURE__*/React.createElement("span", {
341
+ className: "pc-name"
378
342
  }, "\u5206\u4EAB")), /*#__PURE__*/React.createElement("div", {
379
- className: "action-btn",
343
+ className: "pc-action-btn",
380
344
  onClick: goDownload
381
- }, /*#__PURE__*/React.createElement("img", {
382
- className: "btn-icon",
383
- src: downloadIcon,
384
- alt: "\u4E0B\u8F7D"
385
- }), /*#__PURE__*/React.createElement("span", {
386
- className: "name"
387
- }, "\u4E0B\u8F7D"))), /*#__PURE__*/React.createElement("div", {
388
- className: "right-actions"
389
- }, hasPrevious && /*#__PURE__*/React.createElement(_Button, {
390
- className: "prev-btn",
391
- onClick: prepStep,
392
- disabled: cantNext
393
- }, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/React.createElement(_Button, {
394
- type: "primary",
395
- className: "next-btn",
345
+ }, /*#__PURE__*/React.createElement("span", {
346
+ className: "pc-name"
347
+ }, "\u4E0B\u8F7D")), /*#__PURE__*/React.createElement("div", {
348
+ className: "pc-next-btn",
396
349
  disabled: !canHandle,
397
350
  onClick: handleEvent
398
- }, "\u7ACB\u5373\u529E\u7406"))))), showGoUp && /*#__PURE__*/React.createElement("div", {
399
- className: "go-up-btn",
351
+ }, "\u7ACB\u5373\u529E\u7406")), showGoUp && /*#__PURE__*/React.createElement("div", {
352
+ className: "pc-go-up-btn",
400
353
  onClick: goUp
401
354
  }, "\u25B2 \u9876\u90E8")), /*#__PURE__*/React.createElement(_Dialog, {
402
355
  visible: popShow,
@@ -406,7 +359,7 @@ var GuidePc = function GuidePc(_ref) {
406
359
  footer: false,
407
360
  width: "90%"
408
361
  }, /*#__PURE__*/React.createElement("div", {
409
- className: "agree-detail",
362
+ className: "pc-agree-detail",
410
363
  dangerouslySetInnerHTML: {
411
364
  __html: userAgreement
412
365
  }
@@ -425,11 +378,11 @@ var GuidePc = function GuidePc(_ref) {
425
378
  return setModalShow(false);
426
379
  }
427
380
  }, /*#__PURE__*/React.createElement("div", {
428
- className: "agree"
381
+ className: "pc-agree"
429
382
  }, agreementPrompt, userAgreementList.map(function (item, index) {
430
383
  return /*#__PURE__*/React.createElement("span", {
431
384
  key: index,
432
- className: "agreement-sub-item",
385
+ className: "pc-agreement-sub-item",
433
386
  onClick: function onClick() {
434
387
  return showAgree(item);
435
388
  }
@@ -1,9 +1,9 @@
1
- .guidePc-wrapper {
2
- min-height: 100vh;
1
+ .pc-guidePc-wrapper {
3
2
  background: #ffffff;
4
- position: relative;
3
+ display: flex;
4
+ flex-direction: column;
5
5
 
6
- .guide-empty {
6
+ .pc-guide-empty {
7
7
  text-align: center;
8
8
  padding: 100px 0;
9
9
  font-size: 16px;
@@ -11,130 +11,70 @@
11
11
  }
12
12
  }
13
13
 
14
- .guidePc-main {
15
- max-width: 1200px;
16
- margin: 0 auto;
17
- min-height: 80vh;
14
+ .pc-guidePc-main {
15
+ flex: 1;
16
+ overflow-y: auto;
17
+ overflow-x: hidden;
18
18
  }
19
19
 
20
20
  /* ============ Sticky Top Tabs ============ */
21
- .stity {
21
+ .pc-stity {
22
22
  position: sticky;
23
23
  top: 0;
24
24
  z-index: 9;
25
25
  background: #ffffff;
26
26
  }
27
27
 
28
- .gap {
28
+ .pc-gap {
29
29
  height: 24px;
30
30
  }
31
31
 
32
32
  /* ============ Content Area ============ */
33
- .guidePc-content {
34
- .content-section {
33
+ .pc-guidePc-content {
34
+ .pc-content-section {
35
35
  margin-top: 24px;
36
36
  }
37
37
  }
38
38
 
39
39
  /* ============ Bottom Action Bar ============ */
40
- .guidePc-bottom {
40
+ .pc-guidePc-bottom {
41
+ flex-shrink: 0;
41
42
  border-top: 1px solid #e8e8e8;
42
43
  background: #ffffff;
43
- padding: 16px 0;
44
-
45
- .bottom-inner {
46
- max-width: 1200px;
47
- margin: 0 auto;
48
- }
49
-
50
- .agreement-row {
51
- display: flex;
52
- align-items: center;
53
- gap: 8px;
54
- margin-bottom: 16px;
55
- padding: 0 16px;
56
-
57
- .agreement-checkbox {
58
- display: flex;
59
- align-items: center;
60
- gap: 6px;
61
- cursor: pointer;
62
- font-size: 14px;
63
- color: #333;
64
-
65
- input[type="checkbox"] {
66
- width: 16px;
67
- height: 16px;
68
- cursor: pointer;
69
- }
70
- }
44
+ padding: 16px 24px;
45
+ display: flex;
46
+ justify-content: flex-end;
47
+ gap: 12px;
71
48
 
72
- .agreement-item {
73
- color: #1678FF;
74
- cursor: pointer;
75
- font-size: 14px;
76
- margin-left: 4px;
77
49
 
78
- &:hover {
79
- text-decoration: underline;
80
- }
81
- }
50
+ .pc-next-btn {
51
+ width: 96px;
52
+ height: 40px;
53
+ border-radius: 4px;
54
+ opacity: 1;
55
+ text-align: center;
56
+ font-size: 14px;
57
+ line-height: 40px;
58
+ background: #1678FF;
59
+ color: #ffffff;
82
60
  }
83
61
 
84
- .action-row {
85
- display: flex;
86
- justify-content: space-between;
87
- align-items: center;
88
- padding: 0 16px;
89
-
90
- .left-actions {
91
- display: flex;
92
- gap: 24px;
93
-
94
- .action-btn {
95
- display: flex;
96
- align-items: center;
97
- gap: 6px;
98
- cursor: pointer;
99
- color: #666666;
100
- font-size: 14px;
101
- padding: 6px 12px;
102
- border-radius: 6px;
103
- transition: all 0.2s;
104
-
105
- &:hover {
106
- background: #f0f5ff;
107
- color: #1678FF;
108
- }
109
-
110
- .btn-icon {
111
- width: 18px;
112
- height: 18px;
113
- }
114
- }
115
- }
116
-
117
- .right-actions {
118
- display: flex;
119
- gap: 12px;
120
-
121
- .prev-btn {
122
- border-color: #d9d9d9;
123
- color: #333;
124
- }
125
-
126
- .next-btn {
127
- background: linear-gradient(90deg, #1678FF, #76ADFA);
128
- border: none;
129
- color: #ffffff;
130
- font-weight: 500;
131
- }
132
- }
62
+ .pc-action-btn {
63
+ width: 88px;
64
+ height: 40px;
65
+ border-radius: 4px;
66
+ opacity: 1;
67
+ text-align: center;
68
+ font-size: 14px;
69
+ line-height: 40px;
70
+ background: #F7F8FA;
71
+ color: #222222;
72
+ font-size: 14px;
133
73
  }
134
74
  }
135
75
 
136
76
  /* ============ Scroll-to-top Button ============ */
137
- .go-up-btn {
77
+ .pc-go-up-btn {
138
78
  position: fixed;
139
79
  bottom: 120px;
140
80
  right: 40px;
@@ -160,7 +100,7 @@
160
100
  }
161
101
 
162
102
  /* ============ Agreement Modals ============ */
163
- .agree-detail {
103
+ .pc-agree-detail {
164
104
  max-height: 70vh;
165
105
  overflow-y: auto;
166
106
  padding: 16px;
@@ -168,12 +108,12 @@
168
108
  line-height: 1.6;
169
109
  }
170
110
 
171
- .agree {
111
+ .pc-agree {
172
112
  font-size: 14px;
173
113
  line-height: 1.6;
174
114
  color: #333;
175
115
 
176
- .agreement-sub-item {
116
+ .pc-agreement-sub-item {
177
117
  color: #1678FF;
178
118
  cursor: pointer;
179
119
  margin-left: 4px;
package/lib/api.js CHANGED
@@ -5,9 +5,10 @@ exports.__esModule = true;
5
5
  exports.signurl = exports.signFileDownApi = exports.qrySealApi = exports.previewApi = exports.post = exports.onlinePreview = exports.getUrlById = exports.getSignOrderIdApi = exports.getSignFileApi = exports.getSealUrlApi = exports.getPcSealUrlApi = exports.getMaterialPreview = exports.getMaterialLib = exports.getIcons = exports.getGuideImg = exports.get = exports.fileUploadApi = exports.documentDownload = exports.createbycategory = exports.contractSignUrl = exports.contractFinish = exports.checkSignState = void 0;
6
6
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
7
7
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
8
+ var _axios = _interopRequireDefault(require("axios"));
8
9
  var post = exports.post = /*#__PURE__*/function () {
9
10
  var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(url, data, config, noJson) {
10
- var res;
11
+ var response, _t;
11
12
  return _regenerator["default"].wrap(function (_context) {
12
13
  while (1) switch (_context.prev = _context.next) {
13
14
  case 0:
@@ -19,32 +20,31 @@ var post = exports.post = /*#__PURE__*/function () {
19
20
  // if (config.env === 'release' && url.indexOf('zwfwpt.sxzwfw.gov.cn') > -1) {
20
21
  // url = url.replace('zwfwpt.sxzwfw.gov.cn', 'zwfwpt.sxzwfw.gov.cn:10010')
21
22
  // }
22
- _context.next = 1;
23
- return fetch(url, {
23
+ _context.prev = 1;
24
+ _context.next = 2;
25
+ return (0, _axios["default"])({
24
26
  method: 'POST',
27
+ url: url,
28
+ data: data,
25
29
  headers: {
26
30
  'Content-Type': config && config['Content-Type'] ? config['Content-Type'] : 'application/json',
27
- // 声明发送的数据格式
28
- // url.indexOf('zwfwpt.sxzwfw.gov.cn') > -1 ? config.token : config.tokenTY
29
31
  'Authorization': config && config.tokenTY ? config.tokenTY : ''
30
32
  },
31
- body: JSON.stringify(data)
32
- }).then(function (response) {
33
- console.log('response', response, response.body);
34
- return noJson ? response.text() : response.json();
35
- }).then(function (res) {
36
- return res;
37
- })["catch"](function (err) {
38
- return err;
33
+ responseType: noJson ? 'text' : 'json'
39
34
  });
40
- case 1:
41
- res = _context.sent;
42
- return _context.abrupt("return", res);
43
35
  case 2:
36
+ response = _context.sent;
37
+ console.log('response', response);
38
+ return _context.abrupt("return", response.data);
39
+ case 3:
40
+ _context.prev = 3;
41
+ _t = _context["catch"](1);
42
+ return _context.abrupt("return", _t);
43
+ case 4:
44
44
  case "end":
45
45
  return _context.stop();
46
46
  }
47
- }, _callee);
47
+ }, _callee, null, [[1, 3]]);
48
48
  }));
49
49
  return function post(_x, _x2, _x3, _x4) {
50
50
  return _ref.apply(this, arguments);
@@ -52,32 +52,33 @@ var post = exports.post = /*#__PURE__*/function () {
52
52
  }();
53
53
  var get = exports.get = /*#__PURE__*/function () {
54
54
  var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(url, data, config) {
55
- var res;
55
+ var response, _t2;
56
56
  return _regenerator["default"].wrap(function (_context2) {
57
57
  while (1) switch (_context2.prev = _context2.next) {
58
58
  case 0:
59
+ _context2.prev = 0;
59
60
  _context2.next = 1;
60
- return fetch(url + "?" + new URLSearchParams(data), {
61
+ return (0, _axios["default"])({
61
62
  method: 'GET',
63
+ url: url,
64
+ params: data,
62
65
  headers: {
63
66
  'Content-Type': config && config['Content-Type'] ? config['Content-Type'] : 'application/json',
64
67
  'Authorization': config && config.tokenTY ? config.tokenTY : ''
65
68
  }
66
- }).then(function (response) {
67
- return response.json();
68
- }).then(function (res) {
69
- return res;
70
- })["catch"](function (err) {
71
- return err;
72
69
  });
73
70
  case 1:
74
- res = _context2.sent;
75
- return _context2.abrupt("return", res);
71
+ response = _context2.sent;
72
+ return _context2.abrupt("return", response.data);
76
73
  case 2:
74
+ _context2.prev = 2;
75
+ _t2 = _context2["catch"](0);
76
+ return _context2.abrupt("return", _t2);
77
+ case 3:
77
78
  case "end":
78
79
  return _context2.stop();
79
80
  }
80
- }, _callee2);
81
+ }, _callee2, null, [[0, 2]]);
81
82
  }));
82
83
  return function get(_x5, _x6, _x7) {
83
84
  return _ref2.apply(this, arguments);
@@ -469,6 +469,7 @@ var FileItem = function FileItem(_ref) {
469
469
  break;
470
470
  }
471
471
  _message["default"].error('该单位下暂无印章,请前往"山西政务服务网"或"三晋通"小程序申领印章');
472
+ closeLoading();
472
473
  return _context3.abrupt("return");
473
474
  case 4:
474
475
  setIsShowSealPage(true);
@@ -780,7 +781,7 @@ var FileItem = function FileItem(_ref) {
780
781
  return extractImageUrls(res.url);
781
782
  case 5:
782
783
  list = _context7.sent;
783
- console.log('list---', list);
784
+ console.log('list---111111', list);
784
785
  return _context7.abrupt("return", list[0]);
785
786
  case 6:
786
787
  case "end":
@@ -794,6 +795,7 @@ var FileItem = function FileItem(_ref) {
794
795
  }();
795
796
  (0, _react.useEffect)(function () {
796
797
  if (fileId) {
798
+ console.log('fileId---', fileId);
797
799
  getViewUrl(fileId).then(function (url) {
798
800
  setThumbnail(url);
799
801
  });
@@ -66,12 +66,12 @@ var Comment = function Comment(_ref) {
66
66
  window.history.back();
67
67
  };
68
68
  return /*#__PURE__*/React.createElement("div", {
69
- className: "comment-content"
69
+ className: "pc-comment-content"
70
70
  }, pageLoading && /*#__PURE__*/React.createElement(_loading["default"], {
71
71
  visible: pageLoading,
72
72
  tip: "\u52A0\u8F7D\u4E2D..."
73
73
  }), webViewShow && /*#__PURE__*/React.createElement("div", {
74
- className: "webView-content"
74
+ className: "pc-webView-content"
75
75
  }, /*#__PURE__*/React.createElement("iframe", {
76
76
  id: "commentIframe",
77
77
  src: commentSrc,
@@ -80,11 +80,11 @@ var Comment = function Comment(_ref) {
80
80
  width: "100%",
81
81
  title: "\u8BC4\u4EF7"
82
82
  }), /*#__PURE__*/React.createElement("div", {
83
- className: "btn-con"
83
+ className: "pc-btn-con"
84
84
  }, /*#__PURE__*/React.createElement(_button["default"], {
85
85
  onClick: closeComment
86
86
  }, "\u5173\u95ED\u8BC4\u4EF7"))), !pageLoading && !webViewShow && /*#__PURE__*/React.createElement("div", {
87
- className: "webView-content",
87
+ className: "pc-webView-content",
88
88
  style: {
89
89
  display: 'flex',
90
90
  justifyContent: 'center',
@@ -1,10 +1,10 @@
1
- .comment-content {
2
- .webView-content {
1
+ .pc-comment-content {
2
+ .pc-webView-content {
3
3
  height: 800px;
4
4
  width: 100%;
5
5
  position: relative;
6
6
 
7
- .btn-con {
7
+ .pc-btn-con {
8
8
  position: absolute;
9
9
  bottom: 20px;
10
10
  left: 50%;
@@ -20,16 +20,16 @@ var Accept = function Accept(_ref) {
20
20
  }
21
21
  }, [eventInfoProp]);
22
22
  return /*#__PURE__*/React.createElement("div", {
23
- className: "accept-content"
23
+ className: "pc-accept-content"
24
24
  }, /*#__PURE__*/React.createElement(_guideTitle["default"], {
25
25
  title: "\u53D7\u7406\u6761\u4EF6"
26
26
  }), acceptCondition ? /*#__PURE__*/React.createElement("div", {
27
- className: "card-content",
27
+ className: "pc-card-content",
28
28
  dangerouslySetInnerHTML: {
29
29
  __html: acceptCondition
30
30
  }
31
31
  }) : /*#__PURE__*/React.createElement("div", {
32
- className: "empty-text"
32
+ className: "pc-empty-text"
33
33
  }, "\u6682\u65E0\u53D7\u7406\u6761\u4EF6"));
34
34
  };
35
35
  Accept.displayName = 'Accept';
@@ -1,5 +1,5 @@
1
- .accept-content {
2
- .card-content {
1
+ .pc-accept-content {
2
+ .pc-card-content {
3
3
  line-height: 25px;
4
4
  font-size: 14px;
5
5
  color: #222222;
@@ -9,7 +9,7 @@
9
9
  border-radius: 8px;
10
10
  }
11
11
 
12
- .empty-text {
12
+ .pc-empty-text {
13
13
  text-align: center;
14
14
  padding: 40px;
15
15
  color: #999;