ydb-components-material 0.1.105 → 0.1.107
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/static/commonBg.4bd4470c.svg +1 -0
- package/build/docs/{umi.e6ddefc7.css → umi.0bdb74c5.css} +1 -1
- package/build/docs/{umi.a8f7e9e9.js → umi.92ccfbfa.js} +1 -1
- 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 +1 -1
- package/build/lowcode/preview.js +9 -9
- 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 +17 -17
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +17 -17
- package/dist/1.js +2 -2
- package/dist/2.js +1 -1
- package/dist/3.js +1 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +8 -8
- package/dist/BizComps.js.map +1 -1
- package/es/components/guide/compoents/materials/materials.d.ts +1 -2
- package/es/components/guide/compoents/materials/materials.js +3 -17
- package/es/components/guide/compoents/materials/situation.d.ts +1 -2
- package/es/components/guide/compoents/materials/situation.js +4 -15
- package/es/components/guide/compoents/result.js +1 -2
- package/es/components/guide/compoents/result.scss +2 -2
- package/es/components/guide/imgs/commonBg.svg +1 -0
- package/es/components/guide/index.d.ts +2 -3
- package/es/components/guide/index.js +8 -10
- package/es/components/guide/index.scss +4 -6
- package/lib/components/guide/compoents/materials/materials.d.ts +1 -2
- package/lib/components/guide/compoents/materials/materials.js +3 -17
- package/lib/components/guide/compoents/materials/situation.d.ts +1 -2
- package/lib/components/guide/compoents/materials/situation.js +4 -15
- package/lib/components/guide/compoents/result.js +1 -2
- package/lib/components/guide/compoents/result.scss +2 -2
- package/lib/components/guide/imgs/commonBg.svg +1 -0
- package/lib/components/guide/index.d.ts +2 -3
- package/lib/components/guide/index.js +8 -10
- package/lib/components/guide/index.scss +4 -6
- package/lowcode/guide/meta.ts +23 -38
- package/lowcode_es/guide/meta.js +21 -36
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/guide/meta.js +21 -36
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
- package/build/docs/static/bg2.a0dfd810.png +0 -0
- package/build/docs/static/commonBg.83239798.png +0 -0
- package/build/lowcode/assets/260814268e08d6e791032a27843cd215.png +0 -0
- package/build/lowcode/assets/3eb597ba730c5870765c2c09b7853d78.png +0 -0
- package/build/lowcode/render/default/assets/260814268e08d6e791032a27843cd215.png +0 -0
- package/build/lowcode/render/default/assets/3eb597ba730c5870765c2c09b7853d78.png +0 -0
- package/dist/assets/260814268e08d6e791032a27843cd215.png +0 -0
- package/dist/assets/3eb597ba730c5870765c2c09b7853d78.png +0 -0
- package/es/components/guide/imgs/bg2.png +0 -0
- package/es/components/guide/imgs/checkBg.png +0 -0
- package/es/components/guide/imgs/checkBgPc.png +0 -0
- package/es/components/guide/imgs/loading.gif +0 -0
- package/lib/components/guide/imgs/bg2.png +0 -0
- package/lib/components/guide/imgs/checkBg.png +0 -0
- package/lib/components/guide/imgs/checkBgPc.png +0 -0
- package/lib/components/guide/imgs/loading.gif +0 -0
|
@@ -2,13 +2,12 @@ import * as React from 'react';
|
|
|
2
2
|
import './materials.scss';
|
|
3
3
|
export interface MaterialsProps {
|
|
4
4
|
eventInfo?: any;
|
|
5
|
-
stepList?: any[];
|
|
6
5
|
applicationId?: string;
|
|
7
6
|
accessToken?: string;
|
|
8
7
|
acctType?: string;
|
|
9
8
|
finalMaterials?: any[];
|
|
10
9
|
declarationAppToken?: string;
|
|
11
|
-
|
|
10
|
+
situationPageUrl?: string;
|
|
12
11
|
baseUrl?: string;
|
|
13
12
|
download?: (params: any) => void;
|
|
14
13
|
situationResRechange?: (data: any) => void;
|
|
@@ -4,40 +4,26 @@ import MaterialsList from "./materialsList";
|
|
|
4
4
|
import "./materials.scss";
|
|
5
5
|
var Materials = function Materials(_ref) {
|
|
6
6
|
var eventInfoProp = _ref.eventInfo,
|
|
7
|
-
stepListProp = _ref.stepList,
|
|
8
7
|
applicationIdProp = _ref.applicationId,
|
|
9
8
|
accessTokenProp = _ref.accessToken,
|
|
10
9
|
acctTypeProp = _ref.acctType,
|
|
11
10
|
finalMaterialsProp = _ref.finalMaterials,
|
|
12
11
|
declarationAppTokenProp = _ref.declarationAppToken,
|
|
13
|
-
|
|
12
|
+
situationPageUrlProp = _ref.situationPageUrl,
|
|
14
13
|
baseUrlProp = _ref.baseUrl,
|
|
15
14
|
downloadProp = _ref.download,
|
|
16
15
|
situationResRechangeProp = _ref.situationResRechange,
|
|
17
16
|
taskHandleItemProp = _ref.taskHandleItem;
|
|
18
|
-
var _React$useState = React.useState(false),
|
|
19
|
-
hasSituation = _React$useState[0],
|
|
20
|
-
setHasSituation = _React$useState[1];
|
|
21
|
-
React.useEffect(function () {
|
|
22
|
-
var stepList = stepListProp;
|
|
23
|
-
if (stepList) {
|
|
24
|
-
var found = stepList.find(function (item) {
|
|
25
|
-
return item.fieldText === '智能导办';
|
|
26
|
-
});
|
|
27
|
-
setHasSituation(!!found);
|
|
28
|
-
}
|
|
29
|
-
}, []);
|
|
30
17
|
return /*#__PURE__*/React.createElement("div", {
|
|
31
18
|
className: "materials-content"
|
|
32
|
-
},
|
|
19
|
+
}, situationPageUrlProp && /*#__PURE__*/React.createElement(Situation, {
|
|
33
20
|
eventInfo: eventInfoProp,
|
|
34
|
-
stepList: stepListProp,
|
|
35
21
|
applicationId: applicationIdProp,
|
|
36
22
|
accessToken: accessTokenProp,
|
|
37
23
|
acctType: acctTypeProp,
|
|
38
24
|
finalMaterials: finalMaterialsProp,
|
|
39
25
|
declarationAppToken: declarationAppTokenProp,
|
|
40
|
-
|
|
26
|
+
situationPageUrl: situationPageUrlProp,
|
|
41
27
|
situationResRechange: situationResRechangeProp,
|
|
42
28
|
taskHandleItem: taskHandleItemProp
|
|
43
29
|
}), /*#__PURE__*/React.createElement(MaterialsList, {
|
|
@@ -2,13 +2,12 @@ import * as React from 'react';
|
|
|
2
2
|
import './situation.scss';
|
|
3
3
|
export interface SituationProps {
|
|
4
4
|
eventInfo?: any;
|
|
5
|
-
stepList?: any[];
|
|
6
5
|
applicationId?: string;
|
|
7
6
|
accessToken?: string;
|
|
8
7
|
acctType?: string;
|
|
9
8
|
finalMaterials?: any[];
|
|
10
9
|
declarationAppToken?: string;
|
|
11
|
-
|
|
10
|
+
situationPageUrl?: string;
|
|
12
11
|
taskHandleItem?: string;
|
|
13
12
|
situationResRechange?: (data: any) => void;
|
|
14
13
|
}
|
|
@@ -7,13 +7,12 @@ import "./situation.scss";
|
|
|
7
7
|
|
|
8
8
|
var Situation = function Situation(_ref) {
|
|
9
9
|
var eventInfoProp = _ref.eventInfo,
|
|
10
|
-
stepListProp = _ref.stepList,
|
|
11
10
|
applicationIdProp = _ref.applicationId,
|
|
12
11
|
accessTokenProp = _ref.accessToken,
|
|
13
12
|
acctTypeProp = _ref.acctType,
|
|
14
13
|
finalMaterialsProp = _ref.finalMaterials,
|
|
15
14
|
declarationAppTokenProp = _ref.declarationAppToken,
|
|
16
|
-
|
|
15
|
+
situationPageUrlProp = _ref.situationPageUrl,
|
|
17
16
|
taskHandleItemProp = _ref.taskHandleItem,
|
|
18
17
|
situationResRechangeProp = _ref.situationResRechange;
|
|
19
18
|
var _React$useState = React.useState('说明:因个人情况不同上交材料不同,可通过情形选择查看必须上传的材料!'),
|
|
@@ -32,19 +31,9 @@ var Situation = function Situation(_ref) {
|
|
|
32
31
|
};
|
|
33
32
|
}, []);
|
|
34
33
|
var initPage = function initPage() {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return item.name === '智能导办';
|
|
39
|
-
});
|
|
40
|
-
if (situationPage !== null && situationPage !== void 0 && situationPage.link && declarePageProp) {
|
|
41
|
-
var applicationId = applicationIdProp;
|
|
42
|
-
var access_token = accessTokenProp;
|
|
43
|
-
var acctType = acctTypeProp;
|
|
44
|
-
var finalLink = declarePageProp + "/preview.html?pageID=" + situationPage.id;
|
|
45
|
-
var url = finalLink + "&isFirst=1&isReCheck=1&applicationId=" + applicationId + "&access_token=" + access_token + "&acctType=" + acctType;
|
|
46
|
-
setIframeSrc(url);
|
|
47
|
-
}
|
|
34
|
+
if (!situationPageUrlProp) return;
|
|
35
|
+
var url = situationPageUrlProp + "&isFirst=1&isReCheck=1";
|
|
36
|
+
setIframeSrc(url);
|
|
48
37
|
};
|
|
49
38
|
var getMessage = function getMessage(e) {
|
|
50
39
|
var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData'];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import "./result.scss";
|
|
3
|
-
import commonBg from "../imgs/bg2.png";
|
|
4
3
|
import icon1 from "../imgs/icon1.png";
|
|
5
4
|
import icon2 from "../imgs/icon2.png";
|
|
6
5
|
import icon3 from "../imgs/icon3.png";
|
|
@@ -40,7 +39,7 @@ var Result = function Result(_ref) {
|
|
|
40
39
|
}, item.scene), /*#__PURE__*/React.createElement("div", {
|
|
41
40
|
className: "info-con",
|
|
42
41
|
style: {
|
|
43
|
-
backgroundImage: "url(
|
|
42
|
+
backgroundImage: "url(https://zwfwpt.sxzwfw.gov.cn:11001/fis/18a78d3d488-true/master/18b4752f107/2026/5/2059443890220503042/bg2.png)"
|
|
44
43
|
}
|
|
45
44
|
}, /*#__PURE__*/React.createElement("div", {
|
|
46
45
|
className: "info-title"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
.info-con {
|
|
25
25
|
width: 100%;
|
|
26
|
-
height:
|
|
26
|
+
height: 270px;
|
|
27
27
|
background-size: 100% 100%;
|
|
28
28
|
|
|
29
29
|
.info-title {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.info-list {
|
|
49
|
-
margin:
|
|
49
|
+
margin: 35px 30px 0;
|
|
50
50
|
|
|
51
51
|
.info-item {
|
|
52
52
|
display: flex;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="375" height="270" viewBox="0 0 375 270"><defs><linearGradient x1="0.9229974150657654" y1="0.5690524578094482" x2="-0.17019593931065616" y2="0.18000713980631639" id="master_svg0_8_01317"><stop offset="0%" stop-color="#7BB2FF" stop-opacity="1"/><stop offset="46.25856578350067%" stop-color="#3385F7" stop-opacity="0.800000011920929"/><stop offset="100%" stop-color="#03D1F1" stop-opacity="1"/></linearGradient><linearGradient x1="1" y1="0.6824562549591064" x2="-0.12613178203182815" y2="0.08365561903770147" id="master_svg1_8_01331"><stop offset="0%" stop-color="#FFFFFF" stop-opacity="1"/><stop offset="97.99996614456177%" stop-color="#FFFFFF" stop-opacity="1"/></linearGradient><mask id="master_svg2_498_43654" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="-63" y="-70" width="623" height="528"><rect x="0" y="0" width="375" height="270" rx="0" fill="url(#master_svg1_8_01331)" fill-opacity="1" style="mix-blend-mode:passthrough"/></mask><linearGradient x1="0" y1="0.4827450215816498" x2="0.6412902474403382" y2="0.4399974048137665" id="master_svg3_28_01460"><stop offset="0%" stop-color="#78B0FF" stop-opacity="1"/><stop offset="100%" stop-color="#78B0FF" stop-opacity="0"/></linearGradient><linearGradient x1="0" y1="0.4827450215816498" x2="1.0357004404067993" y2="0.5265340805053711" id="master_svg4_8_01328"><stop offset="0%" stop-color="#78B0FF" stop-opacity="1"/><stop offset="100%" stop-color="#78B0FF" stop-opacity="0"/></linearGradient></defs><rect x="0" y="0" width="375" height="270" rx="0" fill="url(#master_svg0_8_01317)" fill-opacity="1" style="mix-blend-mode:passthrough"/><g mask="url(#master_svg2_498_43654)"><ellipse cx="0.5" cy="132.5" rx="63.5" ry="63.5" fill="#FFFFFF" fill-opacity="1" style="opacity:0.20000000298023224;"/><ellipse cx="579" cy="39" rx="109" ry="109" fill="url(#master_svg3_28_01460)" fill-opacity="1" transform="matrix(0,1,-1,0,400,-540)"/><ellipse cx="697.5" cy="320.5" rx="137.5" ry="137.5" fill="url(#master_svg4_8_01328)" fill-opacity="1" transform="matrix(0,1,-1,0,743,-377)"/></g></svg>
|
|
@@ -5,6 +5,7 @@ export interface GuideProps {
|
|
|
5
5
|
onNextStep?: (action: string) => void;
|
|
6
6
|
/** Whether to disable the prev/next buttons (coming from authorization page) */
|
|
7
7
|
cantNext?: boolean;
|
|
8
|
+
hasPrevious?: boolean;
|
|
8
9
|
/** Task handle item code */
|
|
9
10
|
taskHandleItem?: string;
|
|
10
11
|
/** Access token */
|
|
@@ -19,12 +20,10 @@ export interface GuideProps {
|
|
|
19
20
|
applicationId?: string;
|
|
20
21
|
/** Final materials after intelligent guidance */
|
|
21
22
|
finalMaterials?: object[];
|
|
22
|
-
/** Step list */
|
|
23
|
-
stepList?: object[];
|
|
24
23
|
/** Declaration app token */
|
|
25
24
|
declarationAppToken?: string;
|
|
26
25
|
/** Declare page URL */
|
|
27
|
-
|
|
26
|
+
situationPageUrl?: string;
|
|
28
27
|
/** Base URL */
|
|
29
28
|
baseUrl?: string;
|
|
30
29
|
/** Download handler */
|
|
@@ -11,7 +11,7 @@ import ProcessImg from "./compoents/processImg";
|
|
|
11
11
|
import Accept from "./compoents/accept";
|
|
12
12
|
import Places from "./compoents/places";
|
|
13
13
|
import Result from "./compoents/result";
|
|
14
|
-
import topBg from "./imgs/commonBg.
|
|
14
|
+
import topBg from "./imgs/commonBg.svg";
|
|
15
15
|
import commentIcon from "./imgs/comment.png";
|
|
16
16
|
import shareIcon from "./imgs/share.png";
|
|
17
17
|
import downloadIcon from "./imgs/download.png";
|
|
@@ -29,6 +29,8 @@ var Guide = function Guide(_ref) {
|
|
|
29
29
|
var onNextStep = _ref.onNextStep,
|
|
30
30
|
_ref$cantNext = _ref.cantNext,
|
|
31
31
|
cantNext = _ref$cantNext === void 0 ? false : _ref$cantNext,
|
|
32
|
+
_ref$hasPrevious = _ref.hasPrevious,
|
|
33
|
+
hasPrevious = _ref$hasPrevious === void 0 ? false : _ref$hasPrevious,
|
|
32
34
|
taskHandleItem = _ref.taskHandleItem,
|
|
33
35
|
accessToken = _ref.accessToken,
|
|
34
36
|
eventInfoProp = _ref.eventInfo,
|
|
@@ -36,9 +38,8 @@ var Guide = function Guide(_ref) {
|
|
|
36
38
|
agentInfo = _ref.agentInfo,
|
|
37
39
|
applicationId = _ref.applicationId,
|
|
38
40
|
finalMaterials = _ref.finalMaterials,
|
|
39
|
-
stepList = _ref.stepList,
|
|
40
41
|
declarationAppToken = _ref.declarationAppToken,
|
|
41
|
-
|
|
42
|
+
situationPageUrl = _ref.situationPageUrl,
|
|
42
43
|
baseUrl = _ref.baseUrl,
|
|
43
44
|
download = _ref.download,
|
|
44
45
|
situationResRechange = _ref.situationResRechange;
|
|
@@ -262,11 +263,9 @@ var Guide = function Guide(_ref) {
|
|
|
262
263
|
className: "loading-text"
|
|
263
264
|
}, "\u52A0\u8F7D\u4E2D...")), !canHandle && !pageLoading && /*#__PURE__*/React.createElement("div", {
|
|
264
265
|
className: "guide-empty"
|
|
265
|
-
}, "\u6682\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u4E8B\u9879"), !pageLoading && canHandle && /*#__PURE__*/React.createElement("
|
|
266
|
+
}, "\u6682\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u4E8B\u9879"), !pageLoading && canHandle && /*#__PURE__*/React.createElement("img", {
|
|
266
267
|
className: "topBg",
|
|
267
|
-
|
|
268
|
-
backgroundImage: "url(" + topBg + ")"
|
|
269
|
-
}
|
|
268
|
+
src: topBg
|
|
270
269
|
}), !pageLoading && canHandle && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
271
270
|
className: "container"
|
|
272
271
|
}, /*#__PURE__*/React.createElement(EventInfo, {
|
|
@@ -278,13 +277,12 @@ var Guide = function Guide(_ref) {
|
|
|
278
277
|
onTabsChange: changeTab
|
|
279
278
|
}), tabIndex === 0 && /*#__PURE__*/React.createElement(Materials, {
|
|
280
279
|
eventInfo: eventInfoProp,
|
|
281
|
-
stepList: stepList,
|
|
282
280
|
applicationId: applicationId,
|
|
283
281
|
accessToken: accessToken,
|
|
284
282
|
acctType: acctType,
|
|
285
283
|
finalMaterials: finalMaterials,
|
|
286
284
|
declarationAppToken: declarationAppToken,
|
|
287
|
-
|
|
285
|
+
situationPageUrl: situationPageUrl,
|
|
288
286
|
baseUrl: baseUrl,
|
|
289
287
|
download: download,
|
|
290
288
|
situationResRechange: situationResRechange,
|
|
@@ -360,7 +358,7 @@ var Guide = function Guide(_ref) {
|
|
|
360
358
|
className: "name"
|
|
361
359
|
}, "\u4E0B\u8F7D"))), /*#__PURE__*/React.createElement("div", {
|
|
362
360
|
className: "right"
|
|
363
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
361
|
+
}, hasPrevious && /*#__PURE__*/React.createElement("div", {
|
|
364
362
|
className: "right-btn",
|
|
365
363
|
onClick: prepStep,
|
|
366
364
|
disabled: cantNext
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.guide-wrapper {
|
|
2
2
|
background-color: #f7f7f7;
|
|
3
3
|
min-height: 100vh;
|
|
4
|
+
overflow: hidden;
|
|
4
5
|
|
|
5
6
|
.guide-loading {
|
|
6
7
|
display: flex;
|
|
@@ -21,15 +22,12 @@
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
.topBg {
|
|
24
|
-
|
|
25
|
-
height:
|
|
26
|
-
background-size: 100% 100%;
|
|
27
|
-
background-repeat: no-repeat;
|
|
28
|
-
background-position-y: -80px;
|
|
25
|
+
transform: scaleX(5.5);
|
|
26
|
+
height: 180px;
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
.container {
|
|
32
|
-
margin-top: -
|
|
30
|
+
margin-top: -170px;
|
|
33
31
|
width: 100%;
|
|
34
32
|
padding: 16px 14px;
|
|
35
33
|
box-sizing: border-box;
|
|
@@ -2,13 +2,12 @@ import * as React from 'react';
|
|
|
2
2
|
import './materials.scss';
|
|
3
3
|
export interface MaterialsProps {
|
|
4
4
|
eventInfo?: any;
|
|
5
|
-
stepList?: any[];
|
|
6
5
|
applicationId?: string;
|
|
7
6
|
accessToken?: string;
|
|
8
7
|
acctType?: string;
|
|
9
8
|
finalMaterials?: any[];
|
|
10
9
|
declarationAppToken?: string;
|
|
11
|
-
|
|
10
|
+
situationPageUrl?: string;
|
|
12
11
|
baseUrl?: string;
|
|
13
12
|
download?: (params: any) => void;
|
|
14
13
|
situationResRechange?: (data: any) => void;
|
|
@@ -10,40 +10,26 @@ require("./materials.scss");
|
|
|
10
10
|
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); }
|
|
11
11
|
var Materials = function Materials(_ref) {
|
|
12
12
|
var eventInfoProp = _ref.eventInfo,
|
|
13
|
-
stepListProp = _ref.stepList,
|
|
14
13
|
applicationIdProp = _ref.applicationId,
|
|
15
14
|
accessTokenProp = _ref.accessToken,
|
|
16
15
|
acctTypeProp = _ref.acctType,
|
|
17
16
|
finalMaterialsProp = _ref.finalMaterials,
|
|
18
17
|
declarationAppTokenProp = _ref.declarationAppToken,
|
|
19
|
-
|
|
18
|
+
situationPageUrlProp = _ref.situationPageUrl,
|
|
20
19
|
baseUrlProp = _ref.baseUrl,
|
|
21
20
|
downloadProp = _ref.download,
|
|
22
21
|
situationResRechangeProp = _ref.situationResRechange,
|
|
23
22
|
taskHandleItemProp = _ref.taskHandleItem;
|
|
24
|
-
var _React$useState = React.useState(false),
|
|
25
|
-
hasSituation = _React$useState[0],
|
|
26
|
-
setHasSituation = _React$useState[1];
|
|
27
|
-
React.useEffect(function () {
|
|
28
|
-
var stepList = stepListProp;
|
|
29
|
-
if (stepList) {
|
|
30
|
-
var found = stepList.find(function (item) {
|
|
31
|
-
return item.fieldText === '智能导办';
|
|
32
|
-
});
|
|
33
|
-
setHasSituation(!!found);
|
|
34
|
-
}
|
|
35
|
-
}, []);
|
|
36
23
|
return /*#__PURE__*/React.createElement("div", {
|
|
37
24
|
className: "materials-content"
|
|
38
|
-
},
|
|
25
|
+
}, situationPageUrlProp && /*#__PURE__*/React.createElement(_situation["default"], {
|
|
39
26
|
eventInfo: eventInfoProp,
|
|
40
|
-
stepList: stepListProp,
|
|
41
27
|
applicationId: applicationIdProp,
|
|
42
28
|
accessToken: accessTokenProp,
|
|
43
29
|
acctType: acctTypeProp,
|
|
44
30
|
finalMaterials: finalMaterialsProp,
|
|
45
31
|
declarationAppToken: declarationAppTokenProp,
|
|
46
|
-
|
|
32
|
+
situationPageUrl: situationPageUrlProp,
|
|
47
33
|
situationResRechange: situationResRechangeProp,
|
|
48
34
|
taskHandleItem: taskHandleItemProp
|
|
49
35
|
}), /*#__PURE__*/React.createElement(_materialsList["default"], {
|
|
@@ -2,13 +2,12 @@ import * as React from 'react';
|
|
|
2
2
|
import './situation.scss';
|
|
3
3
|
export interface SituationProps {
|
|
4
4
|
eventInfo?: any;
|
|
5
|
-
stepList?: any[];
|
|
6
5
|
applicationId?: string;
|
|
7
6
|
accessToken?: string;
|
|
8
7
|
acctType?: string;
|
|
9
8
|
finalMaterials?: any[];
|
|
10
9
|
declarationAppToken?: string;
|
|
11
|
-
|
|
10
|
+
situationPageUrl?: string;
|
|
12
11
|
taskHandleItem?: string;
|
|
13
12
|
situationResRechange?: (data: any) => void;
|
|
14
13
|
}
|
|
@@ -11,13 +11,12 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
11
11
|
|
|
12
12
|
var Situation = function Situation(_ref) {
|
|
13
13
|
var eventInfoProp = _ref.eventInfo,
|
|
14
|
-
stepListProp = _ref.stepList,
|
|
15
14
|
applicationIdProp = _ref.applicationId,
|
|
16
15
|
accessTokenProp = _ref.accessToken,
|
|
17
16
|
acctTypeProp = _ref.acctType,
|
|
18
17
|
finalMaterialsProp = _ref.finalMaterials,
|
|
19
18
|
declarationAppTokenProp = _ref.declarationAppToken,
|
|
20
|
-
|
|
19
|
+
situationPageUrlProp = _ref.situationPageUrl,
|
|
21
20
|
taskHandleItemProp = _ref.taskHandleItem,
|
|
22
21
|
situationResRechangeProp = _ref.situationResRechange;
|
|
23
22
|
var _React$useState = React.useState('说明:因个人情况不同上交材料不同,可通过情形选择查看必须上传的材料!'),
|
|
@@ -36,19 +35,9 @@ var Situation = function Situation(_ref) {
|
|
|
36
35
|
};
|
|
37
36
|
}, []);
|
|
38
37
|
var initPage = function initPage() {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return item.name === '智能导办';
|
|
43
|
-
});
|
|
44
|
-
if (situationPage !== null && situationPage !== void 0 && situationPage.link && declarePageProp) {
|
|
45
|
-
var applicationId = applicationIdProp;
|
|
46
|
-
var access_token = accessTokenProp;
|
|
47
|
-
var acctType = acctTypeProp;
|
|
48
|
-
var finalLink = declarePageProp + "/preview.html?pageID=" + situationPage.id;
|
|
49
|
-
var url = finalLink + "&isFirst=1&isReCheck=1&applicationId=" + applicationId + "&access_token=" + access_token + "&acctType=" + acctType;
|
|
50
|
-
setIframeSrc(url);
|
|
51
|
-
}
|
|
38
|
+
if (!situationPageUrlProp) return;
|
|
39
|
+
var url = situationPageUrlProp + "&isFirst=1&isReCheck=1";
|
|
40
|
+
setIframeSrc(url);
|
|
52
41
|
};
|
|
53
42
|
var getMessage = function getMessage(e) {
|
|
54
43
|
var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData'];
|
|
@@ -5,7 +5,6 @@ exports.__esModule = true;
|
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var React = _interopRequireWildcard(require("react"));
|
|
7
7
|
require("./result.scss");
|
|
8
|
-
var _bg = _interopRequireDefault(require("../imgs/bg2.png"));
|
|
9
8
|
var _icon = _interopRequireDefault(require("../imgs/icon1.png"));
|
|
10
9
|
var _icon2 = _interopRequireDefault(require("../imgs/icon2.png"));
|
|
11
10
|
var _icon3 = _interopRequireDefault(require("../imgs/icon3.png"));
|
|
@@ -46,7 +45,7 @@ var Result = function Result(_ref) {
|
|
|
46
45
|
}, item.scene), /*#__PURE__*/React.createElement("div", {
|
|
47
46
|
className: "info-con",
|
|
48
47
|
style: {
|
|
49
|
-
backgroundImage: "url(
|
|
48
|
+
backgroundImage: "url(https://zwfwpt.sxzwfw.gov.cn:11001/fis/18a78d3d488-true/master/18b4752f107/2026/5/2059443890220503042/bg2.png)"
|
|
50
49
|
}
|
|
51
50
|
}, /*#__PURE__*/React.createElement("div", {
|
|
52
51
|
className: "info-title"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
.info-con {
|
|
25
25
|
width: 100%;
|
|
26
|
-
height:
|
|
26
|
+
height: 270px;
|
|
27
27
|
background-size: 100% 100%;
|
|
28
28
|
|
|
29
29
|
.info-title {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.info-list {
|
|
49
|
-
margin:
|
|
49
|
+
margin: 35px 30px 0;
|
|
50
50
|
|
|
51
51
|
.info-item {
|
|
52
52
|
display: flex;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="375" height="270" viewBox="0 0 375 270"><defs><linearGradient x1="0.9229974150657654" y1="0.5690524578094482" x2="-0.17019593931065616" y2="0.18000713980631639" id="master_svg0_8_01317"><stop offset="0%" stop-color="#7BB2FF" stop-opacity="1"/><stop offset="46.25856578350067%" stop-color="#3385F7" stop-opacity="0.800000011920929"/><stop offset="100%" stop-color="#03D1F1" stop-opacity="1"/></linearGradient><linearGradient x1="1" y1="0.6824562549591064" x2="-0.12613178203182815" y2="0.08365561903770147" id="master_svg1_8_01331"><stop offset="0%" stop-color="#FFFFFF" stop-opacity="1"/><stop offset="97.99996614456177%" stop-color="#FFFFFF" stop-opacity="1"/></linearGradient><mask id="master_svg2_498_43654" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="-63" y="-70" width="623" height="528"><rect x="0" y="0" width="375" height="270" rx="0" fill="url(#master_svg1_8_01331)" fill-opacity="1" style="mix-blend-mode:passthrough"/></mask><linearGradient x1="0" y1="0.4827450215816498" x2="0.6412902474403382" y2="0.4399974048137665" id="master_svg3_28_01460"><stop offset="0%" stop-color="#78B0FF" stop-opacity="1"/><stop offset="100%" stop-color="#78B0FF" stop-opacity="0"/></linearGradient><linearGradient x1="0" y1="0.4827450215816498" x2="1.0357004404067993" y2="0.5265340805053711" id="master_svg4_8_01328"><stop offset="0%" stop-color="#78B0FF" stop-opacity="1"/><stop offset="100%" stop-color="#78B0FF" stop-opacity="0"/></linearGradient></defs><rect x="0" y="0" width="375" height="270" rx="0" fill="url(#master_svg0_8_01317)" fill-opacity="1" style="mix-blend-mode:passthrough"/><g mask="url(#master_svg2_498_43654)"><ellipse cx="0.5" cy="132.5" rx="63.5" ry="63.5" fill="#FFFFFF" fill-opacity="1" style="opacity:0.20000000298023224;"/><ellipse cx="579" cy="39" rx="109" ry="109" fill="url(#master_svg3_28_01460)" fill-opacity="1" transform="matrix(0,1,-1,0,400,-540)"/><ellipse cx="697.5" cy="320.5" rx="137.5" ry="137.5" fill="url(#master_svg4_8_01328)" fill-opacity="1" transform="matrix(0,1,-1,0,743,-377)"/></g></svg>
|
|
@@ -5,6 +5,7 @@ export interface GuideProps {
|
|
|
5
5
|
onNextStep?: (action: string) => void;
|
|
6
6
|
/** Whether to disable the prev/next buttons (coming from authorization page) */
|
|
7
7
|
cantNext?: boolean;
|
|
8
|
+
hasPrevious?: boolean;
|
|
8
9
|
/** Task handle item code */
|
|
9
10
|
taskHandleItem?: string;
|
|
10
11
|
/** Access token */
|
|
@@ -19,12 +20,10 @@ export interface GuideProps {
|
|
|
19
20
|
applicationId?: string;
|
|
20
21
|
/** Final materials after intelligent guidance */
|
|
21
22
|
finalMaterials?: object[];
|
|
22
|
-
/** Step list */
|
|
23
|
-
stepList?: object[];
|
|
24
23
|
/** Declaration app token */
|
|
25
24
|
declarationAppToken?: string;
|
|
26
25
|
/** Declare page URL */
|
|
27
|
-
|
|
26
|
+
situationPageUrl?: string;
|
|
28
27
|
/** Base URL */
|
|
29
28
|
baseUrl?: string;
|
|
30
29
|
/** Download handler */
|
|
@@ -16,7 +16,7 @@ var _processImg = _interopRequireDefault(require("./compoents/processImg"));
|
|
|
16
16
|
var _accept = _interopRequireDefault(require("./compoents/accept"));
|
|
17
17
|
var _places = _interopRequireDefault(require("./compoents/places"));
|
|
18
18
|
var _result = _interopRequireDefault(require("./compoents/result"));
|
|
19
|
-
var _commonBg = _interopRequireDefault(require("./imgs/commonBg.
|
|
19
|
+
var _commonBg = _interopRequireDefault(require("./imgs/commonBg.svg"));
|
|
20
20
|
var _comment = _interopRequireDefault(require("./imgs/comment.png"));
|
|
21
21
|
var _share = _interopRequireDefault(require("./imgs/share.png"));
|
|
22
22
|
var _download = _interopRequireDefault(require("./imgs/download.png"));
|
|
@@ -34,6 +34,8 @@ var Guide = function Guide(_ref) {
|
|
|
34
34
|
var onNextStep = _ref.onNextStep,
|
|
35
35
|
_ref$cantNext = _ref.cantNext,
|
|
36
36
|
cantNext = _ref$cantNext === void 0 ? false : _ref$cantNext,
|
|
37
|
+
_ref$hasPrevious = _ref.hasPrevious,
|
|
38
|
+
hasPrevious = _ref$hasPrevious === void 0 ? false : _ref$hasPrevious,
|
|
37
39
|
taskHandleItem = _ref.taskHandleItem,
|
|
38
40
|
accessToken = _ref.accessToken,
|
|
39
41
|
eventInfoProp = _ref.eventInfo,
|
|
@@ -41,9 +43,8 @@ var Guide = function Guide(_ref) {
|
|
|
41
43
|
agentInfo = _ref.agentInfo,
|
|
42
44
|
applicationId = _ref.applicationId,
|
|
43
45
|
finalMaterials = _ref.finalMaterials,
|
|
44
|
-
stepList = _ref.stepList,
|
|
45
46
|
declarationAppToken = _ref.declarationAppToken,
|
|
46
|
-
|
|
47
|
+
situationPageUrl = _ref.situationPageUrl,
|
|
47
48
|
baseUrl = _ref.baseUrl,
|
|
48
49
|
download = _ref.download,
|
|
49
50
|
situationResRechange = _ref.situationResRechange;
|
|
@@ -267,11 +268,9 @@ var Guide = function Guide(_ref) {
|
|
|
267
268
|
className: "loading-text"
|
|
268
269
|
}, "\u52A0\u8F7D\u4E2D...")), !canHandle && !pageLoading && /*#__PURE__*/React.createElement("div", {
|
|
269
270
|
className: "guide-empty"
|
|
270
|
-
}, "\u6682\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u4E8B\u9879"), !pageLoading && canHandle && /*#__PURE__*/React.createElement("
|
|
271
|
+
}, "\u6682\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u4E8B\u9879"), !pageLoading && canHandle && /*#__PURE__*/React.createElement("img", {
|
|
271
272
|
className: "topBg",
|
|
272
|
-
|
|
273
|
-
backgroundImage: "url(" + _commonBg["default"] + ")"
|
|
274
|
-
}
|
|
273
|
+
src: _commonBg["default"]
|
|
275
274
|
}), !pageLoading && canHandle && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
276
275
|
className: "container"
|
|
277
276
|
}, /*#__PURE__*/React.createElement(_eventInfo["default"], {
|
|
@@ -283,13 +282,12 @@ var Guide = function Guide(_ref) {
|
|
|
283
282
|
onTabsChange: changeTab
|
|
284
283
|
}), tabIndex === 0 && /*#__PURE__*/React.createElement(_materials["default"], {
|
|
285
284
|
eventInfo: eventInfoProp,
|
|
286
|
-
stepList: stepList,
|
|
287
285
|
applicationId: applicationId,
|
|
288
286
|
accessToken: accessToken,
|
|
289
287
|
acctType: acctType,
|
|
290
288
|
finalMaterials: finalMaterials,
|
|
291
289
|
declarationAppToken: declarationAppToken,
|
|
292
|
-
|
|
290
|
+
situationPageUrl: situationPageUrl,
|
|
293
291
|
baseUrl: baseUrl,
|
|
294
292
|
download: download,
|
|
295
293
|
situationResRechange: situationResRechange,
|
|
@@ -365,7 +363,7 @@ var Guide = function Guide(_ref) {
|
|
|
365
363
|
className: "name"
|
|
366
364
|
}, "\u4E0B\u8F7D"))), /*#__PURE__*/React.createElement("div", {
|
|
367
365
|
className: "right"
|
|
368
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
366
|
+
}, hasPrevious && /*#__PURE__*/React.createElement("div", {
|
|
369
367
|
className: "right-btn",
|
|
370
368
|
onClick: prepStep,
|
|
371
369
|
disabled: cantNext
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.guide-wrapper {
|
|
2
2
|
background-color: #f7f7f7;
|
|
3
3
|
min-height: 100vh;
|
|
4
|
+
overflow: hidden;
|
|
4
5
|
|
|
5
6
|
.guide-loading {
|
|
6
7
|
display: flex;
|
|
@@ -21,15 +22,12 @@
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
.topBg {
|
|
24
|
-
|
|
25
|
-
height:
|
|
26
|
-
background-size: 100% 100%;
|
|
27
|
-
background-repeat: no-repeat;
|
|
28
|
-
background-position-y: -80px;
|
|
25
|
+
transform: scaleX(5.5);
|
|
26
|
+
height: 180px;
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
.container {
|
|
32
|
-
margin-top: -
|
|
30
|
+
margin-top: -170px;
|
|
33
31
|
width: 100%;
|
|
34
32
|
padding: 16px 14px;
|
|
35
33
|
box-sizing: border-box;
|
package/lowcode/guide/meta.ts
CHANGED
|
@@ -49,6 +49,23 @@ const GuideMeta: IPublicTypeComponentMetadata = {
|
|
|
49
49
|
"initialValue": false
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
+
{
|
|
53
|
+
"title": {
|
|
54
|
+
"label": {
|
|
55
|
+
"type": "i18n",
|
|
56
|
+
"en-US": "hasPrevious",
|
|
57
|
+
"zh-CN": "hasPrevious"
|
|
58
|
+
},
|
|
59
|
+
"tip": "hasPrevious"
|
|
60
|
+
},
|
|
61
|
+
"name": "hasPrevious",
|
|
62
|
+
"description": "has Previous btn",
|
|
63
|
+
"setter": {
|
|
64
|
+
"componentName": "BoolSetter",
|
|
65
|
+
"isRequired": false,
|
|
66
|
+
"initialValue": false
|
|
67
|
+
}
|
|
68
|
+
},
|
|
52
69
|
{
|
|
53
70
|
"title": {
|
|
54
71
|
"label": {
|
|
@@ -169,7 +186,7 @@ const GuideMeta: IPublicTypeComponentMetadata = {
|
|
|
169
186
|
"initialValue": ""
|
|
170
187
|
}
|
|
171
188
|
},
|
|
172
|
-
|
|
189
|
+
|
|
173
190
|
{
|
|
174
191
|
"title": {
|
|
175
192
|
"label": {
|
|
@@ -203,38 +220,6 @@ const GuideMeta: IPublicTypeComponentMetadata = {
|
|
|
203
220
|
}
|
|
204
221
|
},
|
|
205
222
|
|
|
206
|
-
{
|
|
207
|
-
"title": {
|
|
208
|
-
"label": {
|
|
209
|
-
"type": "i18n",
|
|
210
|
-
"en-US": "stepList",
|
|
211
|
-
"zh-CN": "stepList"
|
|
212
|
-
},
|
|
213
|
-
"tip": "stepList | Step list"
|
|
214
|
-
},
|
|
215
|
-
"name": "stepList",
|
|
216
|
-
"description": "Step list",
|
|
217
|
-
"setter": {
|
|
218
|
-
"componentName": "ArraySetter",
|
|
219
|
-
"props": {
|
|
220
|
-
"itemSetter": {
|
|
221
|
-
"componentName": "ObjectSetter",
|
|
222
|
-
"props": {
|
|
223
|
-
"config": {
|
|
224
|
-
"extraSetter": {
|
|
225
|
-
"componentName": "MixedSetter",
|
|
226
|
-
"isRequired": false,
|
|
227
|
-
"props": {}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
"isRequired": false,
|
|
232
|
-
"initialValue": {}
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
"initialValue": []
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
223
|
{
|
|
239
224
|
"title": {
|
|
240
225
|
"label": {
|
|
@@ -256,13 +241,13 @@ const GuideMeta: IPublicTypeComponentMetadata = {
|
|
|
256
241
|
"title": {
|
|
257
242
|
"label": {
|
|
258
243
|
"type": "i18n",
|
|
259
|
-
"en-US": "
|
|
260
|
-
"zh-CN": "
|
|
244
|
+
"en-US": "situationPageUrl",
|
|
245
|
+
"zh-CN": "situationPageUrl"
|
|
261
246
|
},
|
|
262
|
-
"tip": "
|
|
247
|
+
"tip": "situationPageUrl"
|
|
263
248
|
},
|
|
264
|
-
"name": "
|
|
265
|
-
"description": "
|
|
249
|
+
"name": "situationPageUrl",
|
|
250
|
+
"description": "situationPageUrl",
|
|
266
251
|
"setter": {
|
|
267
252
|
"componentName": "StringSetter",
|
|
268
253
|
"isRequired": false,
|