ydb-components-material 0.1.124 → 0.1.126

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 (126) 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.91144d3b.js → umi.af7442ae.js} +1 -1
  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 +1 -1
  19. package/build/lowcode/preview.js +9 -9
  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 +10 -10
  25. package/build/lowcode/view.css +1 -1
  26. package/build/lowcode/view.js +11 -11
  27. package/dist/1.js +2 -2
  28. package/dist/2.js +1 -1
  29. package/dist/3.js +1 -1
  30. package/dist/BizComps.css +1 -1
  31. package/dist/BizComps.js +15 -15
  32. package/dist/BizComps.js.map +1 -1
  33. package/es/components/file-list/item.js +3 -1
  34. package/es/components/guide-pc/comment.js +4 -4
  35. package/es/components/guide-pc/comment.scss +3 -3
  36. package/es/components/guide-pc/components/accept.js +3 -3
  37. package/es/components/guide-pc/components/accept.scss +3 -3
  38. package/es/components/guide-pc/components/basicInfo.js +31 -31
  39. package/es/components/guide-pc/components/basicInfo.scss +5 -5
  40. package/es/components/guide-pc/components/eventInfo.d.ts +7 -0
  41. package/es/components/guide-pc/components/eventInfo.js +45 -0
  42. package/es/components/guide-pc/components/eventInfo.scss +36 -0
  43. package/es/components/guide-pc/components/guideTabs.js +2 -2
  44. package/es/components/guide-pc/components/guideTabs.scss +3 -2
  45. package/es/components/guide-pc/components/guideTitle.js +4 -4
  46. package/es/components/guide-pc/components/guideTitle.scss +3 -3
  47. package/es/components/guide-pc/components/materialsList.js +46 -49
  48. package/es/components/guide-pc/components/materialsList.scss +22 -22
  49. package/es/components/guide-pc/components/places.js +21 -21
  50. package/es/components/guide-pc/components/places.scss +19 -19
  51. package/es/components/guide-pc/components/processImg.js +19 -19
  52. package/es/components/guide-pc/components/processImg.scss +16 -16
  53. package/es/components/guide-pc/components/result.js +36 -36
  54. package/es/components/guide-pc/components/result.scss +15 -15
  55. package/es/components/guide-pc/components/situation.d.ts +4 -0
  56. package/es/components/guide-pc/components/situation.js +35 -31
  57. package/es/components/guide-pc/components/situation.scss +9 -9
  58. package/es/components/guide-pc/imgs/icon1.png +0 -0
  59. package/es/components/guide-pc/imgs/icon2.png +0 -0
  60. package/es/components/guide-pc/index.d.ts +1 -3
  61. package/es/components/guide-pc/index.js +41 -88
  62. package/es/components/guide-pc/index.scss +43 -103
  63. package/lib/components/file-list/item.js +3 -1
  64. package/lib/components/guide-pc/comment.js +4 -4
  65. package/lib/components/guide-pc/comment.scss +3 -3
  66. package/lib/components/guide-pc/components/accept.js +3 -3
  67. package/lib/components/guide-pc/components/accept.scss +3 -3
  68. package/lib/components/guide-pc/components/basicInfo.js +31 -31
  69. package/lib/components/guide-pc/components/basicInfo.scss +5 -5
  70. package/lib/components/guide-pc/components/eventInfo.d.ts +7 -0
  71. package/lib/components/guide-pc/components/eventInfo.js +51 -0
  72. package/lib/components/guide-pc/components/eventInfo.scss +36 -0
  73. package/lib/components/guide-pc/components/guideTabs.js +2 -2
  74. package/lib/components/guide-pc/components/guideTabs.scss +3 -2
  75. package/lib/components/guide-pc/components/guideTitle.js +4 -4
  76. package/lib/components/guide-pc/components/guideTitle.scss +3 -3
  77. package/lib/components/guide-pc/components/materialsList.js +46 -49
  78. package/lib/components/guide-pc/components/materialsList.scss +22 -22
  79. package/lib/components/guide-pc/components/places.js +21 -21
  80. package/lib/components/guide-pc/components/places.scss +19 -19
  81. package/lib/components/guide-pc/components/processImg.js +19 -19
  82. package/lib/components/guide-pc/components/processImg.scss +16 -16
  83. package/lib/components/guide-pc/components/result.js +36 -36
  84. package/lib/components/guide-pc/components/result.scss +15 -15
  85. package/lib/components/guide-pc/components/situation.d.ts +4 -0
  86. package/lib/components/guide-pc/components/situation.js +35 -31
  87. package/lib/components/guide-pc/components/situation.scss +9 -9
  88. package/lib/components/guide-pc/imgs/icon1.png +0 -0
  89. package/lib/components/guide-pc/imgs/icon2.png +0 -0
  90. package/lib/components/guide-pc/index.d.ts +1 -3
  91. package/lib/components/guide-pc/index.js +41 -88
  92. package/lib/components/guide-pc/index.scss +43 -103
  93. package/lowcode/guide-pc/meta.ts +1 -32
  94. package/lowcode_es/guide-pc/meta.js +0 -30
  95. package/lowcode_es/meta.js +1 -1
  96. package/lowcode_lib/guide-pc/meta.js +0 -30
  97. package/lowcode_lib/meta.js +1 -1
  98. package/package.json +3 -3
  99. package/es/components/guide-pc/comment.vue +0 -117
  100. package/es/components/guide-pc/components/accept.vue +0 -50
  101. package/es/components/guide-pc/components/basicInfo.vue +0 -81
  102. package/es/components/guide-pc/components/guideTabs.vue +0 -48
  103. package/es/components/guide-pc/components/guideTitle.vue +0 -43
  104. package/es/components/guide-pc/components/materialsList.vue +0 -403
  105. package/es/components/guide-pc/components/places.vue +0 -198
  106. package/es/components/guide-pc/components/processImg.vue +0 -300
  107. package/es/components/guide-pc/components/result.vue +0 -191
  108. package/es/components/guide-pc/components/situation.vue +0 -430
  109. package/es/components/guide-pc/guide.vue +0 -179
  110. package/es/components/guide-pc/imgs/error.png +0 -0
  111. package/es/components/guide-pc/imgs/judge.png +0 -0
  112. package/es/components/guide-pc/imgs/pass.png +0 -0
  113. package/lib/components/guide-pc/comment.vue +0 -117
  114. package/lib/components/guide-pc/components/accept.vue +0 -50
  115. package/lib/components/guide-pc/components/basicInfo.vue +0 -81
  116. package/lib/components/guide-pc/components/guideTabs.vue +0 -48
  117. package/lib/components/guide-pc/components/guideTitle.vue +0 -43
  118. package/lib/components/guide-pc/components/materialsList.vue +0 -403
  119. package/lib/components/guide-pc/components/places.vue +0 -198
  120. package/lib/components/guide-pc/components/processImg.vue +0 -300
  121. package/lib/components/guide-pc/components/result.vue +0 -191
  122. package/lib/components/guide-pc/components/situation.vue +0 -430
  123. package/lib/components/guide-pc/guide.vue +0 -179
  124. package/lib/components/guide-pc/imgs/error.png +0 -0
  125. package/lib/components/guide-pc/imgs/judge.png +0 -0
  126. package/lib/components/guide-pc/imgs/pass.png +0 -0
