ydb-components-material 0.1.119 → 0.1.121

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 (165) 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/static/situation.80bdb450.png +0 -0
  7. package/build/docs/{umi.ffb7b81c.css → umi.35f02979.css} +1 -1
  8. package/build/docs/umi.8b7db9c6.js +1 -0
  9. package/build/docs/~demos/:uuid.html +3 -3
  10. package/build/docs/~demos/colorful-button-demo.html +3 -3
  11. package/build/docs/~demos/colorful-input-demo.html +3 -3
  12. package/build/lowcode/3.js +2 -2
  13. package/build/lowcode/4.js +1 -1
  14. package/build/lowcode/5.js +1 -1
  15. package/build/lowcode/assets/8644ab95dcea871942e57b3d0e2e0eea.png +0 -0
  16. package/build/lowcode/assets-daily.json +11 -11
  17. package/build/lowcode/assets-dev.json +2 -2
  18. package/build/lowcode/assets-prod.json +11 -11
  19. package/build/lowcode/index.js +1 -1
  20. package/build/lowcode/meta.js +1 -1
  21. package/build/lowcode/preview.js +9 -9
  22. package/build/lowcode/render/default/1.js +2 -2
  23. package/build/lowcode/render/default/2.js +1 -1
  24. package/build/lowcode/render/default/3.js +1 -1
  25. package/build/lowcode/render/default/assets/8644ab95dcea871942e57b3d0e2e0eea.png +0 -0
  26. package/build/lowcode/render/default/view.css +1 -1
  27. package/build/lowcode/render/default/view.js +26 -26
  28. package/build/lowcode/view.css +1 -1
  29. package/build/lowcode/view.js +26 -26
  30. package/dist/1.js +2 -2
  31. package/dist/2.js +1 -1
  32. package/dist/3.js +1 -1
  33. package/dist/BizComps.css +1 -1
  34. package/dist/BizComps.js +19 -19
  35. package/dist/BizComps.js.map +1 -1
  36. package/dist/assets/8644ab95dcea871942e57b3d0e2e0eea.png +0 -0
  37. package/es/components/file-list/item.js +2 -2
  38. package/es/components/file-list/seal.js +5 -1
  39. package/es/components/file-list/signUtil.js +9 -1
  40. package/es/components/guide-pc/comment.d.ts +9 -0
  41. package/es/components/guide-pc/comment.js +93 -0
  42. package/es/components/guide-pc/comment.scss +15 -0
  43. package/es/components/guide-pc/comment.vue +117 -0
  44. package/es/components/guide-pc/components/accept.d.ts +7 -0
  45. package/es/components/guide-pc/components/accept.js +30 -0
  46. package/es/components/guide-pc/components/accept.scss +18 -0
  47. package/es/components/guide-pc/components/accept.vue +50 -0
  48. package/es/components/guide-pc/components/basicInfo.d.ts +7 -0
  49. package/es/components/guide-pc/components/basicInfo.js +89 -0
  50. package/es/components/guide-pc/components/basicInfo.scss +30 -0
  51. package/es/components/guide-pc/components/basicInfo.vue +81 -0
  52. package/es/components/guide-pc/components/guideTabs.d.ts +8 -0
  53. package/es/components/guide-pc/components/guideTabs.js +32 -0
  54. package/es/components/guide-pc/components/guideTabs.scss +34 -0
  55. package/es/components/guide-pc/components/guideTabs.vue +48 -0
  56. package/es/components/guide-pc/components/guideTitle.d.ts +7 -0
  57. package/es/components/guide-pc/components/guideTitle.js +22 -0
  58. package/es/components/guide-pc/components/guideTitle.scss +15 -0
  59. package/es/components/guide-pc/components/guideTitle.vue +43 -0
  60. package/es/components/guide-pc/components/materialsList.d.ts +11 -0
  61. package/es/components/guide-pc/components/materialsList.js +386 -0
  62. package/es/components/guide-pc/components/materialsList.scss +139 -0
  63. package/es/components/guide-pc/components/materialsList.vue +403 -0
  64. package/es/components/guide-pc/components/places.d.ts +7 -0
  65. package/es/components/guide-pc/components/places.js +110 -0
  66. package/es/components/guide-pc/components/places.scss +144 -0
  67. package/es/components/guide-pc/components/places.vue +198 -0
  68. package/es/components/guide-pc/components/processImg.d.ts +9 -0
  69. package/es/components/guide-pc/components/processImg.js +220 -0
  70. package/es/components/guide-pc/components/processImg.scss +117 -0
  71. package/es/components/guide-pc/components/processImg.vue +300 -0
  72. package/es/components/guide-pc/components/result.d.ts +7 -0
  73. package/es/components/guide-pc/components/result.js +130 -0
  74. package/es/components/guide-pc/components/result.scss +104 -0
  75. package/es/components/guide-pc/components/result.vue +191 -0
  76. package/es/components/guide-pc/components/situation.d.ts +12 -0
  77. package/es/components/guide-pc/components/situation.js +142 -0
  78. package/es/components/guide-pc/components/situation.scss +79 -0
  79. package/es/components/guide-pc/components/situation.vue +430 -0
  80. package/es/components/guide-pc/guide.vue +179 -0
  81. package/es/components/guide-pc/imgs/bg.png +0 -0
  82. package/es/components/guide-pc/imgs/cant.png +0 -0
  83. package/es/components/guide-pc/imgs/dept.png +0 -0
  84. package/es/components/guide-pc/imgs/error.png +0 -0
  85. package/es/components/guide-pc/imgs/judge.png +0 -0
  86. package/es/components/guide-pc/imgs/pass.png +0 -0
  87. package/es/components/guide-pc/imgs/rightArr.png +0 -0
  88. package/es/components/guide-pc/imgs/situation.png +0 -0
  89. package/es/components/guide-pc/imgs/time.png +0 -0
  90. package/es/components/guide-pc/imgs/titleL.png +0 -0
  91. package/es/components/guide-pc/imgs/titleR.png +0 -0
  92. package/es/components/guide-pc/index.d.ts +37 -0
  93. package/es/components/guide-pc/index.js +440 -0
  94. package/es/components/guide-pc/index.scss +185 -0
  95. package/es/index.d.ts +2 -0
  96. package/es/index.js +1 -0
  97. package/lib/components/file-list/item.js +2 -2
  98. package/lib/components/file-list/seal.js +5 -1
  99. package/lib/components/file-list/signUtil.js +9 -1
  100. package/lib/components/guide-pc/comment.d.ts +9 -0
  101. package/lib/components/guide-pc/comment.js +98 -0
  102. package/lib/components/guide-pc/comment.scss +15 -0
  103. package/lib/components/guide-pc/comment.vue +117 -0
  104. package/lib/components/guide-pc/components/accept.d.ts +7 -0
  105. package/lib/components/guide-pc/components/accept.js +36 -0
  106. package/lib/components/guide-pc/components/accept.scss +18 -0
  107. package/lib/components/guide-pc/components/accept.vue +50 -0
  108. package/lib/components/guide-pc/components/basicInfo.d.ts +7 -0
  109. package/lib/components/guide-pc/components/basicInfo.js +95 -0
  110. package/lib/components/guide-pc/components/basicInfo.scss +30 -0
  111. package/lib/components/guide-pc/components/basicInfo.vue +81 -0
  112. package/lib/components/guide-pc/components/guideTabs.d.ts +8 -0
  113. package/lib/components/guide-pc/components/guideTabs.js +37 -0
  114. package/lib/components/guide-pc/components/guideTabs.scss +34 -0
  115. package/lib/components/guide-pc/components/guideTabs.vue +48 -0
  116. package/lib/components/guide-pc/components/guideTitle.d.ts +7 -0
  117. package/lib/components/guide-pc/components/guideTitle.js +28 -0
  118. package/lib/components/guide-pc/components/guideTitle.scss +15 -0
  119. package/lib/components/guide-pc/components/guideTitle.vue +43 -0
  120. package/lib/components/guide-pc/components/materialsList.d.ts +11 -0
  121. package/lib/components/guide-pc/components/materialsList.js +392 -0
  122. package/lib/components/guide-pc/components/materialsList.scss +139 -0
  123. package/lib/components/guide-pc/components/materialsList.vue +403 -0
  124. package/lib/components/guide-pc/components/places.d.ts +7 -0
  125. package/lib/components/guide-pc/components/places.js +116 -0
  126. package/lib/components/guide-pc/components/places.scss +144 -0
  127. package/lib/components/guide-pc/components/places.vue +198 -0
  128. package/lib/components/guide-pc/components/processImg.d.ts +9 -0
  129. package/lib/components/guide-pc/components/processImg.js +226 -0
  130. package/lib/components/guide-pc/components/processImg.scss +117 -0
  131. package/lib/components/guide-pc/components/processImg.vue +300 -0
  132. package/lib/components/guide-pc/components/result.d.ts +7 -0
  133. package/lib/components/guide-pc/components/result.js +136 -0
  134. package/lib/components/guide-pc/components/result.scss +104 -0
  135. package/lib/components/guide-pc/components/result.vue +191 -0
  136. package/lib/components/guide-pc/components/situation.d.ts +12 -0
  137. package/lib/components/guide-pc/components/situation.js +147 -0
  138. package/lib/components/guide-pc/components/situation.scss +79 -0
  139. package/lib/components/guide-pc/components/situation.vue +430 -0
  140. package/lib/components/guide-pc/guide.vue +179 -0
  141. package/lib/components/guide-pc/imgs/bg.png +0 -0
  142. package/lib/components/guide-pc/imgs/cant.png +0 -0
  143. package/lib/components/guide-pc/imgs/dept.png +0 -0
  144. package/lib/components/guide-pc/imgs/error.png +0 -0
  145. package/lib/components/guide-pc/imgs/judge.png +0 -0
  146. package/lib/components/guide-pc/imgs/pass.png +0 -0
  147. package/lib/components/guide-pc/imgs/rightArr.png +0 -0
  148. package/lib/components/guide-pc/imgs/situation.png +0 -0
  149. package/lib/components/guide-pc/imgs/time.png +0 -0
  150. package/lib/components/guide-pc/imgs/titleL.png +0 -0
  151. package/lib/components/guide-pc/imgs/titleR.png +0 -0
  152. package/lib/components/guide-pc/index.d.ts +37 -0
  153. package/lib/components/guide-pc/index.js +445 -0
  154. package/lib/components/guide-pc/index.scss +185 -0
  155. package/lib/index.d.ts +2 -0
  156. package/lib/index.js +3 -1
  157. package/lowcode/guide-pc/meta.ts +338 -0
  158. package/lowcode_es/guide-pc/meta.d.ts +22 -0
  159. package/lowcode_es/guide-pc/meta.js +315 -0
  160. package/lowcode_es/meta.js +3 -2
  161. package/lowcode_lib/guide-pc/meta.d.ts +22 -0
  162. package/lowcode_lib/guide-pc/meta.js +320 -0
  163. package/lowcode_lib/meta.js +17 -16
  164. package/package.json +3 -3
  165. package/build/docs/umi.55472eae.js +0 -1
