ydb-components-material 0.1.102 → 0.1.104
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/bg2.a0dfd810.png +0 -0
- package/build/docs/static/commonBg.83239798.png +0 -0
- package/build/docs/static/empty.7e69f478.png +0 -0
- package/build/docs/{umi.41b85bf9.css → umi.82ebabdb.css} +1 -1
- package/build/docs/umi.967ad73e.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/260814268e08d6e791032a27843cd215.png +0 -0
- package/build/lowcode/assets/3eb597ba730c5870765c2c09b7853d78.png +0 -0
- package/build/lowcode/assets/56daf7f96b7eadb3665f9b32b176a50e.png +0 -0
- 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/assets/260814268e08d6e791032a27843cd215.png +0 -0
- package/build/lowcode/render/default/assets/3eb597ba730c5870765c2c09b7853d78.png +0 -0
- package/build/lowcode/render/default/assets/56daf7f96b7eadb3665f9b32b176a50e.png +0 -0
- 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 +23 -23
- package/dist/BizComps.js.map +1 -1
- package/dist/assets/260814268e08d6e791032a27843cd215.png +0 -0
- package/dist/assets/3eb597ba730c5870765c2c09b7853d78.png +0 -0
- package/dist/assets/56daf7f96b7eadb3665f9b32b176a50e.png +0 -0
- package/es/components/check-loading/index.scss +3 -0
- package/es/components/guide/_utils.d.ts +4 -0
- package/es/components/guide/_utils.js +45 -0
- package/es/components/guide/comment.d.ts +9 -0
- package/es/components/guide/comment.js +97 -0
- package/es/components/guide/comment.scss +23 -0
- package/es/components/guide/compoents/accept.d.ts +7 -0
- package/es/components/guide/compoents/accept.js +35 -0
- package/es/components/guide/compoents/accept.scss +11 -0
- package/es/components/guide/compoents/basicInfo.d.ts +7 -0
- package/es/components/guide/compoents/basicInfo.js +81 -0
- package/es/components/guide/compoents/basicInfo.scss +32 -0
- package/es/components/guide/compoents/eventInfo.d.ts +8 -0
- package/es/components/guide/compoents/eventInfo.js +87 -0
- package/es/components/guide/compoents/eventInfo.scss +87 -0
- package/es/components/guide/compoents/guideTabs.d.ts +20 -0
- package/es/components/guide/compoents/guideTabs.js +55 -0
- package/es/components/guide/compoents/guideTabs.scss +39 -0
- package/es/components/guide/compoents/materials/checkPoint.d.ts +3 -0
- package/es/components/guide/compoents/materials/checkPoint.js +154 -0
- package/es/components/guide/compoents/materials/checkPoint.scss +120 -0
- package/es/components/guide/compoents/materials/materials.d.ts +22 -0
- package/es/components/guide/compoents/materials/materials.js +60 -0
- package/es/components/guide/compoents/materials/materials.scss +3 -0
- package/es/components/guide/compoents/materials/materialsList.d.ts +11 -0
- package/es/components/guide/compoents/materials/materialsList.js +411 -0
- package/es/components/guide/compoents/materials/materialsList.scss +170 -0
- package/es/components/guide/compoents/materials/situation.d.ts +20 -0
- package/es/components/guide/compoents/materials/situation.js +152 -0
- package/es/components/guide/compoents/materials/situation.scss +63 -0
- package/es/components/guide/compoents/places.d.ts +7 -0
- package/es/components/guide/compoents/places.js +129 -0
- package/es/components/guide/compoents/places.scss +71 -0
- package/es/components/guide/compoents/processImg.d.ts +9 -0
- package/es/components/guide/compoents/processImg.js +149 -0
- package/es/components/guide/compoents/processImg.scss +88 -0
- package/es/components/guide/compoents/result.d.ts +7 -0
- package/es/components/guide/compoents/result.js +121 -0
- package/es/components/guide/compoents/result.scss +88 -0
- package/es/components/guide/imgs/bg1.png +0 -0
- package/es/components/guide/imgs/bg2.png +0 -0
- package/es/components/guide/imgs/bg22.png +0 -0
- package/es/components/guide/imgs/cant.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/comment.png +0 -0
- package/es/components/guide/imgs/commonBg.png +0 -0
- package/es/components/guide/imgs/down.png +0 -0
- package/es/components/guide/imgs/download.png +0 -0
- package/es/components/guide/imgs/empty.png +0 -0
- package/es/components/guide/imgs/icon1.png +0 -0
- package/es/components/guide/imgs/icon2.png +0 -0
- package/es/components/guide/imgs/icon3.png +0 -0
- package/es/components/guide/imgs/icon4.png +0 -0
- package/es/components/guide/imgs/iconA.png +0 -0
- package/es/components/guide/imgs/iconB.png +0 -0
- package/es/components/guide/imgs/iconC.png +0 -0
- package/es/components/guide/imgs/loading.gif +0 -0
- package/es/components/guide/imgs/mapMarker.png +0 -0
- package/es/components/guide/imgs/share.png +0 -0
- package/es/components/guide/imgs/tab_switch.png +0 -0
- package/es/components/guide/index.d.ts +48 -0
- package/es/components/guide/index.js +440 -0
- package/es/components/guide/index.scss +178 -0
- package/es/index.d.ts +4 -0
- package/es/index.js +2 -0
- package/es/style.js +3 -0
- package/lib/components/check-loading/index.scss +3 -0
- package/lib/components/guide/_utils.d.ts +4 -0
- package/lib/components/guide/_utils.js +52 -0
- package/lib/components/guide/comment.d.ts +9 -0
- package/lib/components/guide/comment.js +102 -0
- package/lib/components/guide/comment.scss +23 -0
- package/lib/components/guide/compoents/accept.d.ts +7 -0
- package/lib/components/guide/compoents/accept.js +40 -0
- package/lib/components/guide/compoents/accept.scss +11 -0
- package/lib/components/guide/compoents/basicInfo.d.ts +7 -0
- package/lib/components/guide/compoents/basicInfo.js +86 -0
- package/lib/components/guide/compoents/basicInfo.scss +32 -0
- package/lib/components/guide/compoents/eventInfo.d.ts +8 -0
- package/lib/components/guide/compoents/eventInfo.js +92 -0
- package/lib/components/guide/compoents/eventInfo.scss +87 -0
- package/lib/components/guide/compoents/guideTabs.d.ts +20 -0
- package/lib/components/guide/compoents/guideTabs.js +60 -0
- package/lib/components/guide/compoents/guideTabs.scss +39 -0
- package/lib/components/guide/compoents/materials/checkPoint.d.ts +3 -0
- package/lib/components/guide/compoents/materials/checkPoint.js +159 -0
- package/lib/components/guide/compoents/materials/checkPoint.scss +120 -0
- package/lib/components/guide/compoents/materials/materials.d.ts +22 -0
- package/lib/components/guide/compoents/materials/materials.js +66 -0
- package/lib/components/guide/compoents/materials/materials.scss +3 -0
- package/lib/components/guide/compoents/materials/materialsList.d.ts +11 -0
- package/lib/components/guide/compoents/materials/materialsList.js +416 -0
- package/lib/components/guide/compoents/materials/materialsList.scss +170 -0
- package/lib/components/guide/compoents/materials/situation.d.ts +20 -0
- package/lib/components/guide/compoents/materials/situation.js +156 -0
- package/lib/components/guide/compoents/materials/situation.scss +63 -0
- package/lib/components/guide/compoents/places.d.ts +7 -0
- package/lib/components/guide/compoents/places.js +135 -0
- package/lib/components/guide/compoents/places.scss +71 -0
- package/lib/components/guide/compoents/processImg.d.ts +9 -0
- package/lib/components/guide/compoents/processImg.js +155 -0
- package/lib/components/guide/compoents/processImg.scss +88 -0
- package/lib/components/guide/compoents/result.d.ts +7 -0
- package/lib/components/guide/compoents/result.js +127 -0
- package/lib/components/guide/compoents/result.scss +88 -0
- package/lib/components/guide/imgs/bg1.png +0 -0
- package/lib/components/guide/imgs/bg2.png +0 -0
- package/lib/components/guide/imgs/bg22.png +0 -0
- package/lib/components/guide/imgs/cant.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/comment.png +0 -0
- package/lib/components/guide/imgs/commonBg.png +0 -0
- package/lib/components/guide/imgs/down.png +0 -0
- package/lib/components/guide/imgs/download.png +0 -0
- package/lib/components/guide/imgs/empty.png +0 -0
- package/lib/components/guide/imgs/icon1.png +0 -0
- package/lib/components/guide/imgs/icon2.png +0 -0
- package/lib/components/guide/imgs/icon3.png +0 -0
- package/lib/components/guide/imgs/icon4.png +0 -0
- package/lib/components/guide/imgs/iconA.png +0 -0
- package/lib/components/guide/imgs/iconB.png +0 -0
- package/lib/components/guide/imgs/iconC.png +0 -0
- package/lib/components/guide/imgs/loading.gif +0 -0
- package/lib/components/guide/imgs/mapMarker.png +0 -0
- package/lib/components/guide/imgs/share.png +0 -0
- package/lib/components/guide/imgs/tab_switch.png +0 -0
- package/lib/components/guide/index.d.ts +48 -0
- package/lib/components/guide/index.js +445 -0
- package/lib/components/guide/index.scss +178 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +5 -1
- package/lib/style.js +3 -0
- package/lowcode/comment/meta.ts +86 -0
- package/lowcode/guide/meta.ts +483 -0
- package/lowcode_es/comment/meta.d.ts +22 -0
- package/lowcode_es/comment/meta.js +76 -0
- package/lowcode_es/guide/meta.d.ts +22 -0
- package/lowcode_es/guide/meta.js +455 -0
- package/lowcode_es/meta.js +4 -2
- package/lowcode_lib/comment/meta.d.ts +22 -0
- package/lowcode_lib/comment/meta.js +81 -0
- package/lowcode_lib/guide/meta.d.ts +22 -0
- package/lowcode_lib/guide/meta.js +460 -0
- package/lowcode_lib/meta.js +21 -19
- package/package.json +3 -3
- package/build/docs/umi.a65f236e.js +0 -1
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
import _Button from "@alifd/next/es/button";
|
|
2
|
+
import _Dialog from "@alifd/next/es/dialog";
|
|
3
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
|
+
import _Message from "@alifd/next/es/message";
|
|
5
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { setStorageItem } from "./_utils";
|
|
8
|
+
import GuideTabs from "./compoents/guideTabs";
|
|
9
|
+
import EventInfo from "./compoents/eventInfo";
|
|
10
|
+
import Materials from "./compoents/materials/materials";
|
|
11
|
+
import BasicInfo from "./compoents/basicInfo";
|
|
12
|
+
import ProcessImg from "./compoents/processImg";
|
|
13
|
+
import Accept from "./compoents/accept";
|
|
14
|
+
import Places from "./compoents/places";
|
|
15
|
+
import Result from "./compoents/result";
|
|
16
|
+
import topBg from "./imgs/commonBg.png";
|
|
17
|
+
import commentIcon from "./imgs/comment.png";
|
|
18
|
+
import shareIcon from "./imgs/share.png";
|
|
19
|
+
import downloadIcon from "./imgs/download.png";
|
|
20
|
+
import "./index.scss";
|
|
21
|
+
|
|
22
|
+
// TODO: html2canvas and jsPDF are available as dependencies
|
|
23
|
+
// import html2canvas from 'html2canvas';
|
|
24
|
+
// import { jsPDF } from 'jspdf';
|
|
25
|
+
|
|
26
|
+
// TODO: API imports not available
|
|
27
|
+
// import { getCityNameApi } from '@/api/business.js'
|
|
28
|
+
// import { getTyEventDetailApi, getFormValueApi } from '@/api/tyBusiness.js'
|
|
29
|
+
|
|
30
|
+
var Guide = function Guide(_ref) {
|
|
31
|
+
var onNextStep = _ref.onNextStep,
|
|
32
|
+
_ref$cantNext = _ref.cantNext,
|
|
33
|
+
cantNext = _ref$cantNext === void 0 ? false : _ref$cantNext,
|
|
34
|
+
standardItemId = _ref.standardItemId,
|
|
35
|
+
taskHandleItem = _ref.taskHandleItem,
|
|
36
|
+
accessToken = _ref.accessToken,
|
|
37
|
+
eventInfoProp = _ref.eventInfo,
|
|
38
|
+
acctType = _ref.acctType,
|
|
39
|
+
agentInfo = _ref.agentInfo,
|
|
40
|
+
applicationId = _ref.applicationId,
|
|
41
|
+
formData = _ref.formData,
|
|
42
|
+
formFieldNames = _ref.formFieldNames,
|
|
43
|
+
itemSituationRowUid = _ref.itemSituationRowUid,
|
|
44
|
+
workNo = _ref.workNo,
|
|
45
|
+
finalMaterials = _ref.finalMaterials,
|
|
46
|
+
filterMaterials = _ref.filterMaterials,
|
|
47
|
+
stepList = _ref.stepList,
|
|
48
|
+
declarationAppToken = _ref.declarationAppToken,
|
|
49
|
+
declarePage = _ref.declarePage,
|
|
50
|
+
baseUrl = _ref.baseUrl,
|
|
51
|
+
download = _ref.download,
|
|
52
|
+
situationResRechange = _ref.situationResRechange;
|
|
53
|
+
var _React$useState = React.useState(false),
|
|
54
|
+
pageLoading = _React$useState[0];
|
|
55
|
+
var _React$useState2 = React.useState(true),
|
|
56
|
+
canHandle = _React$useState2[0];
|
|
57
|
+
var _React$useState3 = React.useState(0),
|
|
58
|
+
tabIndex = _React$useState3[0],
|
|
59
|
+
setTabIndex = _React$useState3[1];
|
|
60
|
+
var _React$useState4 = React.useState(false),
|
|
61
|
+
popShow = _React$useState4[0],
|
|
62
|
+
setPopShow = _React$useState4[1];
|
|
63
|
+
var _React$useState5 = React.useState(false),
|
|
64
|
+
modalShow = _React$useState5[0],
|
|
65
|
+
setModalShow = _React$useState5[1];
|
|
66
|
+
var _React$useState6 = React.useState(false),
|
|
67
|
+
isAgree = _React$useState6[0],
|
|
68
|
+
setIsAgree = _React$useState6[1];
|
|
69
|
+
var _React$useState7 = React.useState(''),
|
|
70
|
+
agreementPrompt = _React$useState7[0],
|
|
71
|
+
setAgreementPrompt = _React$useState7[1];
|
|
72
|
+
var _React$useState8 = React.useState([]),
|
|
73
|
+
userAgreementList = _React$useState8[0],
|
|
74
|
+
setUserAgreementList = _React$useState8[1];
|
|
75
|
+
var _React$useState9 = React.useState(''),
|
|
76
|
+
userAgreement = _React$useState9[0],
|
|
77
|
+
setUserAgreement = _React$useState9[1];
|
|
78
|
+
var tabList = [{
|
|
79
|
+
label: '材料清单'
|
|
80
|
+
}, {
|
|
81
|
+
label: '事项信息'
|
|
82
|
+
}, {
|
|
83
|
+
label: '办事流程'
|
|
84
|
+
}, {
|
|
85
|
+
label: '受理条件'
|
|
86
|
+
}, {
|
|
87
|
+
label: '办事大厅'
|
|
88
|
+
}, {
|
|
89
|
+
label: '成效分析'
|
|
90
|
+
}];
|
|
91
|
+
React.useEffect(function () {
|
|
92
|
+
initUserNotice();
|
|
93
|
+
|
|
94
|
+
// TODO: getFormValueApi call – API not available
|
|
95
|
+
// this.getFormValueFun()
|
|
96
|
+
|
|
97
|
+
// Set page title
|
|
98
|
+
document.title = '办事指南';
|
|
99
|
+
|
|
100
|
+
// Auto fetch event info if params provided
|
|
101
|
+
if (standardItemId && taskHandleItem && accessToken) {
|
|
102
|
+
setStorageItem('declarationAppTokenTY', accessToken);
|
|
103
|
+
// TODO: getTyEventDetailApi(standardItemId, taskHandleItem)
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// TODO: if (opt.isAfterFace) this.$initNextStep('立即办理')
|
|
107
|
+
}, []);
|
|
108
|
+
|
|
109
|
+
// ============ 用户协议 ============
|
|
110
|
+
var initUserNotice = function initUserNotice() {
|
|
111
|
+
var _eventInfo$applicatio, _eventInfo$applicatio2;
|
|
112
|
+
var eventInfo = eventInfoProp;
|
|
113
|
+
if (!eventInfo) return;
|
|
114
|
+
if ((_eventInfo$applicatio = eventInfo.applicationUserAgreementBO) !== null && _eventInfo$applicatio !== void 0 && _eventInfo$applicatio.agreementContent) {
|
|
115
|
+
setAgreementPrompt(eventInfo.applicationUserAgreementBO.agreementPrompt);
|
|
116
|
+
setUserAgreementList(eventInfo.applicationUserAgreementBO.agreementContent);
|
|
117
|
+
setIsAgree(false);
|
|
118
|
+
} else {
|
|
119
|
+
setIsAgree(true);
|
|
120
|
+
}
|
|
121
|
+
if ((_eventInfo$applicatio2 = eventInfo.applicationUserNoticeBO) !== null && _eventInfo$applicatio2 !== void 0 && _eventInfo$applicatio2.userNotice) {
|
|
122
|
+
var userNotice = {
|
|
123
|
+
agreementName: '用户协议',
|
|
124
|
+
agreementDetail: eventInfo.applicationUserNoticeBO.userNotice
|
|
125
|
+
};
|
|
126
|
+
setUserAgreementList(function (prev) {
|
|
127
|
+
return [userNotice].concat(prev);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
var showAgree = function showAgree(item) {
|
|
132
|
+
setModalShow(false);
|
|
133
|
+
setUserAgreement(item.agreementDetail);
|
|
134
|
+
setPopShow(true);
|
|
135
|
+
};
|
|
136
|
+
var yesAgree = function yesAgree() {
|
|
137
|
+
setIsAgree(true);
|
|
138
|
+
setModalShow(false);
|
|
139
|
+
handleEvent();
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
// ============ 按钮操作 ============
|
|
143
|
+
var prepStep = function prepStep() {
|
|
144
|
+
// TODO: this.$initNextStep('上一步')
|
|
145
|
+
onNextStep === null || onNextStep === void 0 ? void 0 : onNextStep('上一步');
|
|
146
|
+
};
|
|
147
|
+
var goComment = function goComment() {
|
|
148
|
+
// TODO: uni.navigateTo({ url: '/pagesDeclare/guide/comment' })
|
|
149
|
+
_Message.show({
|
|
150
|
+
type: 'help',
|
|
151
|
+
content: '评价页面跳转未实现'
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
var goShare = function goShare() {
|
|
155
|
+
var href = window.location.href;
|
|
156
|
+
navigator.clipboard.writeText(href).then(function () {
|
|
157
|
+
_Message.success('已复制网址链接');
|
|
158
|
+
})["catch"](function () {
|
|
159
|
+
// Fallback
|
|
160
|
+
var textarea = document.createElement('textarea');
|
|
161
|
+
textarea.value = href;
|
|
162
|
+
document.body.appendChild(textarea);
|
|
163
|
+
textarea.select();
|
|
164
|
+
document.execCommand('copy');
|
|
165
|
+
document.body.removeChild(textarea);
|
|
166
|
+
_Message.success('已复制网址链接');
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
var goDownload = /*#__PURE__*/function () {
|
|
170
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
171
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
172
|
+
while (1) switch (_context.prev = _context.next) {
|
|
173
|
+
case 0:
|
|
174
|
+
// TODO: html2canvas download – not fully implemented
|
|
175
|
+
// const guideAll = document.getElementById('guideAll');
|
|
176
|
+
// const canvas = await html2canvas(guideAll, { scale: 2, useCORS: true, logging: false });
|
|
177
|
+
// const link = document.createElement('a');
|
|
178
|
+
// link.href = canvas.toDataURL('image/png');
|
|
179
|
+
// link.download = 'screenshot.png';
|
|
180
|
+
// link.click();
|
|
181
|
+
_Message.show({
|
|
182
|
+
type: 'help',
|
|
183
|
+
content: '下载功能待完善'
|
|
184
|
+
});
|
|
185
|
+
case 1:
|
|
186
|
+
case "end":
|
|
187
|
+
return _context.stop();
|
|
188
|
+
}
|
|
189
|
+
}, _callee);
|
|
190
|
+
}));
|
|
191
|
+
return function goDownload() {
|
|
192
|
+
return _ref2.apply(this, arguments);
|
|
193
|
+
};
|
|
194
|
+
}();
|
|
195
|
+
var changeTab = function changeTab(index) {
|
|
196
|
+
setTabIndex(index);
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
// ============ 立即办理 ============
|
|
200
|
+
var handleEvent = /*#__PURE__*/function () {
|
|
201
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
202
|
+
var eventInfo, _ref4, serviceObjectType, finalAcctType;
|
|
203
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
204
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
205
|
+
case 0:
|
|
206
|
+
if (isAgree) {
|
|
207
|
+
_context2.next = 1;
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
setModalShow(true);
|
|
211
|
+
return _context2.abrupt("return");
|
|
212
|
+
case 1:
|
|
213
|
+
eventInfo = eventInfoProp;
|
|
214
|
+
if (eventInfo) {
|
|
215
|
+
_context2.next = 2;
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
return _context2.abrupt("return");
|
|
219
|
+
case 2:
|
|
220
|
+
_ref4 = eventInfo.taskGeneralExtend || {}, serviceObjectType = _ref4.serviceObjectType;
|
|
221
|
+
if (serviceObjectType) {
|
|
222
|
+
_context2.next = 3;
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
_Dialog.confirm({
|
|
226
|
+
title: '提示',
|
|
227
|
+
content: '当前暂无匹配服务对象,无法继续办理,如需帮助请致电:0351-2366413',
|
|
228
|
+
locale: {
|
|
229
|
+
ok: '知道了'
|
|
230
|
+
},
|
|
231
|
+
footerActions: ['ok']
|
|
232
|
+
});
|
|
233
|
+
return _context2.abrupt("return");
|
|
234
|
+
case 3:
|
|
235
|
+
finalAcctType = '';
|
|
236
|
+
if (agentInfo) {
|
|
237
|
+
if (agentInfo.acctType === '10') finalAcctType = '1';else if (agentInfo.acctType === '20') finalAcctType = '2';
|
|
238
|
+
} else {
|
|
239
|
+
if (acctType === '10') finalAcctType = '1';else if (acctType === '20') finalAcctType = '2';
|
|
240
|
+
}
|
|
241
|
+
if (serviceObjectType.split(',').includes(finalAcctType)) {
|
|
242
|
+
_context2.next = 4;
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
if (finalAcctType === '1') {
|
|
246
|
+
_Message.warning('该事项不允许个人用户办理');
|
|
247
|
+
} else {
|
|
248
|
+
_Message.warning('该事项不允许法人用户办理');
|
|
249
|
+
}
|
|
250
|
+
return _context2.abrupt("return");
|
|
251
|
+
case 4:
|
|
252
|
+
// TODO: face verification flow
|
|
253
|
+
// const isFace = getStorageItem('isFace');
|
|
254
|
+
// if (isFace) { ... navigate to face auth ... }
|
|
255
|
+
// TODO: jWeixin / my environment check
|
|
256
|
+
|
|
257
|
+
onNextStep === null || onNextStep === void 0 ? void 0 : onNextStep('立即办理');
|
|
258
|
+
case 5:
|
|
259
|
+
case "end":
|
|
260
|
+
return _context2.stop();
|
|
261
|
+
}
|
|
262
|
+
}, _callee2);
|
|
263
|
+
}));
|
|
264
|
+
return function handleEvent() {
|
|
265
|
+
return _ref3.apply(this, arguments);
|
|
266
|
+
};
|
|
267
|
+
}();
|
|
268
|
+
|
|
269
|
+
// ============ API ============
|
|
270
|
+
// TODO: getFormValueFun – API calls not available
|
|
271
|
+
// TODO: getTyEventDetailFun – API calls not available
|
|
272
|
+
|
|
273
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
274
|
+
id: "guideAll",
|
|
275
|
+
className: "guide-wrapper"
|
|
276
|
+
}, pageLoading && /*#__PURE__*/React.createElement("div", {
|
|
277
|
+
className: "guide-loading"
|
|
278
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
279
|
+
className: "loading-text"
|
|
280
|
+
}, "\u52A0\u8F7D\u4E2D...")), !canHandle && !pageLoading && /*#__PURE__*/React.createElement("div", {
|
|
281
|
+
className: "guide-empty"
|
|
282
|
+
}, "\u6682\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u4E8B\u9879"), !pageLoading && canHandle && /*#__PURE__*/React.createElement("div", {
|
|
283
|
+
className: "topBg",
|
|
284
|
+
style: {
|
|
285
|
+
backgroundImage: "url(" + topBg + ")"
|
|
286
|
+
}
|
|
287
|
+
}), !pageLoading && canHandle && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
288
|
+
className: "container"
|
|
289
|
+
}, /*#__PURE__*/React.createElement(EventInfo, {
|
|
290
|
+
eventInfo: eventInfoProp,
|
|
291
|
+
filterMaterials: filterMaterials
|
|
292
|
+
}), /*#__PURE__*/React.createElement(GuideTabs, {
|
|
293
|
+
tabsList: tabList,
|
|
294
|
+
isSticky: false,
|
|
295
|
+
curTab: tabIndex,
|
|
296
|
+
onTabsChange: changeTab
|
|
297
|
+
}), tabIndex === 0 && /*#__PURE__*/React.createElement(Materials, {
|
|
298
|
+
eventInfo: eventInfoProp,
|
|
299
|
+
stepList: stepList,
|
|
300
|
+
applicationId: applicationId,
|
|
301
|
+
accessToken: accessToken,
|
|
302
|
+
acctType: acctType,
|
|
303
|
+
formData: formData,
|
|
304
|
+
finalMaterials: finalMaterials,
|
|
305
|
+
formFieldNames: formFieldNames,
|
|
306
|
+
itemSituationRowUid: itemSituationRowUid,
|
|
307
|
+
workNo: workNo,
|
|
308
|
+
declarationAppToken: declarationAppToken,
|
|
309
|
+
declarePage: declarePage,
|
|
310
|
+
baseUrl: baseUrl,
|
|
311
|
+
download: download,
|
|
312
|
+
situationResRechange: situationResRechange,
|
|
313
|
+
taskHandleItem: taskHandleItem
|
|
314
|
+
}), tabIndex === 1 && /*#__PURE__*/React.createElement(BasicInfo, {
|
|
315
|
+
eventInfo: eventInfoProp
|
|
316
|
+
}), tabIndex === 2 && /*#__PURE__*/React.createElement(ProcessImg, {
|
|
317
|
+
eventInfo: eventInfoProp,
|
|
318
|
+
declarationAppToken: declarationAppToken,
|
|
319
|
+
baseUrl: baseUrl
|
|
320
|
+
}), tabIndex === 3 && /*#__PURE__*/React.createElement(Accept, {
|
|
321
|
+
eventInfo: eventInfoProp
|
|
322
|
+
}), tabIndex === 4 && /*#__PURE__*/React.createElement(Places, {
|
|
323
|
+
eventInfo: eventInfoProp
|
|
324
|
+
}), tabIndex === 5 && /*#__PURE__*/React.createElement(Result, {
|
|
325
|
+
eventInfo: eventInfoProp
|
|
326
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
327
|
+
className: "bottom-btn"
|
|
328
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
329
|
+
className: "top"
|
|
330
|
+
}, userAgreementList.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
331
|
+
className: "agreement-row"
|
|
332
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
333
|
+
className: "agreement-checkbox"
|
|
334
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
335
|
+
type: "checkbox",
|
|
336
|
+
checked: isAgree,
|
|
337
|
+
onChange: function onChange(e) {
|
|
338
|
+
return setIsAgree(e.target.checked);
|
|
339
|
+
}
|
|
340
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
341
|
+
className: "agreement-label-text"
|
|
342
|
+
}, agreementPrompt)), /*#__PURE__*/React.createElement("div", {
|
|
343
|
+
className: "agreement-tip-slot"
|
|
344
|
+
}, userAgreementList.map(function (item, index) {
|
|
345
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
346
|
+
key: index,
|
|
347
|
+
className: "agreement-item",
|
|
348
|
+
onClick: function onClick() {
|
|
349
|
+
return showAgree(item);
|
|
350
|
+
}
|
|
351
|
+
}, "\u300A", item.agreementName, "\u300B");
|
|
352
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
353
|
+
className: "bottom"
|
|
354
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
355
|
+
className: "left"
|
|
356
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
357
|
+
className: "leftBtn",
|
|
358
|
+
onClick: goComment
|
|
359
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
360
|
+
className: "btn-icon",
|
|
361
|
+
src: commentIcon,
|
|
362
|
+
alt: "\u8BC4\u4EF7"
|
|
363
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
364
|
+
className: "name"
|
|
365
|
+
}, "\u8BC4\u4EF7\u6307\u5357")), /*#__PURE__*/React.createElement("div", {
|
|
366
|
+
className: "leftBtn",
|
|
367
|
+
onClick: goShare
|
|
368
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
369
|
+
className: "btn-icon",
|
|
370
|
+
src: shareIcon,
|
|
371
|
+
alt: "\u5206\u4EAB"
|
|
372
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
373
|
+
className: "name"
|
|
374
|
+
}, "\u5206\u4EAB")), /*#__PURE__*/React.createElement("div", {
|
|
375
|
+
className: "leftBtn",
|
|
376
|
+
onClick: goDownload
|
|
377
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
378
|
+
className: "btn-icon",
|
|
379
|
+
src: downloadIcon,
|
|
380
|
+
alt: "\u4E0B\u8F7D"
|
|
381
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
382
|
+
className: "name"
|
|
383
|
+
}, "\u4E0B\u8F7D"))), /*#__PURE__*/React.createElement("div", {
|
|
384
|
+
className: "right"
|
|
385
|
+
}, /*#__PURE__*/React.createElement(_Button, {
|
|
386
|
+
className: "right-btn",
|
|
387
|
+
onClick: prepStep,
|
|
388
|
+
disabled: cantNext
|
|
389
|
+
}, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/React.createElement(_Button, {
|
|
390
|
+
type: "primary",
|
|
391
|
+
className: "right-btn",
|
|
392
|
+
disabled: !canHandle,
|
|
393
|
+
onClick: handleEvent,
|
|
394
|
+
style: {
|
|
395
|
+
color: 'white',
|
|
396
|
+
borderWidth: '0px',
|
|
397
|
+
backgroundImage: 'linear-gradient(90deg, rgb(118, 173, 250), rgb(22, 120, 255))'
|
|
398
|
+
}
|
|
399
|
+
}, "\u7ACB\u5373\u529E\u7406"))))), /*#__PURE__*/React.createElement(_Dialog, {
|
|
400
|
+
visible: popShow,
|
|
401
|
+
onClose: function onClose() {
|
|
402
|
+
return setPopShow(false);
|
|
403
|
+
},
|
|
404
|
+
footer: false
|
|
405
|
+
// closeable={false}
|
|
406
|
+
,
|
|
407
|
+
width: "90%"
|
|
408
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
409
|
+
className: "agree-detail",
|
|
410
|
+
dangerouslySetInnerHTML: {
|
|
411
|
+
__html: userAgreement
|
|
412
|
+
}
|
|
413
|
+
})), /*#__PURE__*/React.createElement(_Dialog, {
|
|
414
|
+
visible: modalShow,
|
|
415
|
+
title: "\u8BF7\u9605\u8BFB\u5E76\u540C\u610F\u4EE5\u4E0B\u534F\u8BAE",
|
|
416
|
+
locale: {
|
|
417
|
+
ok: '同意并继续',
|
|
418
|
+
cancel: '不同意'
|
|
419
|
+
},
|
|
420
|
+
onOk: yesAgree,
|
|
421
|
+
onCancel: function onCancel() {
|
|
422
|
+
return setModalShow(false);
|
|
423
|
+
},
|
|
424
|
+
onClose: function onClose() {
|
|
425
|
+
return setModalShow(false);
|
|
426
|
+
}
|
|
427
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
428
|
+
className: "agree"
|
|
429
|
+
}, agreementPrompt, userAgreementList.map(function (item, index) {
|
|
430
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
431
|
+
key: index,
|
|
432
|
+
className: "agreement-sub-item",
|
|
433
|
+
onClick: function onClick() {
|
|
434
|
+
return showAgree(item);
|
|
435
|
+
}
|
|
436
|
+
}, "\u300A", item.agreementName, "\u300B");
|
|
437
|
+
}))));
|
|
438
|
+
};
|
|
439
|
+
Guide.displayName = 'Guide';
|
|
440
|
+
export default Guide;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
.guide-wrapper {
|
|
2
|
+
background-color: #f7f7f7;
|
|
3
|
+
min-height: 100vh;
|
|
4
|
+
|
|
5
|
+
.guide-loading {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
height: 100vh;
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
color: #999;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.guide-empty {
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
|
+
height: 50vh;
|
|
19
|
+
font-size: 16px;
|
|
20
|
+
color: #999;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.topBg {
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 270px;
|
|
26
|
+
background-size: 100% 100%;
|
|
27
|
+
background-repeat: no-repeat;
|
|
28
|
+
background-position-y: -80px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.container {
|
|
32
|
+
margin-top: -270px;
|
|
33
|
+
width: 100%;
|
|
34
|
+
padding: 16px 14px;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
padding-bottom: 380px;
|
|
37
|
+
position: relative;
|
|
38
|
+
z-index: 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.bottom-btn {
|
|
42
|
+
z-index: 3;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
position: fixed;
|
|
45
|
+
bottom: 0;
|
|
46
|
+
left: 0;
|
|
47
|
+
width: 100%;
|
|
48
|
+
background-color: #fff;
|
|
49
|
+
padding: 10px 0;
|
|
50
|
+
box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.1);
|
|
51
|
+
padding: 10px;
|
|
52
|
+
|
|
53
|
+
.top {
|
|
54
|
+
.agreement-row {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
align-items: flex-start;
|
|
58
|
+
margin-bottom: 12px;
|
|
59
|
+
|
|
60
|
+
.agreement-checkbox {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: 6px;
|
|
64
|
+
font-size: 13px;
|
|
65
|
+
color: #333;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.agreement-label-text {
|
|
70
|
+
user-select: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.agreement-tip-slot {
|
|
75
|
+
margin-top: 4px;
|
|
76
|
+
color: #1678FF;
|
|
77
|
+
font-size: 12px;
|
|
78
|
+
padding-left: 10px;
|
|
79
|
+
display: flex;
|
|
80
|
+
justify-content: flex-start;
|
|
81
|
+
align-items: center;
|
|
82
|
+
flex-wrap: wrap;
|
|
83
|
+
|
|
84
|
+
.agreement-item {
|
|
85
|
+
margin: 2px 0;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
&:hover {
|
|
88
|
+
text-decoration: underline;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.bottom {
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: space-around;
|
|
97
|
+
align-items: center;
|
|
98
|
+
gap: 10px;
|
|
99
|
+
|
|
100
|
+
.left {
|
|
101
|
+
display: flex;
|
|
102
|
+
justify-content: space-around;
|
|
103
|
+
align-items: center;
|
|
104
|
+
gap: 10px;
|
|
105
|
+
|
|
106
|
+
.leftBtn {
|
|
107
|
+
display: flex;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
align-items: center;
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
font-size: 14px;
|
|
112
|
+
color: #999999;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
|
|
115
|
+
.btn-icon {
|
|
116
|
+
width: 20px;
|
|
117
|
+
height: 20px;
|
|
118
|
+
margin-bottom: 2px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.name {
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
text-overflow: ellipsis;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.right {
|
|
130
|
+
flex: 1;
|
|
131
|
+
display: flex;
|
|
132
|
+
justify-content: flex-end;
|
|
133
|
+
align-items: center;
|
|
134
|
+
gap: 12px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.agree-detail {
|
|
140
|
+
background: #ffffff;
|
|
141
|
+
padding: 15px;
|
|
142
|
+
max-height: 70vh;
|
|
143
|
+
overflow-y: scroll;
|
|
144
|
+
border-radius: 10px;
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
line-height: 22px;
|
|
147
|
+
color: #333333;
|
|
148
|
+
text-indent: 2em;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.agree {
|
|
152
|
+
.agreement-sub-item {
|
|
153
|
+
margin: 2px 0;
|
|
154
|
+
margin-top: 4px;
|
|
155
|
+
color: #1678FF;
|
|
156
|
+
font-size: 12px;
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
&:hover {
|
|
160
|
+
text-decoration: underline;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.right-btn {
|
|
166
|
+
color: #323233;
|
|
167
|
+
background-color: #fff;
|
|
168
|
+
border-color: #ebedf0;
|
|
169
|
+
border-width: 1px;
|
|
170
|
+
border-style: solid;
|
|
171
|
+
padding: 0 12px;
|
|
172
|
+
font-size: 14px;
|
|
173
|
+
flex: 1;
|
|
174
|
+
border-radius: 100px;
|
|
175
|
+
height: 40px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
}
|
package/es/index.d.ts
CHANGED
|
@@ -47,5 +47,9 @@ export type { FileListPreviewProps } from './components/file-list-preview';
|
|
|
47
47
|
export { default as FileListPreview } from './components/file-list-preview';
|
|
48
48
|
export type { DragDropListProps } from './components/drag-drop';
|
|
49
49
|
export { default as DragDropList } from './components/drag-drop';
|
|
50
|
+
export type { GuideProps } from './components/guide';
|
|
51
|
+
export { default as Guide } from './components/guide';
|
|
52
|
+
export type { CommentProps } from './components/guide/comment';
|
|
53
|
+
export { default as Comment } from './components/guide/comment';
|
|
50
54
|
declare const bizCssPrefix = "bizpack";
|
|
51
55
|
export { bizCssPrefix };
|
package/es/index.js
CHANGED
|
@@ -29,5 +29,7 @@ export { default as FileList } from "./components/file-list";
|
|
|
29
29
|
export { default as SubmitType } from "./components/submit-type";
|
|
30
30
|
export { default as FileListPreview } from "./components/file-list-preview";
|
|
31
31
|
export { default as DragDropList } from "./components/drag-drop";
|
|
32
|
+
export { default as Guide } from "./components/guide";
|
|
33
|
+
export { default as Comment } from "./components/guide/comment";
|
|
32
34
|
var bizCssPrefix = 'bizpack';
|
|
33
35
|
export { bizCssPrefix };
|
package/es/style.js
CHANGED
|
@@ -4,4 +4,7 @@ import '@alifd/next/es/radio/style';
|
|
|
4
4
|
import '@alifd/next/es/checkbox/style';
|
|
5
5
|
import '@alifd/next/es/balloon/style';
|
|
6
6
|
import 'antd/es/cascader/style';
|
|
7
|
+
import '@alifd/next/es/button/style';
|
|
8
|
+
import '@alifd/next/es/dialog/style';
|
|
9
|
+
import '@alifd/next/es/loading/style';
|
|
7
10
|
import './index.scss';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getStorageItem<T = any>(key: string): T | null;
|
|
2
|
+
export declare function setStorageItem(key: string, value: any): void;
|
|
3
|
+
export declare function numberToChinese(num: number): string;
|
|
4
|
+
export declare function parseURLParams(url: string): Record<string, string>;
|