ydb-components-material 0.1.104 → 0.1.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/build/docs/404.html +3 -3
  2. package/build/docs/_demos/:uuid +3 -3
  3. package/build/docs/colorful-button.html +3 -3
  4. package/build/docs/colorful-input.html +3 -3
  5. package/build/docs/index.html +3 -3
  6. package/build/docs/{umi.967ad73e.js → umi.a8f7e9e9.js} +1 -1
  7. package/build/docs/{umi.82ebabdb.css → umi.e6ddefc7.css} +1 -1
  8. package/build/docs/~demos/:uuid.html +3 -3
  9. package/build/docs/~demos/colorful-button-demo.html +3 -3
  10. package/build/docs/~demos/colorful-input-demo.html +3 -3
  11. package/build/lowcode/3.js +2 -2
  12. package/build/lowcode/4.js +1 -1
  13. package/build/lowcode/5.js +1 -1
  14. package/build/lowcode/assets-daily.json +11 -11
  15. package/build/lowcode/assets-dev.json +2 -2
  16. package/build/lowcode/assets-prod.json +11 -11
  17. package/build/lowcode/index.js +1 -1
  18. package/build/lowcode/meta.js +1 -1
  19. package/build/lowcode/preview.js +9 -9
  20. package/build/lowcode/render/default/1.js +2 -2
  21. package/build/lowcode/render/default/2.js +1 -1
  22. package/build/lowcode/render/default/3.js +1 -1
  23. package/build/lowcode/render/default/view.css +1 -1
  24. package/build/lowcode/render/default/view.js +17 -17
  25. package/build/lowcode/view.css +1 -1
  26. package/build/lowcode/view.js +17 -17
  27. package/dist/1.js +2 -2
  28. package/dist/2.js +1 -1
  29. package/dist/3.js +1 -1
  30. package/dist/BizComps.css +1 -1
  31. package/dist/BizComps.js +20 -20
  32. package/dist/BizComps.js.map +1 -1
  33. package/es/components/guide/compoents/eventInfo.d.ts +0 -1
  34. package/es/components/guide/compoents/eventInfo.js +1 -17
  35. package/es/components/guide/compoents/materials/materials.d.ts +0 -4
  36. package/es/components/guide/compoents/materials/materials.js +0 -8
  37. package/es/components/guide/compoents/materials/situation.d.ts +0 -4
  38. package/es/components/guide/compoents/materials/situation.js +1 -21
  39. package/es/components/guide/compoents/places.js +8 -22
  40. package/es/components/guide/index.d.ts +0 -12
  41. package/es/components/guide/index.js +3 -25
  42. package/es/components/guide/index.scss +2 -0
  43. package/es/style.js +1 -1
  44. package/lib/components/guide/compoents/eventInfo.d.ts +0 -1
  45. package/lib/components/guide/compoents/eventInfo.js +1 -17
  46. package/lib/components/guide/compoents/materials/materials.d.ts +0 -4
  47. package/lib/components/guide/compoents/materials/materials.js +0 -8
  48. package/lib/components/guide/compoents/materials/situation.d.ts +0 -4
  49. package/lib/components/guide/compoents/materials/situation.js +1 -21
  50. package/lib/components/guide/compoents/places.js +8 -22
  51. package/lib/components/guide/index.d.ts +0 -12
  52. package/lib/components/guide/index.js +3 -25
  53. package/lib/components/guide/index.scss +2 -0
  54. package/lib/style.js +1 -1
  55. package/lowcode/guide/meta.ts +2 -147
  56. package/lowcode_es/guide/meta.js +0 -141
  57. package/lowcode_es/meta.js +1 -1
  58. package/lowcode_lib/guide/meta.js +0 -141
  59. package/lowcode_lib/meta.js +1 -1
  60. package/package.json +4 -3
@@ -2,7 +2,6 @@ import * as React from 'react';
2
2
  import './eventInfo.scss';
3
3
  export interface EventInfoProps {
4
4
  eventInfo?: any;
5
- filterMaterials?: any;
6
5
  }
7
6
  declare const EventInfo: React.FC<EventInfoProps>;
8
7
  export default EventInfo;