@@ -0,0 +1,440 @@
1
+ import _Button from "@alifd/next/es/button";
2
+ import _Dialog from "@alifd/next/es/dialog";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
+ import _Message from "@alifd/next/es/message";
5
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
6
+ import * as React from 'react';
7
+ import GuideTabs from "./components/guideTabs";
8
+ import Situation from "./components/situation";
9
+ import MaterialsList from "./components/materialsList";
10
+ import BasicInfo from "./components/basicInfo";
11
+ import ProcessImg from "./components/processImg";
12
+ import Accept from "./components/accept";
13
+ import Places from "./components/places";
14
+ 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";
18
+ import "./index.scss";
19
+
20
+ // TODO: API imports not available
21
+ // import { getTyEventDetailApi, getFormValueApi } from '@/api/tyBusiness.js'
22
+
23
+ var tabSections = [{
24
+ id: 'section-materials',
25
+ label: '材料清单'
26
+ }, {
27
+ id: 'section-basicInfo',
28
+ label: '事项信息'
29
+ }, {
30
+ id: 'section-process',
31
+ label: '办事流程'
32
+ }, {
33
+ id: 'section-accept',
34
+ label: '受理条件'
35
+ }, {
36
+ id: 'section-places',
37
+ label: '办事大厅'
38
+ }, {
39
+ id: 'section-result',
40
+ label: '成效分析'
41
+ }];
42
+ var GuidePc = function GuidePc(_ref) {
43
+ var _eventInfoProp$taskGe;
44
+ 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
+ taskHandleItem = _ref.taskHandleItem,
50
+ accessToken = _ref.accessToken,
51
+ eventInfoProp = _ref.eventInfo,
52
+ acctType = _ref.acctType,
53
+ agentInfo = _ref.agentInfo,
54
+ applicationId = _ref.applicationId,
55
+ finalMaterials = _ref.finalMaterials,
56
+ declarationAppToken = _ref.declarationAppToken,
57
+ situationPageUrl = _ref.situationPageUrl,
58
+ baseUrl = _ref.baseUrl,
59
+ download = _ref.download,
60
+ situationResRechange = _ref.situationResRechange,
61
+ previousData = _ref.previousData;
62
+ var _React$useState = React.useState(0),
63
+ tabIndex = _React$useState[0],
64
+ setTabIndex = _React$useState[1];
65
+ var _React$useState2 = React.useState(true),
66
+ canHandle = _React$useState2[0];
67
+ var _React$useState3 = React.useState(false),
68
+ popShow = _React$useState3[0],
69
+ setPopShow = _React$useState3[1];
70
+ var _React$useState4 = React.useState(false),
71
+ modalShow = _React$useState4[0],
72
+ setModalShow = _React$useState4[1];
73
+ var _React$useState5 = React.useState(false),
74
+ isAgree = _React$useState5[0],
75
+ setIsAgree = _React$useState5[1];
76
+ var _React$useState6 = React.useState(''),
77
+ agreementPrompt = _React$useState6[0],
78
+ setAgreementPrompt = _React$useState6[1];
79
+ var _React$useState7 = React.useState([]),
80
+ userAgreementList = _React$useState7[0],
81
+ setUserAgreementList = _React$useState7[1];
82
+ var _React$useState8 = React.useState(''),
83
+ userAgreement = _React$useState8[0],
84
+ setUserAgreement = _React$useState8[1];
85
+ React.useEffect(function () {
86
+ initUserNotice();
87
+ document.title = '办事指南';
88
+ }, [eventInfoProp]);
89
+
90
+ // ============ 用户协议 ============
91
+ var initUserNotice = function initUserNotice() {
92
+ var _eventInfo$applicatio, _eventInfo$applicatio2;
93
+ var eventInfo = eventInfoProp;
94
+ if (!eventInfo) return;
95
+ if ((_eventInfo$applicatio = eventInfo.applicationUserAgreementBO) !== null && _eventInfo$applicatio !== void 0 && _eventInfo$applicatio.agreementContent) {
96
+ setAgreementPrompt(eventInfo.applicationUserAgreementBO.agreementPrompt);
97
+ setUserAgreementList(eventInfo.applicationUserAgreementBO.agreementContent);
98
+ setIsAgree(false);
99
+ } else {
100
+ setIsAgree(true);
101
+ }
102
+ if ((_eventInfo$applicatio2 = eventInfo.applicationUserNoticeBO) !== null && _eventInfo$applicatio2 !== void 0 && _eventInfo$applicatio2.userNotice) {
103
+ var userNotice = {
104
+ agreementName: '用户协议',
105
+ agreementDetail: eventInfo.applicationUserNoticeBO.userNotice
106
+ };
107
+ setUserAgreementList(function (prev) {
108
+ return [userNotice].concat(prev);
109
+ });
110
+ }
111
+ };
112
+ var showAgree = function showAgree(item) {
113
+ setModalShow(false);
114
+ setUserAgreement(item.agreementDetail);
115
+ setPopShow(true);
116
+ };
117
+ var yesAgree = function yesAgree() {
118
+ setIsAgree(true);
119
+ setModalShow(false);
120
+ handleEvent();
121
+ };
122
+
123
+ // ============ 按钮操作 ============
124
+ var prepStep = function prepStep() {
125
+ onNextStep === null || onNextStep === void 0 ? void 0 : onNextStep('上一步');
126
+ };
127
+ var goComment = function goComment() {
128
+ _Message.show({
129
+ type: 'help',
130
+ content: '评价页面跳转未实现'
131
+ });
132
+ };
133
+ var goShare = function goShare() {
134
+ var href = window.location.href;
135
+ navigator.clipboard.writeText(href).then(function () {
136
+ _Message.success('已复制网址链接');
137
+ })["catch"](function () {
138
+ var textarea = document.createElement('textarea');
139
+ textarea.value = href;
140
+ document.body.appendChild(textarea);
141
+ textarea.select();
142
+ document.execCommand('copy');
143
+ document.body.removeChild(textarea);
144
+ _Message.success('已复制网址链接');
145
+ });
146
+ };
147
+ var goDownload = function goDownload() {
148
+ _Message.show({
149
+ type: 'help',
150
+ content: '下载功能待完善'
151
+ });
152
+ };
153
+ var changeTab = function changeTab(index) {
154
+ setTabIndex(index);
155
+ var section = tabSections[index];
156
+ if (section) {
157
+ var element = document.getElementById(section.id);
158
+ if (element) {
159
+ var offsetTop = element.offsetTop;
160
+ window.scrollTo({
161
+ top: offsetTop - 100,
162
+ behavior: 'smooth'
163
+ });
164
+ }
165
+ }
166
+ };
167
+
168
+ // Scroll-spy to update active tab based on scroll position
169
+ React.useEffect(function () {
170
+ var handleScroll = function handleScroll() {
171
+ var scrollY = window.scrollY + 120;
172
+ var activeIdx = 0;
173
+ for (var i = 0; i < tabSections.length; i++) {
174
+ var el = document.getElementById(tabSections[i].id);
175
+ if (el && el.offsetTop <= scrollY) {
176
+ activeIdx = i;
177
+ }
178
+ }
179
+ setTabIndex(activeIdx);
180
+ };
181
+ window.addEventListener('scroll', handleScroll, {
182
+ passive: true
183
+ });
184
+ return function () {
185
+ return window.removeEventListener('scroll', handleScroll);
186
+ };
187
+ }, []);
188
+
189
+ // ============ 立即办理 ============
190
+ var handleEvent = /*#__PURE__*/function () {
191
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
192
+ var eventInfo, _ref3, serviceObjectType, finalAcctType;
193
+ return _regeneratorRuntime.wrap(function (_context) {
194
+ while (1) switch (_context.prev = _context.next) {
195
+ case 0:
196
+ if (isAgree) {
197
+ _context.next = 1;
198
+ break;
199
+ }
200
+ setModalShow(true);
201
+ return _context.abrupt("return");
202
+ case 1:
203
+ eventInfo = eventInfoProp;
204
+ if (eventInfo) {
205
+ _context.next = 2;
206
+ break;
207
+ }
208
+ return _context.abrupt("return");
209
+ case 2:
210
+ _ref3 = eventInfo.taskGeneralExtend || {}, serviceObjectType = _ref3.serviceObjectType;
211
+ if (serviceObjectType) {
212
+ _context.next = 3;
213
+ break;
214
+ }
215
+ _Dialog.confirm({
216
+ title: '提示',
217
+ content: '当前暂无匹配服务对象,无法继续办理,如需帮助请致电:0351-2366413',
218
+ locale: {
219
+ ok: '知道了'
220
+ },
221
+ footerActions: ['ok']
222
+ });
223
+ return _context.abrupt("return");
224
+ case 3:
225
+ finalAcctType = '';
226
+ if (agentInfo) {
227
+ finalAcctType = agentInfo.acctType === '10' ? '1' : '2';
228
+ } else {
229
+ finalAcctType = acctType === '10' ? '1' : '2';
230
+ }
231
+ if (serviceObjectType.split(',').includes(finalAcctType)) {
232
+ _context.next = 4;
233
+ break;
234
+ }
235
+ _Message.warning(finalAcctType === '1' ? '该事项不允许个人用户办理' : '该事项不允许法人用户办理');
236
+ return _context.abrupt("return");
237
+ case 4:
238
+ onNextStep === null || onNextStep === void 0 ? void 0 : onNextStep('立即办理');
239
+ case 5:
240
+ case "end":
241
+ return _context.stop();
242
+ }
243
+ }, _callee);
244
+ }));
245
+ return function handleEvent() {
246
+ return _ref2.apply(this, arguments);
247
+ };
248
+ }();
249
+
250
+ // ============ 返回顶部 ============
251
+ var goUp = function goUp() {
252
+ window.scrollTo({
253
+ top: 0,
254
+ behavior: 'smooth'
255
+ });
256
+ };
257
+
258
+ // Show scroll-to-top button when scrolled down
259
+ var _React$useState9 = React.useState(false),
260
+ showGoUp = _React$useState9[0],
261
+ setShowGoUp = _React$useState9[1];
262
+ React.useEffect(function () {
263
+ var handleScroll = function handleScroll() {
264
+ setShowGoUp(window.scrollY > 400);
265
+ };
266
+ window.addEventListener('scroll', handleScroll, {
267
+ passive: true
268
+ });
269
+ return function () {
270
+ return window.removeEventListener('scroll', handleScroll);
271
+ };
272
+ }, []);
273
+ return /*#__PURE__*/React.createElement("div", {
274
+ className: "guidePc-wrapper"
275
+ }, !canHandle && /*#__PURE__*/React.createElement("div", {
276
+ className: "guide-empty"
277
+ }, "\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"
281
+ }, /*#__PURE__*/React.createElement("div", {
282
+ className: "stity"
283
+ }, /*#__PURE__*/React.createElement(GuideTabs, {
284
+ curTab: tabIndex,
285
+ onTabsChange: changeTab
286
+ })), /*#__PURE__*/React.createElement("div", {
287
+ className: "gap"
288
+ }), /*#__PURE__*/React.createElement("div", {
289
+ 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, {
291
+ eventInfo: eventInfoProp,
292
+ applicationId: applicationId,
293
+ accessToken: accessToken,
294
+ acctType: acctType,
295
+ declarationAppToken: declarationAppToken,
296
+ taskHandleItem: taskHandleItem
297
+ }), /*#__PURE__*/React.createElement(MaterialsList, {
298
+ eventInfo: eventInfoProp,
299
+ finalMaterials: finalMaterials,
300
+ baseUrl: baseUrl,
301
+ declarationAppToken: declarationAppToken,
302
+ download: download
303
+ })), /*#__PURE__*/React.createElement("div", {
304
+ id: "section-basicInfo",
305
+ className: "content-section"
306
+ }, /*#__PURE__*/React.createElement(BasicInfo, {
307
+ eventInfo: eventInfoProp
308
+ })), /*#__PURE__*/React.createElement("div", {
309
+ id: "section-process",
310
+ className: "content-section"
311
+ }, /*#__PURE__*/React.createElement(ProcessImg, {
312
+ eventInfo: eventInfoProp,
313
+ baseUrl: baseUrl,
314
+ declarationAppToken: declarationAppToken
315
+ })), /*#__PURE__*/React.createElement("div", {
316
+ id: "section-accept",
317
+ className: "content-section"
318
+ }, /*#__PURE__*/React.createElement(Accept, {
319
+ eventInfo: eventInfoProp
320
+ })), /*#__PURE__*/React.createElement("div", {
321
+ id: "section-places",
322
+ className: "content-section"
323
+ }, /*#__PURE__*/React.createElement(Places, {
324
+ eventInfo: eventInfoProp
325
+ })), /*#__PURE__*/React.createElement("div", {
326
+ id: "section-result",
327
+ className: "content-section"
328
+ }, /*#__PURE__*/React.createElement(Result, {
329
+ eventInfo: eventInfoProp
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"
360
+ }, /*#__PURE__*/React.createElement("div", {
361
+ className: "action-btn",
362
+ 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"
369
+ }, "\u8BC4\u4EF7\u6307\u5357")), /*#__PURE__*/React.createElement("div", {
370
+ className: "action-btn",
371
+ 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"
378
+ }, "\u5206\u4EAB")), /*#__PURE__*/React.createElement("div", {
379
+ className: "action-btn",
380
+ 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",
396
+ disabled: !canHandle,
397
+ onClick: handleEvent
398
+ }, "\u7ACB\u5373\u529E\u7406"))))), showGoUp && /*#__PURE__*/React.createElement("div", {
399
+ className: "go-up-btn",
400
+ onClick: goUp
401
+ }, "\u25B2 \u9876\u90E8")), /*#__PURE__*/React.createElement(_Dialog, {
402
+ visible: popShow,
403
+ onClose: function onClose() {
404
+ return setPopShow(false);
405
+ },
406
+ footer: false,
407
+ width: "90%"
408
+ }, /*#__PURE__*/React.createElement("div", {
409
+ className: "agree-detail",
410
+ dangerouslySetInnerHTML: {
411
+ __html: userAgreement
412
+ }
413
+ })), /*#__PURE__*/React.createElement(_Dialog, {
414
+ visible: modalShow,
415
+ title: "\u8BF7\u9605\u8BFB\u5E76\u540C\u610F\u4EE5\u4E0B\u534F\u8BAE",
416
+ locale: {
417
+ ok: '同意并继续',
418
+ cancel: '不同意'
419
+ },
420
+ onOk: yesAgree,
421
+ onCancel: function onCancel() {
422
+ return setModalShow(false);
423
+ },
424
+ onClose: function onClose() {
425
+ return setModalShow(false);
426
+ }
427
+ }, /*#__PURE__*/React.createElement("div", {
428
+ className: "agree"
429
+ }, agreementPrompt, userAgreementList.map(function (item, index) {
430
+ return /*#__PURE__*/React.createElement("span", {
431
+ key: index,
432
+ className: "agreement-sub-item",
433
+ onClick: function onClick() {
434
+ return showAgree(item);
435
+ }
436
+ }, "\u300A", item.agreementName, "\u300B");
437
+ }))));
438
+ };
439
+ GuidePc.displayName = 'GuidePc';
440
+ export default GuidePc;
@@ -0,0 +1,185 @@
1
+ .guidePc-wrapper {
2
+ min-height: 100vh;
3
+ background: #ffffff;
4
+ position: relative;
5
+
6
+ .guide-empty {
7
+ text-align: center;
8
+ padding: 100px 0;
9
+ font-size: 16px;
10
+ color: #999;
11
+ }
12
+ }
13
+
14
+ .guidePc-main {
15
+ max-width: 1200px;
16
+ margin: 0 auto;
17
+ min-height: 80vh;
18
+ }
19
+
20
+ /* ============ Sticky Top Tabs ============ */
21
+ .stity {
22
+ position: sticky;
23
+ top: 0;
24
+ z-index: 9;
25
+ background: #ffffff;
26
+ }
27
+
28
+ .gap {
29
+ height: 24px;
30
+ }
31
+
32
+ /* ============ Content Area ============ */
33
+ .guidePc-content {
34
+ .content-section {
35
+ margin-top: 24px;
36
+ }
37
+ }
38
+
39
+ /* ============ Bottom Action Bar ============ */
40
+ .guidePc-bottom {
41
+ border-top: 1px solid #e8e8e8;
42
+ 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
+ }
71
+
72
+ .agreement-item {
73
+ color: #1678FF;
74
+ cursor: pointer;
75
+ font-size: 14px;
76
+ margin-left: 4px;
77
+
78
+ &:hover {
79
+ text-decoration: underline;
80
+ }
81
+ }
82
+ }
83
+
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
+ }
133
+ }
134
+ }
135
+
136
+ /* ============ Scroll-to-top Button ============ */
137
+ .go-up-btn {
138
+ position: fixed;
139
+ bottom: 120px;
140
+ right: 40px;
141
+ width: 48px;
142
+ height: 48px;
143
+ background: #1678FF;
144
+ color: #ffffff;
145
+ border-radius: 50%;
146
+ display: flex;
147
+ flex-direction: column;
148
+ justify-content: center;
149
+ align-items: center;
150
+ font-size: 12px;
151
+ cursor: pointer;
152
+ box-shadow: 0 2px 8px rgba(22, 120, 255, 0.4);
153
+ z-index: 100;
154
+ transition: all 0.2s;
155
+
156
+ &:hover {
157
+ transform: scale(1.05);
158
+ box-shadow: 0 4px 12px rgba(22, 120, 255, 0.5);
159
+ }
160
+ }
161
+
162
+ /* ============ Agreement Modals ============ */
163
+ .agree-detail {
164
+ max-height: 70vh;
165
+ overflow-y: auto;
166
+ padding: 16px;
167
+ font-size: 14px;
168
+ line-height: 1.6;
169
+ }
170
+
171
+ .agree {
172
+ font-size: 14px;
173
+ line-height: 1.6;
174
+ color: #333;
175
+
176
+ .agreement-sub-item {
177
+ color: #1678FF;
178
+ cursor: pointer;
179
+ margin-left: 4px;
180
+
181
+ &:hover {
182
+ text-decoration: underline;
183
+ }
184
+ }
185
+ }
package/es/index.d.ts CHANGED
@@ -51,5 +51,7 @@ export type { CommentProps } from './components/guide/comment';
51
51
  export { default as Comment } from './components/guide/comment';
