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.
- package/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/{umi.35f02979.css → umi.57dda8ea.css} +1 -1
- package/build/docs/umi.814d7acd.js +1 -0
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/3.js +2 -2
- package/build/lowcode/4.js +1 -1
- package/build/lowcode/5.js +1 -1
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +10 -1
- package/build/lowcode/preview.js +145 -145
- package/build/lowcode/render/default/1.js +2 -2
- package/build/lowcode/render/default/2.js +1 -1
- package/build/lowcode/render/default/3.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +32 -23
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +32 -23
- package/dist/1.js +2 -2
- package/dist/1.js.map +1 -1
- package/dist/2.js +1 -1
- package/dist/3.js +1 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +38 -29
- package/dist/BizComps.js.map +1 -1
- package/es/api.js +29 -28
- package/es/components/file-list/item.js +3 -1
- package/es/components/guide-pc/comment.js +4 -4
- package/es/components/guide-pc/comment.scss +3 -3
- package/es/components/guide-pc/components/accept.js +3 -3
- package/es/components/guide-pc/components/accept.scss +3 -3
- package/es/components/guide-pc/components/basicInfo.js +31 -31
- package/es/components/guide-pc/components/basicInfo.scss +5 -5
- package/es/components/guide-pc/components/eventInfo.d.ts +7 -0
- package/es/components/guide-pc/components/eventInfo.js +45 -0
- package/es/components/guide-pc/components/eventInfo.scss +36 -0
- package/es/components/guide-pc/components/guideTabs.js +2 -2
- package/es/components/guide-pc/components/guideTabs.scss +3 -2
- package/es/components/guide-pc/components/guideTitle.js +4 -4
- package/es/components/guide-pc/components/guideTitle.scss +3 -3
- package/es/components/guide-pc/components/materialsList.js +46 -49
- package/es/components/guide-pc/components/materialsList.scss +22 -22
- package/es/components/guide-pc/components/places.js +21 -21
- package/es/components/guide-pc/components/places.scss +19 -19
- package/es/components/guide-pc/components/processImg.js +19 -19
- package/es/components/guide-pc/components/processImg.scss +16 -16
- package/es/components/guide-pc/components/result.js +36 -36
- package/es/components/guide-pc/components/result.scss +15 -15
- package/es/components/guide-pc/components/situation.d.ts +4 -0
- package/es/components/guide-pc/components/situation.js +35 -31
- package/es/components/guide-pc/components/situation.scss +9 -9
- package/es/components/guide-pc/imgs/icon1.png +0 -0
- package/es/components/guide-pc/imgs/icon2.png +0 -0
- package/es/components/guide-pc/index.d.ts +1 -3
- package/es/components/guide-pc/index.js +41 -88
- package/es/components/guide-pc/index.scss +43 -103
- package/lib/api.js +29 -28
- package/lib/components/file-list/item.js +3 -1
- package/lib/components/guide-pc/comment.js +4 -4
- package/lib/components/guide-pc/comment.scss +3 -3
- package/lib/components/guide-pc/components/accept.js +3 -3
- package/lib/components/guide-pc/components/accept.scss +3 -3
- package/lib/components/guide-pc/components/basicInfo.js +31 -31
- package/lib/components/guide-pc/components/basicInfo.scss +5 -5
- package/lib/components/guide-pc/components/eventInfo.d.ts +7 -0
- package/lib/components/guide-pc/components/eventInfo.js +51 -0
- package/lib/components/guide-pc/components/eventInfo.scss +36 -0
- package/lib/components/guide-pc/components/guideTabs.js +2 -2
- package/lib/components/guide-pc/components/guideTabs.scss +3 -2
- package/lib/components/guide-pc/components/guideTitle.js +4 -4
- package/lib/components/guide-pc/components/guideTitle.scss +3 -3
- package/lib/components/guide-pc/components/materialsList.js +46 -49
- package/lib/components/guide-pc/components/materialsList.scss +22 -22
- package/lib/components/guide-pc/components/places.js +21 -21
- package/lib/components/guide-pc/components/places.scss +19 -19
- package/lib/components/guide-pc/components/processImg.js +19 -19
- package/lib/components/guide-pc/components/processImg.scss +16 -16
- package/lib/components/guide-pc/components/result.js +36 -36
- package/lib/components/guide-pc/components/result.scss +15 -15
- package/lib/components/guide-pc/components/situation.d.ts +4 -0
- package/lib/components/guide-pc/components/situation.js +35 -31
- package/lib/components/guide-pc/components/situation.scss +9 -9
- package/lib/components/guide-pc/imgs/icon1.png +0 -0
- package/lib/components/guide-pc/imgs/icon2.png +0 -0
- package/lib/components/guide-pc/index.d.ts +1 -3
- package/lib/components/guide-pc/index.js +41 -88
- package/lib/components/guide-pc/index.scss +43 -103
- package/lowcode/guide-pc/meta.ts +1 -32
- package/lowcode_es/guide-pc/meta.js +0 -30
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/guide-pc/meta.js +0 -30
- package/lowcode_lib/meta.js +1 -1
- package/package.json +4 -3
- package/build/docs/umi.5327dbca.js +0 -1
- package/es/components/guide-pc/comment.vue +0 -117
- package/es/components/guide-pc/components/accept.vue +0 -50
- package/es/components/guide-pc/components/basicInfo.vue +0 -81
- package/es/components/guide-pc/components/guideTabs.vue +0 -48
- package/es/components/guide-pc/components/guideTitle.vue +0 -43
- package/es/components/guide-pc/components/materialsList.vue +0 -403
- package/es/components/guide-pc/components/places.vue +0 -198
- package/es/components/guide-pc/components/processImg.vue +0 -300
- package/es/components/guide-pc/components/result.vue +0 -191
- package/es/components/guide-pc/components/situation.vue +0 -430
- package/es/components/guide-pc/guide.vue +0 -179
- package/es/components/guide-pc/imgs/error.png +0 -0
- package/es/components/guide-pc/imgs/judge.png +0 -0
- package/es/components/guide-pc/imgs/pass.png +0 -0
- package/lib/components/guide-pc/comment.vue +0 -117
- package/lib/components/guide-pc/components/accept.vue +0 -50
- package/lib/components/guide-pc/components/basicInfo.vue +0 -81
- package/lib/components/guide-pc/components/guideTabs.vue +0 -48
- package/lib/components/guide-pc/components/guideTitle.vue +0 -43
- package/lib/components/guide-pc/components/materialsList.vue +0 -403
- package/lib/components/guide-pc/components/places.vue +0 -198
- package/lib/components/guide-pc/components/processImg.vue +0 -300
- package/lib/components/guide-pc/components/result.vue +0 -191
- package/lib/components/guide-pc/components/situation.vue +0 -430
- package/lib/components/guide-pc/guide.vue +0 -179
- package/lib/components/guide-pc/imgs/error.png +0 -0
- package/lib/components/guide-pc/imgs/judge.png +0 -0
- package/lib/components/guide-pc/imgs/pass.png +0 -0
|
@@ -17,11 +17,18 @@ var Situation = function Situation(_ref) {
|
|
|
17
17
|
applicationIdProp = _ref.applicationId,
|
|
18
18
|
accessTokenProp = _ref.accessToken,
|
|
19
19
|
acctTypeProp = _ref.acctType,
|
|
20
|
+
finalMaterialsProp = _ref.finalMaterials,
|
|
20
21
|
declarationAppTokenProp = _ref.declarationAppToken,
|
|
21
|
-
|
|
22
|
+
situationPageUrlProp = _ref.situationPageUrl,
|
|
23
|
+
taskHandleItemProp = _ref.taskHandleItem,
|
|
24
|
+
situationResRechangeProp = _ref.situationResRechange,
|
|
25
|
+
previousDataProp = _ref.previousData;
|
|
22
26
|
var _React$useState = React.useState(false),
|
|
23
27
|
isExpend = _React$useState[0],
|
|
24
28
|
setIsExpend = _React$useState[1];
|
|
29
|
+
var _React$useState2 = React.useState(''),
|
|
30
|
+
iframeSrc = _React$useState2[0],
|
|
31
|
+
setIframeSrc = _React$useState2[1];
|
|
25
32
|
var tip = '说明:因个人情况不同上交材料不同,可通过情形选择查看必须上传的材料!';
|
|
26
33
|
React.useEffect(function () {
|
|
27
34
|
initPage();
|
|
@@ -29,37 +36,32 @@ var Situation = function Situation(_ref) {
|
|
|
29
36
|
return function () {
|
|
30
37
|
window.removeEventListener('message', getMessage);
|
|
31
38
|
};
|
|
32
|
-
|
|
39
|
+
// NOTE: initPage and getMessage intentionally omitted from deps to match guide component pattern
|
|
40
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
41
|
+
}, [eventInfoProp, taskHandleItemProp, situationPageUrlProp, declarationAppTokenProp, finalMaterialsProp, applicationIdProp, accessTokenProp, acctTypeProp, previousDataProp]);
|
|
33
42
|
var initPage = function initPage() {
|
|
34
|
-
if (!
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
// const stepList = uni.getStorageSync('stepList');
|
|
38
|
-
// const situationPage = stepList.find((item) => item.name === '智能导办-pc');
|
|
39
|
-
// if (situationPage && situationPage.link) {
|
|
40
|
-
// const finalLink = `${declarePage}/preview.html?pageID=${situationPage.id}`;
|
|
41
|
-
// const url = `${finalLink}&isFirst=1&isReCheck=1&applicationId=${applicationIdProp}&access_token=${accessTokenProp}&acctType=${acctTypeProp}&isPc=1`;
|
|
42
|
-
// setTimeout(() => {
|
|
43
|
-
// const iframe = document.getElementById('situationIframe') as HTMLIFrameElement;
|
|
44
|
-
// if (iframe) iframe.src = url;
|
|
45
|
-
// }, 500);
|
|
46
|
-
// }
|
|
43
|
+
if (!situationPageUrlProp) return;
|
|
44
|
+
var url = situationPageUrlProp + "&isFirst=1&isReCheck=1&isZXBB=1&isPc=1";
|
|
45
|
+
setIframeSrc(url);
|
|
47
46
|
};
|
|
48
47
|
var getMessage = function getMessage(e) {
|
|
49
|
-
var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData', 'getFormFieldNames', 'getItemSituationRowUid', 'getWorkNo'];
|
|
48
|
+
var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData', 'getFormFieldNames', 'getItemSituationRowUid', 'getWorkNo', 'getPreviousData'];
|
|
50
49
|
var _ref2 = e.data || {},
|
|
51
50
|
type = _ref2.type,
|
|
52
51
|
data = _ref2.data;
|
|
53
52
|
if (typeArr.includes(type)) {
|
|
54
53
|
sendInfoHandle(type, data);
|
|
55
54
|
} else if (type === 'situationRes') {
|
|
55
|
+
situationResRechangeProp === null || situationResRechangeProp === void 0 ? void 0 : situationResRechangeProp(data);
|
|
56
56
|
// TODO: checkSituation2 not available
|
|
57
57
|
// uni.setStorageSync('situationRes', data);
|
|
58
58
|
// checkSituation2(true, 'pc');
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
var sendInfoHandle = function sendInfoHandle(type, _data) {
|
|
62
|
-
var
|
|
62
|
+
var _eventInfo$taskGenera, _eventInfo$taskGenera2;
|
|
63
|
+
var eventInfo = eventInfoProp;
|
|
64
|
+
var finalMaterials = finalMaterialsProp;
|
|
63
65
|
var sendData = {
|
|
64
66
|
type: type,
|
|
65
67
|
data: {}
|
|
@@ -79,16 +81,14 @@ var Situation = function Situation(_ref) {
|
|
|
79
81
|
sendData.data.taskHandleItem = taskHandleItemProp;
|
|
80
82
|
break;
|
|
81
83
|
case 'getFormId':
|
|
82
|
-
if (
|
|
83
|
-
sendData.data.formId =
|
|
84
|
+
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) {
|
|
85
|
+
sendData.data.formId = eventInfo.taskGeneralForms[0].formId;
|
|
84
86
|
} else {
|
|
85
87
|
sendData.data.formId = '12023122617035840604349816';
|
|
86
88
|
}
|
|
87
89
|
break;
|
|
88
90
|
case 'getMaterials':
|
|
89
|
-
|
|
90
|
-
// const { taskGeneralMaterials } = uni.getStorageSync('eventInfo');
|
|
91
|
-
// sendData.data.materials = finalMaterials || taskGeneralMaterials;
|
|
91
|
+
sendData.data.materials = finalMaterials || (eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.taskGeneralMaterials);
|
|
92
92
|
break;
|
|
93
93
|
case 'getFormData':
|
|
94
94
|
// sendData.data.formData = uni.getStorageSync('formData');
|
|
@@ -102,6 +102,9 @@ var Situation = function Situation(_ref) {
|
|
|
102
102
|
case 'getWorkNo':
|
|
103
103
|
// sendData.data.workNo = uni.getStorageSync('workNo');
|
|
104
104
|
break;
|
|
105
|
+
case 'getPreviousData':
|
|
106
|
+
sendData.data.previousData = previousDataProp;
|
|
107
|
+
break;
|
|
105
108
|
}
|
|
106
109
|
var formIframe = document.getElementById('situationIframe');
|
|
107
110
|
if (formIframe !== null && formIframe !== void 0 && formIframe.contentWindow) {
|
|
@@ -112,31 +115,32 @@ var Situation = function Situation(_ref) {
|
|
|
112
115
|
setIsExpend(!isExpend);
|
|
113
116
|
};
|
|
114
117
|
return /*#__PURE__*/React.createElement("div", {
|
|
115
|
-
className: "situation-content"
|
|
118
|
+
className: "pc-situation-content"
|
|
116
119
|
}, /*#__PURE__*/React.createElement(_guideTitle["default"], {
|
|
117
120
|
title: "\u6750\u6599\u6E05\u5355"
|
|
118
121
|
}), /*#__PURE__*/React.createElement("div", {
|
|
119
|
-
className: "situation-tip " + (isExpend ? 'isActive' : '')
|
|
122
|
+
className: "pc-situation-tip " + (isExpend ? 'isActive' : '')
|
|
120
123
|
}, /*#__PURE__*/React.createElement("div", {
|
|
121
|
-
className: "inner-tip",
|
|
124
|
+
className: "pc-inner-tip",
|
|
122
125
|
style: {
|
|
123
126
|
backgroundImage: "url(" + _situation["default"] + ")"
|
|
124
127
|
}
|
|
125
128
|
}, /*#__PURE__*/React.createElement("div", {
|
|
126
|
-
className: "title-con"
|
|
129
|
+
className: "pc-title-con"
|
|
127
130
|
}, /*#__PURE__*/React.createElement("div", {
|
|
128
|
-
className: "title"
|
|
131
|
+
className: "pc-title"
|
|
129
132
|
}, "\u5BFC\u529E\u60C5\u5F62\u9009\u62E9"), /*#__PURE__*/React.createElement("div", {
|
|
130
|
-
className: "tip"
|
|
133
|
+
className: "pc-tip"
|
|
131
134
|
}, tip)), /*#__PURE__*/React.createElement("div", {
|
|
132
|
-
className: "btn-con",
|
|
135
|
+
className: "pc-btn-con",
|
|
133
136
|
onClick: expendChange
|
|
134
137
|
}, /*#__PURE__*/React.createElement("span", null, isExpend ? '收起' : '展开'), /*#__PURE__*/React.createElement("div", {
|
|
135
|
-
className: "icon"
|
|
138
|
+
className: "pc-icon"
|
|
136
139
|
}, isExpend ? '▲' : '▼')))), isExpend && /*#__PURE__*/React.createElement("div", {
|
|
137
|
-
className: "situation-inner"
|
|
140
|
+
className: "pc-situation-inner"
|
|
138
141
|
}, /*#__PURE__*/React.createElement("iframe", {
|
|
139
142
|
id: "situationIframe",
|
|
143
|
+
src: iframeSrc,
|
|
140
144
|
frameBorder: "0",
|
|
141
145
|
height: "100%",
|
|
142
146
|
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;
|
|
Binary file
|
|
Binary file
|
|
@@ -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;
|
|
@@ -4,7 +4,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
7
|
-
var _button = _interopRequireDefault(require("@alifd/next/lib/button"));
|
|
8
7
|
var _dialog = _interopRequireDefault(require("@alifd/next/lib/dialog"));
|
|
9
8
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
9
|
var _message = _interopRequireDefault(require("@alifd/next/lib/message"));
|
|
@@ -17,9 +16,7 @@ var _processImg = _interopRequireDefault(require("./components/processImg"));
|
|
|
17
16
|
var _accept = _interopRequireDefault(require("./components/accept"));
|
|
18
17
|
var _places = _interopRequireDefault(require("./components/places"));
|
|
19
18
|
var _result = _interopRequireDefault(require("./components/result"));
|
|
20
|
-
var
|
|
21
|
-
var _share = _interopRequireDefault(require("../guide/imgs/share.png"));
|
|
22
|
-
var _download = _interopRequireDefault(require("../guide/imgs/download.png"));
|
|
19
|
+
var _eventInfo = _interopRequireDefault(require("./components/eventInfo"));
|
|
23
20
|
require("./index.scss");
|
|
24
21
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
25
22
|
// TODO: API imports not available
|
|
@@ -45,12 +42,7 @@ var tabSections = [{
|
|
|
45
42
|
label: '成效分析'
|
|
46
43
|
}];
|
|
47
44
|
var GuidePc = function GuidePc(_ref) {
|
|
48
|
-
var _eventInfoProp$taskGe;
|
|
49
45
|
var onNextStep = _ref.onNextStep,
|
|
50
|
-
_ref$cantNext = _ref.cantNext,
|
|
51
|
-
cantNext = _ref$cantNext === void 0 ? false : _ref$cantNext,
|
|
52
|
-
_ref$hasPrevious = _ref.hasPrevious,
|
|
53
|
-
hasPrevious = _ref$hasPrevious === void 0 ? false : _ref$hasPrevious,
|
|
54
46
|
taskHandleItem = _ref.taskHandleItem,
|
|
55
47
|
accessToken = _ref.accessToken,
|
|
56
48
|
eventInfoProp = _ref.eventInfo,
|
|
@@ -63,7 +55,8 @@ var GuidePc = function GuidePc(_ref) {
|
|
|
63
55
|
baseUrl = _ref.baseUrl,
|
|
64
56
|
download = _ref.download,
|
|
65
57
|
situationResRechange = _ref.situationResRechange,
|
|
66
|
-
previousData = _ref.previousData
|
|
58
|
+
previousData = _ref.previousData,
|
|
59
|
+
style = _ref.style;
|
|
67
60
|
var _React$useState = React.useState(0),
|
|
68
61
|
tabIndex = _React$useState[0],
|
|
69
62
|
setTabIndex = _React$useState[1];
|
|
@@ -276,29 +269,36 @@ var GuidePc = function GuidePc(_ref) {
|
|
|
276
269
|
};
|
|
277
270
|
}, []);
|
|
278
271
|
return /*#__PURE__*/React.createElement("div", {
|
|
279
|
-
className: "guidePc-wrapper"
|
|
272
|
+
className: "pc-guidePc-wrapper",
|
|
273
|
+
style: style
|
|
280
274
|
}, !canHandle && /*#__PURE__*/React.createElement("div", {
|
|
281
|
-
className: "guide-empty"
|
|
275
|
+
className: "pc-guide-empty"
|
|
282
276
|
}, "\u6682\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u4E8B\u9879"), canHandle && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
283
|
-
className: "guidePc-main"
|
|
284
|
-
}, /*#__PURE__*/React.createElement("
|
|
285
|
-
|
|
277
|
+
className: "pc-guidePc-main"
|
|
278
|
+
}, /*#__PURE__*/React.createElement(_eventInfo["default"], {
|
|
279
|
+
eventInfo: eventInfoProp
|
|
280
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
281
|
+
className: "pc-guidePc-content"
|
|
286
282
|
}, /*#__PURE__*/React.createElement("div", {
|
|
287
|
-
className: "stity"
|
|
283
|
+
className: "pc-stity"
|
|
288
284
|
}, /*#__PURE__*/React.createElement(_guideTabs["default"], {
|
|
289
285
|
curTab: tabIndex,
|
|
290
286
|
onTabsChange: changeTab
|
|
291
287
|
})), /*#__PURE__*/React.createElement("div", {
|
|
292
|
-
className: "gap"
|
|
288
|
+
className: "pc-gap"
|
|
293
289
|
}), /*#__PURE__*/React.createElement("div", {
|
|
294
290
|
id: "section-materials"
|
|
295
|
-
},
|
|
291
|
+
}, situationPageUrl && /*#__PURE__*/React.createElement(_situation["default"], {
|
|
296
292
|
eventInfo: eventInfoProp,
|
|
297
293
|
applicationId: applicationId,
|
|
298
294
|
accessToken: accessToken,
|
|
299
295
|
acctType: acctType,
|
|
296
|
+
finalMaterials: finalMaterials,
|
|
300
297
|
declarationAppToken: declarationAppToken,
|
|
301
|
-
|
|
298
|
+
situationPageUrl: situationPageUrl,
|
|
299
|
+
taskHandleItem: taskHandleItem,
|
|
300
|
+
situationResRechange: situationResRechange,
|
|
301
|
+
previousData: previousData
|
|
302
302
|
}), /*#__PURE__*/React.createElement(_materialsList["default"], {
|
|
303
303
|
eventInfo: eventInfoProp,
|
|
304
304
|
finalMaterials: finalMaterials,
|
|
@@ -307,101 +307,54 @@ var GuidePc = function GuidePc(_ref) {
|
|
|
307
307
|
download: download
|
|
308
308
|
})), /*#__PURE__*/React.createElement("div", {
|
|
309
309
|
id: "section-basicInfo",
|
|
310
|
-
className: "content-section"
|
|
310
|
+
className: "pc-content-section"
|
|
311
311
|
}, /*#__PURE__*/React.createElement(_basicInfo["default"], {
|
|
312
312
|
eventInfo: eventInfoProp
|
|
313
313
|
})), /*#__PURE__*/React.createElement("div", {
|
|
314
314
|
id: "section-process",
|
|
315
|
-
className: "content-section"
|
|
315
|
+
className: "pc-content-section"
|
|
316
316
|
}, /*#__PURE__*/React.createElement(_processImg["default"], {
|
|
317
317
|
eventInfo: eventInfoProp,
|
|
318
318
|
baseUrl: baseUrl,
|
|
319
319
|
declarationAppToken: declarationAppToken
|
|
320
320
|
})), /*#__PURE__*/React.createElement("div", {
|
|
321
321
|
id: "section-accept",
|
|
322
|
-
className: "content-section"
|
|
322
|
+
className: "pc-content-section"
|
|
323
323
|
}, /*#__PURE__*/React.createElement(_accept["default"], {
|
|
324
324
|
eventInfo: eventInfoProp
|
|
325
325
|
})), /*#__PURE__*/React.createElement("div", {
|
|
326
326
|
id: "section-places",
|
|
327
|
-
className: "content-section"
|
|
327
|
+
className: "pc-content-section"
|
|
328
328
|
}, /*#__PURE__*/React.createElement(_places["default"], {
|
|
329
329
|
eventInfo: eventInfoProp
|
|
330
330
|
})), /*#__PURE__*/React.createElement("div", {
|
|
331
331
|
id: "section-result",
|
|
332
|
-
className: "content-section"
|
|
332
|
+
className: "pc-content-section"
|
|
333
333
|
}, /*#__PURE__*/React.createElement(_result["default"], {
|
|
334
334
|
eventInfo: eventInfoProp
|
|
335
335
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
336
|
-
className: "guidePc-bottom"
|
|
337
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
338
|
-
className: "bottom-inner"
|
|
339
|
-
}, userAgreementList.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
340
|
-
className: "agreement-row"
|
|
341
|
-
}, /*#__PURE__*/React.createElement("label", {
|
|
342
|
-
className: "agreement-checkbox"
|
|
343
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
344
|
-
type: "checkbox",
|
|
345
|
-
checked: isAgree,
|
|
346
|
-
onChange: function onChange(e) {
|
|
347
|
-
return setIsAgree(e.target.checked);
|
|
348
|
-
}
|
|
349
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
350
|
-
className: "agreement-label-text"
|
|
351
|
-
}, agreementPrompt)), /*#__PURE__*/React.createElement("div", {
|
|
352
|
-
className: "agreement-tip-slot"
|
|
353
|
-
}, userAgreementList.map(function (item, index) {
|
|
354
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
355
|
-
key: index,
|
|
356
|
-
className: "agreement-item",
|
|
357
|
-
onClick: function onClick() {
|
|
358
|
-
return showAgree(item);
|
|
359
|
-
}
|
|
360
|
-
}, "\u300A", item.agreementName, "\u300B");
|
|
361
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
362
|
-
className: "action-row"
|
|
363
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
364
|
-
className: "left-actions"
|
|
336
|
+
className: "pc-guidePc-bottom"
|
|
365
337
|
}, /*#__PURE__*/React.createElement("div", {
|
|
366
|
-
className: "action-btn",
|
|
338
|
+
className: "pc-action-btn",
|
|
367
339
|
onClick: goComment
|
|
368
|
-
}, /*#__PURE__*/React.createElement("
|
|
369
|
-
className: "
|
|
370
|
-
src: _comment["default"],
|
|
371
|
-
alt: "\u8BC4\u4EF7"
|
|
372
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
373
|
-
className: "name"
|
|
340
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
341
|
+
className: "pc-name"
|
|
374
342
|
}, "\u8BC4\u4EF7\u6307\u5357")), /*#__PURE__*/React.createElement("div", {
|
|
375
|
-
className: "action-btn",
|
|
343
|
+
className: "pc-action-btn",
|
|
376
344
|
onClick: goShare
|
|
377
|
-
}, /*#__PURE__*/React.createElement("
|
|
378
|
-
className: "
|
|
379
|
-
src: _share["default"],
|
|
380
|
-
alt: "\u5206\u4EAB"
|
|
381
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
382
|
-
className: "name"
|
|
345
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
346
|
+
className: "pc-name"
|
|
383
347
|
}, "\u5206\u4EAB")), /*#__PURE__*/React.createElement("div", {
|
|
384
|
-
className: "action-btn",
|
|
348
|
+
className: "pc-action-btn",
|
|
385
349
|
onClick: goDownload
|
|
386
|
-
}, /*#__PURE__*/React.createElement("
|
|
387
|
-
className: "
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
391
|
-
className: "name"
|
|
392
|
-
}, "\u4E0B\u8F7D"))), /*#__PURE__*/React.createElement("div", {
|
|
393
|
-
className: "right-actions"
|
|
394
|
-
}, hasPrevious && /*#__PURE__*/React.createElement(_button["default"], {
|
|
395
|
-
className: "prev-btn",
|
|
396
|
-
onClick: prepStep,
|
|
397
|
-
disabled: cantNext
|
|
398
|
-
}, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/React.createElement(_button["default"], {
|
|
399
|
-
type: "primary",
|
|
400
|
-
className: "next-btn",
|
|
350
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
351
|
+
className: "pc-name"
|
|
352
|
+
}, "\u4E0B\u8F7D")), /*#__PURE__*/React.createElement("div", {
|
|
353
|
+
className: "pc-next-btn",
|
|
401
354
|
disabled: !canHandle,
|
|
402
355
|
onClick: handleEvent
|
|
403
|
-
}, "\u7ACB\u5373\u529E\u7406"))
|
|
404
|
-
className: "go-up-btn",
|
|
356
|
+
}, "\u7ACB\u5373\u529E\u7406")), showGoUp && /*#__PURE__*/React.createElement("div", {
|
|
357
|
+
className: "pc-go-up-btn",
|
|
405
358
|
onClick: goUp
|
|
406
359
|
}, "\u25B2 \u9876\u90E8")), /*#__PURE__*/React.createElement(_dialog["default"], {
|
|
407
360
|
visible: popShow,
|
|
@@ -411,7 +364,7 @@ var GuidePc = function GuidePc(_ref) {
|
|
|
411
364
|
footer: false,
|
|
412
365
|
width: "90%"
|
|
413
366
|
}, /*#__PURE__*/React.createElement("div", {
|
|
414
|
-
className: "agree-detail",
|
|
367
|
+
className: "pc-agree-detail",
|
|
415
368
|
dangerouslySetInnerHTML: {
|
|
416
369
|
__html: userAgreement
|
|
417
370
|
}
|
|
@@ -430,11 +383,11 @@ var GuidePc = function GuidePc(_ref) {
|
|
|
430
383
|
return setModalShow(false);
|
|
431
384
|
}
|
|
432
385
|
}, /*#__PURE__*/React.createElement("div", {
|
|
433
|
-
className: "agree"
|
|
386
|
+
className: "pc-agree"
|
|
434
387
|
}, agreementPrompt, userAgreementList.map(function (item, index) {
|
|
435
388
|
return /*#__PURE__*/React.createElement("span", {
|
|
436
389
|
key: index,
|
|
437
|
-
className: "agreement-sub-item",
|
|
390
|
+
className: "pc-agreement-sub-item",
|
|
438
391
|
onClick: function onClick() {
|
|
439
392
|
return showAgree(item);
|
|
440
393
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
.guidePc-wrapper {
|
|
2
|
-
min-height: 100vh;
|
|
1
|
+
.pc-guidePc-wrapper {
|
|
3
2
|
background: #ffffff;
|
|
4
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
79
|
-
|
|
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-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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;
|