@@ -1,8 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import "./eventInfo.scss";
3
3
  var EventInfo = function EventInfo(_ref) {
4
- var eventInfoProp = _ref.eventInfo,
5
- filterMaterialsProp = _ref.filterMaterials;
4
+ var eventInfoProp = _ref.eventInfo;
6
5
  var _React$useState = React.useState({}),
7
6
  taskGeneralBasic = _React$useState[0],
8
7
  setTaskGeneralBasic = _React$useState[1];
@@ -12,16 +11,8 @@ var EventInfo = function EventInfo(_ref) {
12
11
  var _React$useState3 = React.useState([]),
13
12
  info = _React$useState3[0],
14
13
  setInfo = _React$useState3[1];
15
- var _React$useState4 = React.useState(false),
16
- hasSituation = _React$useState4[0],
17
- setHasSituation = _React$useState4[1];
18
- var _React$useState5 = React.useState(false),
19
- hasFilterMaterials = _React$useState5[0],
20
- setHasFilterMaterials = _React$useState5[1];
21
14
  React.useEffect(function () {
22
15
  initData();
23
- initHasSituation();
24
- getFilterMaterials();
25
16
  }, []);
26
17
  var initData = function initData() {
27
18
  var eventInfo = eventInfoProp;
@@ -44,13 +35,6 @@ var EventInfo = function EventInfo(_ref) {
44
35
  name: '承诺办结时限'
45
36
  }]);
46
37
  };
47
- var initHasSituation = function initHasSituation() {
48
- var eventInfo = eventInfoProp;
49
- setHasSituation(!!(eventInfo !== null && eventInfo !== void 0 && eventInfo.taskGeneralSituation));
50
- };
51
- var getFilterMaterials = function getFilterMaterials() {
52
- setHasFilterMaterials(!!filterMaterialsProp);
53
- };
54
38
 
55
39
  // TODO: selection() – uni.navigateTo not implemented
56
40
 