52
52
  export type { SignFileProps } from './components/sign-file';
53
53
  export { default as SignFile } from './components/sign-file';
54
+ export type { GuidePcProps } from './components/guide-pc';
55
+ export { default as GuidePc } from './components/guide-pc';
54
56
  declare const bizCssPrefix = "bizpack";
55
57
  export { bizCssPrefix };
package/es/index.js CHANGED
@@ -31,5 +31,6 @@ export { default as DragDropList } from "./components/drag-drop";
31
31
  export { default as Guide } from "./components/guide";
32
32
  export { default as Comment } from "./components/guide/comment";
33
33
  export { default as SignFile } from "./components/sign-file";
34
+ export { default as GuidePc } from "./components/guide-pc";
34
35
  var bizCssPrefix = 'bizpack';
35
36
  export { bizCssPrefix };
@@ -539,8 +539,8 @@ var FileItem = function FileItem(_ref) {
539
539
  });
540
540
  case 2:
541
541
  guideImgRes = _context4.sent;
542
- if (guideImgRes.presignedUrl) {
543
- setGuideurl(guideImgRes.presignedUrl);
542
+ if (guideImgRes.presignedUrlList.length && guideImgRes.presignedUrlList[2]) {
543
+ setGuideurl(guideImgRes.presignedUrlList[2]);
544
544
  setIsShowGuide(true);
545
545
  }
546
546
  case 3:
@@ -34,6 +34,9 @@ function SealPage(props) {
34
34
  var _useState2 = (0, _react.useState)(''),
35
35
  orderId = _useState2[0],
36
36
  setOrderId = _useState2[1];
37
+ var _useState3 = (0, _react.useState)(false),
38
+ hideClose = _useState3[0],
39
+ setHideClose = _useState3[1];
37
40
  var timerRef = (0, _react.useRef)(null);
38
41
  var elementRef = (0, _react.useRef)(null);
39
42
  var handleRes = /*#__PURE__*/function () {
@@ -169,6 +172,7 @@ function SealPage(props) {
169
172
  signFiles = _res$data.signFiles;
170
173
  if (signStatus === 6) {
171
174
  // 签署成功
175
+ setHideClose(true);
172
176
  handleClearInterval();
173
177
  if (signFiles && signFiles.length) {
174
178
  // 下载该文件
@@ -224,7 +228,7 @@ function SealPage(props) {
224
228
  return /*#__PURE__*/_react["default"].createElement("div", {
225
229
  className: "sealPage",
226
230
  ref: elementRef
227
- }, showClose && /*#__PURE__*/_react["default"].createElement("img", {
231
+ }, showClose && !hideClose && /*#__PURE__*/_react["default"].createElement("img", {
228
232
  className: "seal_close",
229
233
  src: _close["default"],
230
234
  alt: "",