@@ -1,37 +1,37 @@
1
- .result-content {
2
- .card {
1
+ .pc-result-content {
2
+ .pc-card {
3
3
  background: #ffffff;
4
4
  border-radius: 8px;
5
5
  padding: 16px 0 0;
6
6
  margin-bottom: 12px;
7
7
 
8
- .title {
8
+ .pc-title {
9
9
  font-size: 20px;
10
10
  font-weight: 500;
11
11
  color: #333333;
12
12
  margin: 0 16px;
13
13
  }
14
14
 
15
- .desc {
15
+ .pc-desc {
16
16
  font-size: 16px;
17
17
  line-height: 22px;
18
18
  color: #222222;
19
19
  margin: 8px 16px 12px;
20
20
  }
21
21
 
22
- .bg-card {
22
+ .pc-bg-card {
23
23
  width: 100%;
24
24
  height: 242px;
25
25
  background-size: 100% 100%;
26
26
  background-repeat: no-repeat;
27
27
 
28
- .info-title {
28
+ .pc-info-title {
29
29
  height: 68px;
30
30
  display: flex;
31
31
  justify-content: space-around;
32
32
  align-items: center;
33
33
 
34
- .title-item {
34
+ .pc-title-item {
35
35
  font-size: 20px;
36
36
  font-weight: 500;
37
37
  color: #FFFFFF;
@@ -43,21 +43,21 @@
43
43
  }
44
44
  }
45
45
 
46
- .info-list {
46
+ .pc-info-list {
47
47
  margin: 0 30px;
48
48
  height: 150px;
49
49
  display: flex;
50
50
  justify-content: center;
51
51
  align-items: center;
52
52
 
53
- .info-item {
53
+ .pc-info-item {
54
54
  display: flex;
55
55
  justify-content: center;
56
56
  align-items: center;
57
57
  flex: 1;
58
58
  gap: 16px;
59
59
 
60
- .icon {
60
+ .pc-icon {
61
61
  width: 60px;
62
62
  height: 60px;
63
63
  background-size: 100% 100%;
@@ -65,22 +65,22 @@
65
65
  flex-shrink: 0;
66
66
  }
67
67
 
68
- .right {
69
- .num {
68
+ .pc-right {
69
+ .pc-num {
70
70
  font-size: 26px;
71
71
  font-weight: 500;
72
72
  color: #1678FF;
73
73
  margin: 0 5px;
74
74
  }
75
75
 
76
- .info-label {
76
+ .pc-info-label {
77
77
  font-size: 14px;
78
78
  color: #333333;
79
79
  display: flex;
80
80
  align-items: center;
81
81
  margin-top: 2px;
82
82
 
83
- .down-icon {
83
+ .pc-down-icon {
84
84
  display: inline-block;
85
85
  width: 17px;
86
86
  height: 17px;
@@ -95,7 +95,7 @@
95
95
  }
96
96
  }
97
97
 
98
- .empty-text {
98
+ .pc-empty-text {
99
99
  text-align: center;
100
100
  padding: 40px;
101
101
  color: #999;
@@ -5,8 +5,12 @@ export interface SituationProps {
5
5
  applicationId?: string;
6
6
  accessToken?: string;
7
7
  acctType?: string;
8
+ finalMaterials?: any[];
8
9
  declarationAppToken?: string;
10
+ situationPageUrl?: string;
9
11
  taskHandleItem?: string;
12
+ situationResRechange?: (data: any) => void;
13
+ previousData?: any;
10
14
  }
11
15
  declare const Situation: React.FC<SituationProps>;
12
16
  export default Situation;
@@ -12,11 +12,18 @@ var Situation = function Situation(_ref) {
12
12
  applicationIdProp = _ref.applicationId,
13
13
  accessTokenProp = _ref.accessToken,
14
14
  acctTypeProp = _ref.acctType,
15
+ finalMaterialsProp = _ref.finalMaterials,
15
16
  declarationAppTokenProp = _ref.declarationAppToken,
16
- taskHandleItemProp = _ref.taskHandleItem;
17
+ situationPageUrlProp = _ref.situationPageUrl,
18
+ taskHandleItemProp = _ref.taskHandleItem,
19
+ situationResRechangeProp = _ref.situationResRechange,
20
+ previousDataProp = _ref.previousData;
17
21
  var _React$useState = React.useState(false),
18
22
  isExpend = _React$useState[0],
19
23
  setIsExpend = _React$useState[1];
24
+ var _React$useState2 = React.useState(''),
25
+ iframeSrc = _React$useState2[0],
26
+ setIframeSrc = _React$useState2[1];
20
27
  var tip = '说明:因个人情况不同上交材料不同,可通过情形选择查看必须上传的材料!';
21
28
  React.useEffect(function () {
22
29
  initPage();
@@ -24,37 +31,32 @@ var Situation = function Situation(_ref) {
24
31
  return function () {
25
32
  window.removeEventListener('message', getMessage);
26
33
  };
27
- }, []);
34
+ // NOTE: initPage and getMessage intentionally omitted from deps to match guide component pattern
35
+ // eslint-disable-next-line react-hooks/exhaustive-deps
36
+ }, [eventInfoProp, taskHandleItemProp, situationPageUrlProp, declarationAppTokenProp, finalMaterialsProp, applicationIdProp, accessTokenProp, acctTypeProp, previousDataProp]);
28
37
  var initPage = function initPage() {
29
- if (!eventInfoProp) return;
30
- // TODO: apiConfig.declarePage not available; using placeholder URL
31
- // const { declarePage } = apiConfig;
32
- // const stepList = uni.getStorageSync('stepList');
33
- // const situationPage = stepList.find((item) => item.name === '智能导办-pc');
34
- // if (situationPage && situationPage.link) {
35
- // const finalLink = `${declarePage}/preview.html?pageID=${situationPage.id}`;
36
- // const url = `${finalLink}&isFirst=1&isReCheck=1&applicationId=${applicationIdProp}&access_token=${accessTokenProp}&acctType=${acctTypeProp}&isPc=1`;
37
- // setTimeout(() => {
38
- // const iframe = document.getElementById('situationIframe') as HTMLIFrameElement;
39
- // if (iframe) iframe.src = url;
40
- // }, 500);
41
- // }
38
+ if (!situationPageUrlProp) return;
39
+ var url = situationPageUrlProp + "&isFirst=1&isReCheck=1&isZXBB=1&isPc=1";
40
+ setIframeSrc(url);
42
41
  };
43
42
  var getMessage = function getMessage(e) {
44
- var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData', 'getFormFieldNames', 'getItemSituationRowUid', 'getWorkNo'];
43
+ var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData', 'getFormFieldNames', 'getItemSituationRowUid', 'getWorkNo', 'getPreviousData'];
45
44
  var _ref2 = e.data || {},
46
45
  type = _ref2.type,
47
46
  data = _ref2.data;
48
47
  if (typeArr.includes(type)) {
49
48
  sendInfoHandle(type, data);
50
49
  } else if (type === 'situationRes') {
50
+ situationResRechangeProp === null || situationResRechangeProp === void 0 ? void 0 : situationResRechangeProp(data);
51
51
  // TODO: checkSituation2 not available
52
52
  // uni.setStorageSync('situationRes', data);
53
53
  // checkSituation2(true, 'pc');
54
54
  }
55
55
  };
56
56
  var sendInfoHandle = function sendInfoHandle(type, _data) {
57
- var _eventInfoProp$taskGe, _eventInfoProp$taskGe2;
57
+ var _eventInfo$taskGenera, _eventInfo$taskGenera2;
58
+ var eventInfo = eventInfoProp;
59
+ var finalMaterials = finalMaterialsProp;
58
60
  var sendData = {
59
61
  type: type,
60
62
  data: {}
@@ -74,16 +76,14 @@ var Situation = function Situation(_ref) {
74
76
  sendData.data.taskHandleItem = taskHandleItemProp;
75
77
  break;
76
78
  case 'getFormId':
77
- if (eventInfoProp !== null && eventInfoProp !== void 0 && (_eventInfoProp$taskGe = eventInfoProp.taskGeneralForms) !== null && _eventInfoProp$taskGe !== void 0 && (_eventInfoProp$taskGe2 = _eventInfoProp$taskGe[0]) !== null && _eventInfoProp$taskGe2 !== void 0 && _eventInfoProp$taskGe2.formId) {
78
- sendData.data.formId = eventInfoProp.taskGeneralForms[0].formId;
79
+ if (eventInfo !== null && eventInfo !== void 0 && (_eventInfo$taskGenera = eventInfo.taskGeneralForms) !== null && _eventInfo$taskGenera !== void 0 && (_eventInfo$taskGenera2 = _eventInfo$taskGenera[0]) !== null && _eventInfo$taskGenera2 !== void 0 && _eventInfo$taskGenera2.formId) {
80
+ sendData.data.formId = eventInfo.taskGeneralForms[0].formId;
79
81
  } else {
80
82
  sendData.data.formId = '12023122617035840604349816';
81
83
  }
82
84
  break;
83
85
  case 'getMaterials':
84
- // const finalMaterials = uni.getStorageSync('finalMaterials');
85
- // const { taskGeneralMaterials } = uni.getStorageSync('eventInfo');
86
- // sendData.data.materials = finalMaterials || taskGeneralMaterials;
86
+ sendData.data.materials = finalMaterials || (eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.taskGeneralMaterials);
87
87
  break;
88
88
  case 'getFormData':
89
89
  // sendData.data.formData = uni.getStorageSync('formData');
@@ -97,6 +97,9 @@ var Situation = function Situation(_ref) {
97
97
  case 'getWorkNo':
98
98
  // sendData.data.workNo = uni.getStorageSync('workNo');
99
99
  break;
100
+ case 'getPreviousData':
101
+ sendData.data.previousData = previousDataProp;
102
+ break;
100
103
  }
101
104
  var formIframe = document.getElementById('situationIframe');
102
105
  if (formIframe !== null && formIframe !== void 0 && formIframe.contentWindow) {
@@ -107,31 +110,32 @@ var Situation = function Situation(_ref) {
107
110
  setIsExpend(!isExpend);
108
111
  };
109
112
  return /*#__PURE__*/React.createElement("div", {
110
- className: "situation-content"
113
+ className: "pc-situation-content"
111
114
  }, /*#__PURE__*/React.createElement(GuideTitle, {
112
115
  title: "\u6750\u6599\u6E05\u5355"
113
116
  }), /*#__PURE__*/React.createElement("div", {
114
- className: "situation-tip " + (isExpend ? 'isActive' : '')
117
+ className: "pc-situation-tip " + (isExpend ? 'isActive' : '')
115
118
  }, /*#__PURE__*/React.createElement("div", {
116
- className: "inner-tip",
119
+ className: "pc-inner-tip",
117
120
  style: {
118
121
  backgroundImage: "url(" + situationBg + ")"
119
122
  }
120
123
  }, /*#__PURE__*/React.createElement("div", {
121
- className: "title-con"
124
+ className: "pc-title-con"
122
125
  }, /*#__PURE__*/React.createElement("div", {
123
- className: "title"
126
+ className: "pc-title"
124
127
  }, "\u5BFC\u529E\u60C5\u5F62\u9009\u62E9"), /*#__PURE__*/React.createElement("div", {
125
- className: "tip"
128
+ className: "pc-tip"
126
129
  }, tip)), /*#__PURE__*/React.createElement("div", {
127
- className: "btn-con",
130
+ className: "pc-btn-con",
128
131
  onClick: expendChange
129
132
  }, /*#__PURE__*/React.createElement("span", null, isExpend ? '收起' : '展开'), /*#__PURE__*/React.createElement("div", {
130
- className: "icon"
133
+ className: "pc-icon"
131
134
  }, isExpend ? '▲' : '▼')))), isExpend && /*#__PURE__*/React.createElement("div", {
132
- className: "situation-inner"
135
+ className: "pc-situation-inner"
133
136
  }, /*#__PURE__*/React.createElement("iframe", {
134
137
  id: "situationIframe",
138
+ src: iframeSrc,
135
139
  frameBorder: "0",
136
140
  height: "100%",
137
141
  width: "100%",
@@ -1,7 +1,7 @@
1
- .situation-content {
1
+ .pc-situation-content {
2
2
  background: #ffffff;
3
3
 
4
- .situation-tip {
4
+ .pc-situation-tip {
5
5
  border: 1px solid #C3DCFF;
6
6
  border-radius: 8px;
7
7
  margin-top: 20px;
@@ -12,7 +12,7 @@
12
12
  border-bottom: none;
13
13
  }
14
14
 
15
- .inner-tip {
15
+ .pc-inner-tip {
16
16
  padding: 24px;
17
17
  background-repeat: no-repeat;
18
18
  background-size: 104px 70px;
@@ -21,13 +21,13 @@
21
21
  justify-content: space-between;
22
22
  align-items: center;
23
23
 
24
- .title-con {
24
+ .pc-title-con {
25
25
  display: flex;
26
26
  justify-content: flex-start;
27
27
  align-items: center;
28
28
  gap: 16px;
29
29
 
30
- .title {
30
+ .pc-title {
31
31
  background: linear-gradient(96deg, #0047A8 0%, #1678FF 98%);
32
32
  -webkit-background-clip: text;
33
33
  -webkit-text-fill-color: transparent;
@@ -36,13 +36,13 @@
36
36
  font-weight: 500;
37
37
  }
38
38
 
39
- .tip {
39
+ .pc-tip {
40
40
  font-size: 14px;
41
41
  color: #5C7292;
42
42
  }
43
43
  }
44
44
 
45
- .btn-con {
45
+ .pc-btn-con {
46
46
  display: flex;
47
47
  justify-content: center;
48
48
  align-items: center;
@@ -51,7 +51,7 @@
51
51
  cursor: pointer;
52
52
  gap: 6px;
53
53
 
54
- .icon {
54
+ .pc-icon {
55
55
  width: 14px;
56
56
  height: 14px;
57
57
  border-radius: 50%;
@@ -67,7 +67,7 @@
67
67
  }
68
68
  }
69
69
 
70
- .situation-inner {
70
+ .pc-situation-inner {
71
71
  background: linear-gradient(180deg, #F7FAFF 1%, #F7FAFF 100%);
72
72
  border-radius: 0 0 8px 8px;
73
73
  border: 1px solid #C3DCFF;
@@ -3,9 +3,6 @@ import './index.scss';
3
3
  export interface GuidePcProps {
4
4
  /** Called when user clicks "立即办理" or "上一步" */
5
5
  onNextStep?: (action: string) => void;
6
- /** Whether to disable the prev/next buttons */
7
- cantNext?: boolean;
8
- hasPrevious?: boolean;
9
6
  /** Task handle item code */
10
7
  taskHandleItem?: string;
11
8
  /** Access token */
@@ -32,6 +29,7 @@ export interface GuidePcProps {
32
29
  situationResRechange?: (data: any) => void;
33
30
  /** Previous form data from parent */
34
31
  previousData?: object;
32
+ style?: object;
35
33
  }
36
34
  declare const GuidePc: React.FC<GuidePcProps>;
37
35
  export default GuidePc;
@@ -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
  }