@@ -6,11 +6,7 @@ export interface MaterialsProps {
6
6
  applicationId?: string;
7
7
  accessToken?: string;
8
8
  acctType?: string;
9
- formData?: any;
10
9
  finalMaterials?: any[];
11
- formFieldNames?: any;
12
- itemSituationRowUid?: any;
13
- workNo?: any;
14
10
  declarationAppToken?: string;
15
11
  declarePage?: string;
16
12
  baseUrl?: string;
@@ -8,11 +8,7 @@ var Materials = function Materials(_ref) {
8
8
  applicationIdProp = _ref.applicationId,
9
9
  accessTokenProp = _ref.accessToken,
10
10
  acctTypeProp = _ref.acctType,
11
- formDataProp = _ref.formData,
12
11
  finalMaterialsProp = _ref.finalMaterials,
13
- formFieldNamesProp = _ref.formFieldNames,
14
- itemSituationRowUidProp = _ref.itemSituationRowUid,
15
- workNoProp = _ref.workNo,
16
12
  declarationAppTokenProp = _ref.declarationAppToken,
17
13
  declarePageProp = _ref.declarePage,
18
14
  baseUrlProp = _ref.baseUrl,
@@ -39,11 +35,7 @@ var Materials = function Materials(_ref) {
39
35
  applicationId: applicationIdProp,
40
36
  accessToken: accessTokenProp,
41
37
  acctType: acctTypeProp,
42
- formData: formDataProp,
43
38
  finalMaterials: finalMaterialsProp,
44
- formFieldNames: formFieldNamesProp,
45
- itemSituationRowUid: itemSituationRowUidProp,
46
- workNo: workNoProp,
47
39
  declarationAppToken: declarationAppTokenProp,
48
40
  declarePage: declarePageProp,
49
41
  situationResRechange: situationResRechangeProp,
@@ -6,11 +6,7 @@ export interface SituationProps {
6
6
  applicationId?: string;
7
7
  accessToken?: string;
8
8
  acctType?: string;
9
- formData?: any;
10
9
  finalMaterials?: any[];
11
- formFieldNames?: any;
12
- itemSituationRowUid?: any;
13
- workNo?: any;
14
10
  declarationAppToken?: string;
15
11
  declarePage?: string;
16
12
  taskHandleItem?: string;
@@ -11,11 +11,7 @@ var Situation = function Situation(_ref) {
11
11
  applicationIdProp = _ref.applicationId,
12
12
  accessTokenProp = _ref.accessToken,
13
13
  acctTypeProp = _ref.acctType,
14
- formDataProp = _ref.formData,
15
14
  finalMaterialsProp = _ref.finalMaterials,
16
- formFieldNamesProp = _ref.formFieldNames,
17
- itemSituationRowUidProp = _ref.itemSituationRowUid,
18
- workNoProp = _ref.workNo,
19
15
  declarationAppTokenProp = _ref.declarationAppToken,
20
16
  declarePageProp = _ref.declarePage,
21
17
  taskHandleItemProp = _ref.taskHandleItem,
@@ -51,7 +47,7 @@ var Situation = function Situation(_ref) {
51
47
  }
52
48
  };
53
49
  var getMessage = function getMessage(e) {
54
- var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData', 'getFormFieldNames', 'getItemSituationRowUid', 'getWorkNo'];
50
+ var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData'];
55
51
  var _ref2 = e.data || {},
56
52
  type = _ref2.type,
57
53
  data = _ref2.data;
@@ -67,11 +63,7 @@ var Situation = function Situation(_ref) {
67
63
  var applicationId = applicationIdProp;
68
64
  // const taskHandleItem = taskHandleItemProp;
69
65
  var eventInfo = eventInfoProp;
70
- var formData = formDataProp;
71
66
  var finalMaterials = finalMaterialsProp;
72
- var formFieldNames = formFieldNamesProp;
73
- var itemSituationRowUid = itemSituationRowUidProp;
74
- var workNo = workNoProp;
75
67
  var sendData = {
76
68
  type: type,
77
69
  data: {}
@@ -101,18 +93,6 @@ var Situation = function Situation(_ref) {
101
93
  case 'getMaterials':
102
94
  sendData.data.materials = finalMaterials || (eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.taskGeneralMaterials);
103
95
  break;
104
- case 'getFormData':
105
- sendData.data.formData = formData;
106
- break;
107
- case 'getFormFieldNames':
108
- sendData.data.formFieldNames = formFieldNames;
109
- break;
110
- case 'getItemSituationRowUid':
111
- sendData.data.itemSituationRowUid = itemSituationRowUid;
112
- break;
113
- case 'getWorkNo':
114
- sendData.data.workNo = workNo;
115
- break;
116
96
  }
117
97
  var formIframe = document.getElementById('situationIframe');
118
98
  if (formIframe !== null && formIframe !== void 0 && formIframe.contentWindow) {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import "./places.scss";
3
3
  import emptyImg from "../imgs/empty.png";
4
+ import { Map, Marker } from 'react-amap';
4
5
  var Places = function Places(_ref) {
5
6
  var eventInfoProp = _ref.eventInfo;
6
7
  var _React$useState = React.useState({
@@ -42,27 +43,6 @@ var Places = function Places(_ref) {
42
43
  setCenter(37.81, 112.52);
43
44
  }
44
45
  };
45
-
46
- // TODO: commonMap component not available in React. Map display not implemented.
47
- // The original used a <commonMap> uni-app component with mapbox/amap integration.
48
- React.useEffect(function () {
49
- var hallList = (eventInfoProp === null || eventInfoProp === void 0 ? void 0 : eventInfoProp.hallList) || [];
50
- window.onload = function () {
51
- // 2. 初始化地图
52
- if (!AMap) return;
53
- var map = new AMap.Map('mapContainer', {
54
- zoom: 14,
55
- // 缩放级别
56
- // 注意:经纬度格式为 [经度, 纬度]
57
- center: [hallList[0].longitude, hallList[0].latitude]
58
- });
59
- // 3. 添加一个标记点
60
- new AMap.Marker({
61
- position: [hallList[0].longitude, hallList[0].latitude],
62
- map: map
63
- });
64
- };
65
- }, []);
66
46
  return /*#__PURE__*/React.createElement("div", {
67
47
  className: "places-content"
68
48
  }, list.length > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -78,7 +58,13 @@ var Places = function Places(_ref) {
78
58
  color: '#999',
79
59
  fontSize: 14
80
60
  }
81
- })), /*#__PURE__*/React.createElement("div", {
61
+ }, /*#__PURE__*/React.createElement(Map, {
62
+ amapkey: "fced30d9f04276a2a2071081f960170d",
63
+ center: [list[0].longitude, list[0].latitude],
64
+ zoom: 16
65
+ }, /*#__PURE__*/React.createElement(Marker, {
66
+ position: [list[0].longitude, list[0].latitude]
67
+ })))), /*#__PURE__*/React.createElement("div", {
82
68
  className: "list-con"
83
69
  }, list.map(function (item, index) {
84
70
  return /*#__PURE__*/React.createElement("div", {
@@ -5,8 +5,6 @@ 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
- /** Standard item ID for fetching event details */
9
- standardItemId?: string;
10
8
  /** Task handle item code */
11
9
  taskHandleItem?: string;
12
10
  /** Access token */
@@ -19,18 +17,8 @@ export interface GuideProps {
19
17
  agentInfo?: object;
20
18
  /** Application ID */
21
19
  applicationId?: string;
22
- /** Form data */
23
- formData?: object;
24
- /** Form field names */
25
- formFieldNames?: object;
26
- /** Item situation row uid */
27
- itemSituationRowUid?: object;
28
- /** Work number */
29
- workNo?: object;
30
20
  /** Final materials after intelligent guidance */
31
21
  finalMaterials?: object[];
32
- /** Filter materials */
33
- filterMaterials?: object;
34
22
  /** Step list */
35
23
  stepList?: object[];
36
24
  /** Declaration app token */
@@ -1,10 +1,8 @@
1
- import _Button from "@alifd/next/es/button";
2
1
  import _Dialog from "@alifd/next/es/dialog";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _Message from "@alifd/next/es/message";
5
4
  import _regeneratorRuntime from "@babel/runtime/regenerator";
6
5
  import * as React from 'react';
7
- import { setStorageItem } from "./_utils";
8
6
  import GuideTabs from "./compoents/guideTabs";
9
7
  import EventInfo from "./compoents/eventInfo";
10
8
  import Materials from "./compoents/materials/materials";
@@ -31,19 +29,13 @@ var Guide = function Guide(_ref) {
31
29
  var onNextStep = _ref.onNextStep,
32
30
  _ref$cantNext = _ref.cantNext,
33
31
  cantNext = _ref$cantNext === void 0 ? false : _ref$cantNext,
34
- standardItemId = _ref.standardItemId,
35
32
  taskHandleItem = _ref.taskHandleItem,
36
33
  accessToken = _ref.accessToken,
37
34
  eventInfoProp = _ref.eventInfo,
38
35
  acctType = _ref.acctType,
39
36
  agentInfo = _ref.agentInfo,
40
37
  applicationId = _ref.applicationId,
41
- formData = _ref.formData,
42
- formFieldNames = _ref.formFieldNames,
43
- itemSituationRowUid = _ref.itemSituationRowUid,
44
- workNo = _ref.workNo,
45
38
  finalMaterials = _ref.finalMaterials,
46
- filterMaterials = _ref.filterMaterials,
47
39
  stepList = _ref.stepList,
48
40
  declarationAppToken = _ref.declarationAppToken,
49
41
  declarePage = _ref.declarePage,
@@ -91,18 +83,9 @@ var Guide = function Guide(_ref) {
91
83
  React.useEffect(function () {
92
84
  initUserNotice();
93
85
 
94
- // TODO: getFormValueApi call – API not available
95
- // this.getFormValueFun()
96
-
97
86
  // Set page title
98
87
  document.title = '办事指南';
99
88
 
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
89
  // TODO: if (opt.isAfterFace) this.$initNextStep('立即办理')
107
90
  }, []);
108
91
 
@@ -287,8 +270,7 @@ var Guide = function Guide(_ref) {
287
270
  }), !pageLoading && canHandle && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
288
271
  className: "container"
289
272
  }, /*#__PURE__*/React.createElement(EventInfo, {
290
- eventInfo: eventInfoProp,
291
- filterMaterials: filterMaterials
273
+ eventInfo: eventInfoProp
292
274
  }), /*#__PURE__*/React.createElement(GuideTabs, {
293
275
  tabsList: tabList,
294
276
  isSticky: false,
@@ -300,11 +282,7 @@ var Guide = function Guide(_ref) {
300
282
  applicationId: applicationId,
301
283
  accessToken: accessToken,
302
284
  acctType: acctType,
303
- formData: formData,
304
285
  finalMaterials: finalMaterials,
305
- formFieldNames: formFieldNames,
306
- itemSituationRowUid: itemSituationRowUid,
307
- workNo: workNo,
308
286
  declarationAppToken: declarationAppToken,
309
287
  declarePage: declarePage,
310
288
  baseUrl: baseUrl,
@@ -382,11 +360,11 @@ var Guide = function Guide(_ref) {
382
360
  className: "name"
383
361
  }, "\u4E0B\u8F7D"))), /*#__PURE__*/React.createElement("div", {
384
362
  className: "right"
385
- }, /*#__PURE__*/React.createElement(_Button, {
363
+ }, /*#__PURE__*/React.createElement("div", {
386
364
  className: "right-btn",
387
365
  onClick: prepStep,
388
366
  disabled: cantNext
389
- }, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/React.createElement(_Button, {
367
+ }, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/React.createElement("div", {
390
368
  type: "primary",
391
369
  className: "right-btn",
392
370
  disabled: !canHandle,
@@ -173,6 +173,8 @@
173
173
  flex: 1;
174
174
  border-radius: 100px;
175
175
  height: 40px;
176
+ text-align: center;
177
+ line-height: 40px;
176
178
  }
177
179
 
178
180
  }
package/es/style.js CHANGED
@@ -4,7 +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
7
  import '@alifd/next/es/dialog/style';
9
8
  import '@alifd/next/es/loading/style';
9
+ import '@alifd/next/es/button/style';
10
10
  import './index.scss';
@@ -2,7 +2,6 @@ import * as React from 'react';
2
2
  import './eventInfo.scss';
3
3
  export interface EventInfoProps {
4
4
  eventInfo?: any;
5
- filterMaterials?: any;
6
5
  }
7
6
  declare const EventInfo: React.FC<EventInfoProps>;
8
7
  export default EventInfo;
@@ -6,8 +6,7 @@ var React = _interopRequireWildcard(require("react"));
6
6
  require("./eventInfo.scss");
7
7
  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); }
8
8
  var EventInfo = function EventInfo(_ref) {
9
- var eventInfoProp = _ref.eventInfo,
10
- filterMaterialsProp = _ref.filterMaterials;
9
+ var eventInfoProp = _ref.eventInfo;
11
10
  var _React$useState = React.useState({}),
12
11
  taskGeneralBasic = _React$useState[0],
13
12
  setTaskGeneralBasic = _React$useState[1];
@@ -17,16 +16,8 @@ var EventInfo = function EventInfo(_ref) {
17
16
  var _React$useState3 = React.useState([]),
18
17
  info = _React$useState3[0],
19
18
  setInfo = _React$useState3[1];
20
- var _React$useState4 = React.useState(false),
21
- hasSituation = _React$useState4[0],
22
- setHasSituation = _React$useState4[1];
23
- var _React$useState5 = React.useState(false),
24
- hasFilterMaterials = _React$useState5[0],
25
- setHasFilterMaterials = _React$useState5[1];
26
19
  React.useEffect(function () {
27
20
  initData();
28
- initHasSituation();
29
- getFilterMaterials();
30
21
  }, []);
31
22
  var initData = function initData() {
32
23
  var eventInfo = eventInfoProp;
@@ -49,13 +40,6 @@ var EventInfo = function EventInfo(_ref) {
49
40
  name: '承诺办结时限'
50
41
  }]);
51
42
  };
52
- var initHasSituation = function initHasSituation() {
53
- var eventInfo = eventInfoProp;
54
- setHasSituation(!!(eventInfo !== null && eventInfo !== void 0 && eventInfo.taskGeneralSituation));
55
- };
56
- var getFilterMaterials = function getFilterMaterials() {
57
- setHasFilterMaterials(!!filterMaterialsProp);
58
- };
59
43
 
60
44
  // TODO: selection() – uni.navigateTo not implemented
61
45
 
@@ -6,11 +6,7 @@ export interface MaterialsProps {
6
6
  applicationId?: string;
7
7
  accessToken?: string;
8
8
  acctType?: string;
9
- formData?: any;
10
9
  finalMaterials?: any[];
11
- formFieldNames?: any;
12
- itemSituationRowUid?: any;
13
- workNo?: any;
14
10
  declarationAppToken?: string;
15
11
  declarePage?: string;
16
12
  baseUrl?: string;
@@ -14,11 +14,7 @@ var Materials = function Materials(_ref) {
14
14
  applicationIdProp = _ref.applicationId,
15
15
  accessTokenProp = _ref.accessToken,
16
16
  acctTypeProp = _ref.acctType,
17
- formDataProp = _ref.formData,
18
17
  finalMaterialsProp = _ref.finalMaterials,
19
- formFieldNamesProp = _ref.formFieldNames,
20
- itemSituationRowUidProp = _ref.itemSituationRowUid,
21
- workNoProp = _ref.workNo,
22
18
  declarationAppTokenProp = _ref.declarationAppToken,
23
19
  declarePageProp = _ref.declarePage,
24
20
  baseUrlProp = _ref.baseUrl,
@@ -45,11 +41,7 @@ var Materials = function Materials(_ref) {
45
41
  applicationId: applicationIdProp,
46
42
  accessToken: accessTokenProp,
47
43
  acctType: acctTypeProp,
48
- formData: formDataProp,
49
44
  finalMaterials: finalMaterialsProp,
50
- formFieldNames: formFieldNamesProp,
51
- itemSituationRowUid: itemSituationRowUidProp,
52
- workNo: workNoProp,
53
45
  declarationAppToken: declarationAppTokenProp,
54
46
  declarePage: declarePageProp,
55
47
  situationResRechange: situationResRechangeProp,
@@ -6,11 +6,7 @@ export interface SituationProps {
6
6
  applicationId?: string;
7
7
  accessToken?: string;
8
8
  acctType?: string;
9
- formData?: any;
10
9
  finalMaterials?: any[];
11
- formFieldNames?: any;
12
- itemSituationRowUid?: any;
13
- workNo?: any;
14
10
  declarationAppToken?: string;
15
11
  declarePage?: string;
16
12
  taskHandleItem?: string;
@@ -15,11 +15,7 @@ var Situation = function Situation(_ref) {
15
15
  applicationIdProp = _ref.applicationId,
16
16
  accessTokenProp = _ref.accessToken,
17
17
  acctTypeProp = _ref.acctType,
18
- formDataProp = _ref.formData,
19
18
  finalMaterialsProp = _ref.finalMaterials,
20
- formFieldNamesProp = _ref.formFieldNames,
21
- itemSituationRowUidProp = _ref.itemSituationRowUid,
22
- workNoProp = _ref.workNo,
23
19
  declarationAppTokenProp = _ref.declarationAppToken,
24
20
  declarePageProp = _ref.declarePage,
25
21
  taskHandleItemProp = _ref.taskHandleItem,
@@ -55,7 +51,7 @@ var Situation = function Situation(_ref) {
55
51
  }
56
52
  };
57
53
  var getMessage = function getMessage(e) {
58
- var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData', 'getFormFieldNames', 'getItemSituationRowUid', 'getWorkNo'];
54
+ var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData'];
59
55
  var _ref2 = e.data || {},
60
56
  type = _ref2.type,
61
57
  data = _ref2.data;
@@ -71,11 +67,7 @@ var Situation = function Situation(_ref) {
71
67
  var applicationId = applicationIdProp;
72
68
  // const taskHandleItem = taskHandleItemProp;
73
69
  var eventInfo = eventInfoProp;
74
- var formData = formDataProp;
75
70
  var finalMaterials = finalMaterialsProp;
76
- var formFieldNames = formFieldNamesProp;
77
- var itemSituationRowUid = itemSituationRowUidProp;
78
- var workNo = workNoProp;
79
71
  var sendData = {
80
72
  type: type,
81
73
  data: {}
@@ -105,18 +97,6 @@ var Situation = function Situation(_ref) {
105
97
  case 'getMaterials':
106
98
  sendData.data.materials = finalMaterials || (eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.taskGeneralMaterials);
107
99
  break;
108
- case 'getFormData':
109
- sendData.data.formData = formData;
110
- break;
111
- case 'getFormFieldNames':
112
- sendData.data.formFieldNames = formFieldNames;
113
- break;
114
- case 'getItemSituationRowUid':
115
- sendData.data.itemSituationRowUid = itemSituationRowUid;
116
- break;
117
- case 'getWorkNo':
118
- sendData.data.workNo = workNo;
119
- break;
120
100
  }
121
101
  var formIframe = document.getElementById('situationIframe');
122
102
  if (formIframe !== null && formIframe !== void 0 && formIframe.contentWindow) {
@@ -6,6 +6,7 @@ exports["default"] = void 0;
6
6
  var React = _interopRequireWildcard(require("react"));
7
7
  require("./places.scss");
8
8
  var _empty = _interopRequireDefault(require("../imgs/empty.png"));
9
+ var _reactAmap = require("react-amap");
9
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); }
10
11
  var Places = function Places(_ref) {
11
12
  var eventInfoProp = _ref.eventInfo;
@@ -48,27 +49,6 @@ var Places = function Places(_ref) {
48
49
  setCenter(37.81, 112.52);
49
50
  }
50
51
  };
51
-
52
- // TODO: commonMap component not available in React. Map display not implemented.
53
- // The original used a <commonMap> uni-app component with mapbox/amap integration.
54
- React.useEffect(function () {
55
- var hallList = (eventInfoProp === null || eventInfoProp === void 0 ? void 0 : eventInfoProp.hallList) || [];
56
- window.onload = function () {
57
- // 2. 初始化地图
58
- if (!AMap) return;
59
- var map = new AMap.Map('mapContainer', {
60
- zoom: 14,
61
- // 缩放级别
62
- // 注意:经纬度格式为 [经度, 纬度]
63
- center: [hallList[0].longitude, hallList[0].latitude]
64
- });
65
- // 3. 添加一个标记点
66
- new AMap.Marker({
67
- position: [hallList[0].longitude, hallList[0].latitude],
68
- map: map
69
- });
70
- };
71
- }, []);
72
52
  return /*#__PURE__*/React.createElement("div", {
73
53
  className: "places-content"
74
54
  }, list.length > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -84,7 +64,13 @@ var Places = function Places(_ref) {
84
64
  color: '#999',
85
65
  fontSize: 14
86
66
  }
87
- })), /*#__PURE__*/React.createElement("div", {
67
+ }, /*#__PURE__*/React.createElement(_reactAmap.Map, {
68
+ amapkey: "fced30d9f04276a2a2071081f960170d",
69
+ center: [list[0].longitude, list[0].latitude],
70
+ zoom: 16
71
+ }, /*#__PURE__*/React.createElement(_reactAmap.Marker, {
72
+ position: [list[0].longitude, list[0].latitude]
73
+ })))), /*#__PURE__*/React.createElement("div", {
88
74
  className: "list-con"
89
75
  }, list.map(function (item, index) {
90
76
  return /*#__PURE__*/React.createElement("div", {
@@ -5,8 +5,6 @@ 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
- /** Standard item ID for fetching event details */
9
- standardItemId?: string;
10
8
  /** Task handle item code */
11
9
  taskHandleItem?: string;
12
10
  /** Access token */
@@ -19,18 +17,8 @@ export interface GuideProps {
19
17
  agentInfo?: object;
20
18
  /** Application ID */
21
19
  applicationId?: string;
22
- /** Form data */
23
- formData?: object;
24
- /** Form field names */
25
- formFieldNames?: object;
26
- /** Item situation row uid */
27
- itemSituationRowUid?: object;
28
- /** Work number */
29
- workNo?: object;
30
20
  /** Final materials after intelligent guidance */
31
21
  finalMaterials?: object[];
32
- /** Filter materials */
33
- filterMaterials?: object;
34
22
  /** Step list */
35
23
  stepList?: object[];
36
24
  /** Declaration app token */
@@ -4,12 +4,10 @@ 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"));
11
10
  var React = _interopRequireWildcard(require("react"));
12
- var _utils = require("./_utils");
13
11
  var _guideTabs = _interopRequireDefault(require("./compoents/guideTabs"));
14
12
  var _eventInfo = _interopRequireDefault(require("./compoents/eventInfo"));
15
13
  var _materials = _interopRequireDefault(require("./compoents/materials/materials"));
@@ -36,19 +34,13 @@ var Guide = function Guide(_ref) {
36
34
  var onNextStep = _ref.onNextStep,
37
35
  _ref$cantNext = _ref.cantNext,
38
36
  cantNext = _ref$cantNext === void 0 ? false : _ref$cantNext,
39
- standardItemId = _ref.standardItemId,
40
37
  taskHandleItem = _ref.taskHandleItem,
41
38
  accessToken = _ref.accessToken,
42
39
  eventInfoProp = _ref.eventInfo,
43
40
  acctType = _ref.acctType,
44
41
  agentInfo = _ref.agentInfo,
45
42
  applicationId = _ref.applicationId,
46
- formData = _ref.formData,
47
- formFieldNames = _ref.formFieldNames,
48
- itemSituationRowUid = _ref.itemSituationRowUid,
49
- workNo = _ref.workNo,
50
43
  finalMaterials = _ref.finalMaterials,
51
- filterMaterials = _ref.filterMaterials,
52
44
  stepList = _ref.stepList,
53
45
  declarationAppToken = _ref.declarationAppToken,
54
46
  declarePage = _ref.declarePage,
@@ -96,18 +88,9 @@ var Guide = function Guide(_ref) {
96
88
  React.useEffect(function () {
97
89
  initUserNotice();
98
90
 
99
- // TODO: getFormValueApi call – API not available
100
- // this.getFormValueFun()
101
-
102
91
  // Set page title
103
92
  document.title = '办事指南';
104
93
 
105
- // Auto fetch event info if params provided
106
- if (standardItemId && taskHandleItem && accessToken) {
107
- (0, _utils.setStorageItem)('declarationAppTokenTY', accessToken);
108
- // TODO: getTyEventDetailApi(standardItemId, taskHandleItem)
109
- }
110
-
111
94
  // TODO: if (opt.isAfterFace) this.$initNextStep('立即办理')
112
95
  }, []);
113
96
 
@@ -292,8 +275,7 @@ var Guide = function Guide(_ref) {
292
275
  }), !pageLoading && canHandle && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
293
276
  className: "container"
294
277
  }, /*#__PURE__*/React.createElement(_eventInfo["default"], {
295
- eventInfo: eventInfoProp,
296
- filterMaterials: filterMaterials
278
+ eventInfo: eventInfoProp
297
279
  }), /*#__PURE__*/React.createElement(_guideTabs["default"], {
298
280
  tabsList: tabList,
299
281
  isSticky: false,
@@ -305,11 +287,7 @@ var Guide = function Guide(_ref) {
305
287
  applicationId: applicationId,
306
288
  accessToken: accessToken,
307
289
  acctType: acctType,
308
- formData: formData,
309
290
  finalMaterials: finalMaterials,
310
- formFieldNames: formFieldNames,
311
- itemSituationRowUid: itemSituationRowUid,
312
- workNo: workNo,
313
291
  declarationAppToken: declarationAppToken,
314
292
  declarePage: declarePage,
315
293
  baseUrl: baseUrl,
@@ -387,11 +365,11 @@ var Guide = function Guide(_ref) {
387
365
  className: "name"
388
366
  }, "\u4E0B\u8F7D"))), /*#__PURE__*/React.createElement("div", {
389
367
  className: "right"
390
- }, /*#__PURE__*/React.createElement(_button["default"], {
368
+ }, /*#__PURE__*/React.createElement("div", {
391
369
  className: "right-btn",
392
370
  onClick: prepStep,
393
371
  disabled: cantNext
394
- }, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/React.createElement(_button["default"], {
372
+ }, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/React.createElement("div", {
395
373
  type: "primary",
396
374
  className: "right-btn",
397
375
  disabled: !canHandle,
@@ -173,6 +173,8 @@
173
173
  flex: 1;
174
174
  border-radius: 100px;
175
175
  height: 40px;
176
+ text-align: center;
177
+ line-height: 40px;
176
178
  }
177
179
 
178
180
  }