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,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.getStorageItem = getStorageItem;
|
|
5
|
+
exports.numberToChinese = numberToChinese;
|
|
6
|
+
exports.parseURLParams = parseURLParams;
|
|
7
|
+
exports.setStorageItem = setStorageItem;
|
|
8
|
+
// localStorage helpers (replacing uni.getStorageSync / uni.setStorageSync)
|
|
9
|
+
function getStorageItem(key) {
|
|
10
|
+
try {
|
|
11
|
+
var raw = localStorage.getItem(key);
|
|
12
|
+
return raw ? JSON.parse(raw) : null;
|
|
13
|
+
} catch (_unused) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function setStorageItem(key, value) {
|
|
18
|
+
try {
|
|
19
|
+
localStorage.setItem(key, JSON.stringify(value));
|
|
20
|
+
} catch (e) {
|
|
21
|
+
console.error('setStorageItem error', e);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Convert number to Chinese numerals (e.g. 1 → '一')
|
|
26
|
+
function numberToChinese(num) {
|
|
27
|
+
var digitMap = {
|
|
28
|
+
'0': '〇',
|
|
29
|
+
'1': '一',
|
|
30
|
+
'2': '二',
|
|
31
|
+
'3': '三',
|
|
32
|
+
'4': '四',
|
|
33
|
+
'5': '五',
|
|
34
|
+
'6': '六',
|
|
35
|
+
'7': '七',
|
|
36
|
+
'8': '八',
|
|
37
|
+
'9': '九'
|
|
38
|
+
};
|
|
39
|
+
return String(num).replace(/\d/g, function (d) {
|
|
40
|
+
return digitMap[d];
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Parse URL query params to object
|
|
45
|
+
function parseURLParams(url) {
|
|
46
|
+
var params = {};
|
|
47
|
+
url.replace(/([^?=&]+)=([^?=&]+)/g, function (_, key, value) {
|
|
48
|
+
params[key] = value;
|
|
49
|
+
return '';
|
|
50
|
+
});
|
|
51
|
+
return params;
|
|
52
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _button = _interopRequireDefault(require("@alifd/next/lib/button"));
|
|
7
|
+
var _loading = _interopRequireDefault(require("@alifd/next/lib/loading"));
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
require("./comment.scss");
|
|
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
|
+
// TODO: API imports not available
|
|
12
|
+
// import { getGuideCommentUrlApi } from '@/api/business.js'
|
|
13
|
+
// import apiConfig from '@/config/api.cofig'
|
|
14
|
+
|
|
15
|
+
var Comment = function Comment(_ref) {
|
|
16
|
+
var eventInfoProp = _ref.eventInfo,
|
|
17
|
+
accessTokenProp = _ref.accessToken,
|
|
18
|
+
userInfoProp = _ref.userInfo;
|
|
19
|
+
var _React$useState = React.useState(false),
|
|
20
|
+
pageLoading = _React$useState[0],
|
|
21
|
+
setPageLoading = _React$useState[1];
|
|
22
|
+
var _React$useState2 = React.useState(false),
|
|
23
|
+
webViewShow = _React$useState2[0],
|
|
24
|
+
setWebViewShow = _React$useState2[1];
|
|
25
|
+
var _React$useState3 = React.useState(''),
|
|
26
|
+
commentSrc = _React$useState3[0],
|
|
27
|
+
setCommentSrc = _React$useState3[1];
|
|
28
|
+
React.useEffect(function () {
|
|
29
|
+
getGuideCommentUrl();
|
|
30
|
+
}, []);
|
|
31
|
+
var getGuideCommentUrl = function getGuideCommentUrl() {
|
|
32
|
+
var _eventInfo$taskGenera, _eventInfo$taskGenera2;
|
|
33
|
+
setPageLoading(true);
|
|
34
|
+
var access_token = accessTokenProp;
|
|
35
|
+
var eventInfo = eventInfoProp;
|
|
36
|
+
var userInfo = userInfoProp;
|
|
37
|
+
if (!eventInfo || !userInfo) {
|
|
38
|
+
setPageLoading(false);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
var params = {
|
|
42
|
+
channel: '1',
|
|
43
|
+
itemCode: ((_eventInfo$taskGenera = eventInfo.taskGeneralBasic) === null || _eventInfo$taskGenera === void 0 ? void 0 : _eventInfo$taskGenera.rowGuid) || '',
|
|
44
|
+
itemName: ((_eventInfo$taskGenera2 = eventInfo.taskGeneralBasic) === null || _eventInfo$taskGenera2 === void 0 ? void 0 : _eventInfo$taskGenera2.taskHandleItemName) || '',
|
|
45
|
+
userId: userInfo.loginAccountId || '',
|
|
46
|
+
userName: userInfo.userName || userInfo.legalName || '',
|
|
47
|
+
token: access_token || '',
|
|
48
|
+
acctType: userInfo.acctType || ''
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// TODO: getGuideCommentUrlApi(params) not available
|
|
52
|
+
console.log('Comment params', params);
|
|
53
|
+
|
|
54
|
+
// Mock implementation:
|
|
55
|
+
setPageLoading(false);
|
|
56
|
+
// const url = res.url;
|
|
57
|
+
// const { commentDomain } = apiConfig.domain;
|
|
58
|
+
// const { isProduct } = apiConfig;
|
|
59
|
+
// setCommentSrc(isProduct ? url : commentDomain + url.split('11013')[1]);
|
|
60
|
+
// setWebViewShow(true);
|
|
61
|
+
// setTimeout(() => {
|
|
62
|
+
// const iframe = document.getElementById('commentIframe') as HTMLIFrameElement;
|
|
63
|
+
// if (iframe && commentSrc) iframe.src = commentSrc;
|
|
64
|
+
// }, 500);
|
|
65
|
+
|
|
66
|
+
setPageLoading(false);
|
|
67
|
+
};
|
|
68
|
+
var closeComment = function closeComment() {
|
|
69
|
+
// TODO: uni.navigateBack()
|
|
70
|
+
window.history.back();
|
|
71
|
+
};
|
|
72
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: "comment-content"
|
|
74
|
+
}, pageLoading && /*#__PURE__*/React.createElement(_loading["default"], {
|
|
75
|
+
visible: pageLoading,
|
|
76
|
+
tip: "\u52A0\u8F7D\u4E2D..."
|
|
77
|
+
}), webViewShow && /*#__PURE__*/React.createElement("div", {
|
|
78
|
+
className: "webView-content"
|
|
79
|
+
}, /*#__PURE__*/React.createElement("iframe", {
|
|
80
|
+
id: "commentIframe",
|
|
81
|
+
src: commentSrc,
|
|
82
|
+
frameBorder: "0",
|
|
83
|
+
height: "100%",
|
|
84
|
+
width: "100%",
|
|
85
|
+
title: "\u8BC4\u4EF7"
|
|
86
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
87
|
+
className: "btn-con"
|
|
88
|
+
}, /*#__PURE__*/React.createElement(_button["default"], {
|
|
89
|
+
onClick: closeComment
|
|
90
|
+
}, "\u5173\u95ED\u8BC4\u4EF7"))), !pageLoading && !webViewShow && /*#__PURE__*/React.createElement("div", {
|
|
91
|
+
className: "webView-content",
|
|
92
|
+
style: {
|
|
93
|
+
display: 'flex',
|
|
94
|
+
justifyContent: 'center',
|
|
95
|
+
alignItems: 'center'
|
|
96
|
+
}
|
|
97
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, "\u8BC4\u4EF7\u9875\u9762\u52A0\u8F7D\u4E2D..."), /*#__PURE__*/React.createElement(_button["default"], {
|
|
98
|
+
onClick: closeComment
|
|
99
|
+
}, "\u8FD4\u56DE"))));
|
|
100
|
+
};
|
|
101
|
+
Comment.displayName = 'Comment';
|
|
102
|
+
var _default = exports["default"] = Comment;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.comment-content {
|
|
2
|
+
background: #ffffff;
|
|
3
|
+
min-height: 100vh;
|
|
4
|
+
|
|
5
|
+
.page-loading {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
height: 100vh;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.webView-content {
|
|
13
|
+
height: 90vh;
|
|
14
|
+
width: 100%;
|
|
15
|
+
|
|
16
|
+
.btn-con {
|
|
17
|
+
padding: 0 12px;
|
|
18
|
+
margin-top: -40px;
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports["default"] = void 0;
|
|
5
|
+
var React = _interopRequireWildcard(require("react"));
|
|
6
|
+
require("./accept.scss");
|
|
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
|
+
var Accept = function Accept(_ref) {
|
|
9
|
+
var eventInfoProp = _ref.eventInfo;
|
|
10
|
+
var _React$useState = React.useState(''),
|
|
11
|
+
acceptCondition = _React$useState[0],
|
|
12
|
+
setAcceptCondition = _React$useState[1];
|
|
13
|
+
React.useEffect(function () {
|
|
14
|
+
initData();
|
|
15
|
+
}, []);
|
|
16
|
+
var initData = function initData() {
|
|
17
|
+
var _eventInfo$taskGenera;
|
|
18
|
+
var eventInfo = eventInfoProp;
|
|
19
|
+
if (eventInfo !== null && eventInfo !== void 0 && (_eventInfo$taskGenera = eventInfo.taskGeneralExtend) !== null && _eventInfo$taskGenera !== void 0 && _eventInfo$taskGenera.acceptCondition) {
|
|
20
|
+
setAcceptCondition(eventInfo.taskGeneralExtend.acceptCondition);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
if (!acceptCondition) {
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: "accept-content"
|
|
26
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: "empty-text"
|
|
28
|
+
}, "\u6682\u65E0\u53D7\u7406\u6761\u4EF6"));
|
|
29
|
+
}
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
className: "accept-content"
|
|
32
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: "card-content",
|
|
34
|
+
dangerouslySetInnerHTML: {
|
|
35
|
+
__html: acceptCondition
|
|
36
|
+
}
|
|
37
|
+
}));
|
|
38
|
+
};
|
|
39
|
+
Accept.displayName = 'Accept';
|
|
40
|
+
var _default = exports["default"] = Accept;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports["default"] = void 0;
|
|
5
|
+
var React = _interopRequireWildcard(require("react"));
|
|
6
|
+
require("./basicInfo.scss");
|
|
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
|
+
var BasicInfo = function BasicInfo(_ref) {
|
|
9
|
+
var eventInfoProp = _ref.eventInfo;
|
|
10
|
+
var _React$useState = React.useState({}),
|
|
11
|
+
taskGeneralBasic = _React$useState[0],
|
|
12
|
+
setTaskGeneralBasic = _React$useState[1];
|
|
13
|
+
var _React$useState2 = React.useState(''),
|
|
14
|
+
itemBasic = _React$useState2[0],
|
|
15
|
+
setItemBasic = _React$useState2[1];
|
|
16
|
+
var _React$useState3 = React.useState({}),
|
|
17
|
+
taskGeneralExtend = _React$useState3[0],
|
|
18
|
+
setTaskGeneralExtend = _React$useState3[1];
|
|
19
|
+
React.useEffect(function () {
|
|
20
|
+
initData();
|
|
21
|
+
}, []);
|
|
22
|
+
var initData = function initData() {
|
|
23
|
+
var eventInfo = eventInfoProp;
|
|
24
|
+
if (!eventInfo) return;
|
|
25
|
+
setTaskGeneralBasic(eventInfo.taskGeneralBasic || {});
|
|
26
|
+
setItemBasic(eventInfo.itemBasic || '');
|
|
27
|
+
setTaskGeneralExtend(eventInfo.taskGeneralExtend || {});
|
|
28
|
+
};
|
|
29
|
+
var call = function call() {
|
|
30
|
+
var phone = taskGeneralExtend.seekPhone;
|
|
31
|
+
if (phone) {
|
|
32
|
+
window.location.href = "tel:" + phone;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
className: "basicInfo-content"
|
|
37
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: "card"
|
|
39
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: "item"
|
|
41
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
className: "left"
|
|
43
|
+
}, "\u5B9E\u65BD\u4E3B\u4F53"), /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
className: "right"
|
|
45
|
+
}, itemBasic.deptName || '-')), /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
className: "item"
|
|
47
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
className: "left"
|
|
49
|
+
}, "\u670D\u52A1\u5BF9\u8C61"), /*#__PURE__*/React.createElement("div", {
|
|
50
|
+
className: "right"
|
|
51
|
+
}, taskGeneralExtend.serviceObjectTypeText || '-'))), /*#__PURE__*/React.createElement("div", {
|
|
52
|
+
className: "card"
|
|
53
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: "item"
|
|
55
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
56
|
+
className: "left"
|
|
57
|
+
}, "\u529E\u4E8B\u5730\u5740"), /*#__PURE__*/React.createElement("div", {
|
|
58
|
+
className: "right"
|
|
59
|
+
}, taskGeneralExtend.transactAddr || '-')), /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
className: "item"
|
|
61
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
className: "left"
|
|
63
|
+
}, "\u529E\u7406\u65F6\u95F4"), /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
className: "right"
|
|
65
|
+
}, taskGeneralExtend.transactTime || '-'))), /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
className: "card"
|
|
67
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: "item"
|
|
69
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
className: "left"
|
|
71
|
+
}, "\u54A8\u8BE2\u5730\u5740"), /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
className: "right"
|
|
73
|
+
}, taskGeneralExtend.seekWebsite || '-')), /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
className: "item",
|
|
75
|
+
onClick: call,
|
|
76
|
+
style: {
|
|
77
|
+
cursor: taskGeneralExtend.seekPhone ? 'pointer' : undefined
|
|
78
|
+
}
|
|
79
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
80
|
+
className: "left"
|
|
81
|
+
}, "\u54A8\u8BE2\u7535\u8BDD"), /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: "right"
|
|
83
|
+
}, taskGeneralExtend.seekPhone || '-'))));
|
|
84
|
+
};
|
|
85
|
+
BasicInfo.displayName = 'BasicInfo';
|
|
86
|
+
var _default = exports["default"] = BasicInfo;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.basicInfo-content {
|
|
2
|
+
.card {
|
|
3
|
+
background: #ffffff;
|
|
4
|
+
border-radius: 10px;
|
|
5
|
+
margin: 16px 0;
|
|
6
|
+
padding: 0 15px;
|
|
7
|
+
|
|
8
|
+
.item {
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: 16px 0;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
border-bottom: 1px solid #EEEEEE;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
|
|
16
|
+
&:last-child {
|
|
17
|
+
border: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.left {
|
|
21
|
+
color: #323232;
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
}
|
|
24
|
+
.right {
|
|
25
|
+
flex: 1;
|
|
26
|
+
color: #505050;
|
|
27
|
+
text-align: right;
|
|
28
|
+
margin-left: 20px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports["default"] = void 0;
|
|
5
|
+
var React = _interopRequireWildcard(require("react"));
|
|
6
|
+
require("./eventInfo.scss");
|
|
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
|
+
var EventInfo = function EventInfo(_ref) {
|
|
9
|
+
var eventInfoProp = _ref.eventInfo,
|
|
10
|
+
filterMaterialsProp = _ref.filterMaterials;
|
|
11
|
+
var _React$useState = React.useState({}),
|
|
12
|
+
taskGeneralBasic = _React$useState[0],
|
|
13
|
+
setTaskGeneralBasic = _React$useState[1];
|
|
14
|
+
var _React$useState2 = React.useState({}),
|
|
15
|
+
taskGeneralExtend = _React$useState2[0],
|
|
16
|
+
setTaskGeneralExtend = _React$useState2[1];
|
|
17
|
+
var _React$useState3 = React.useState([]),
|
|
18
|
+
info = _React$useState3[0],
|
|
19
|
+
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
|
+
React.useEffect(function () {
|
|
27
|
+
initData();
|
|
28
|
+
initHasSituation();
|
|
29
|
+
getFilterMaterials();
|
|
30
|
+
}, []);
|
|
31
|
+
var initData = function initData() {
|
|
32
|
+
var eventInfo = eventInfoProp;
|
|
33
|
+
if (!eventInfo) return;
|
|
34
|
+
var basic = eventInfo.taskGeneralBasic || {};
|
|
35
|
+
var extend = eventInfo.taskGeneralExtend || {};
|
|
36
|
+
setTaskGeneralBasic(basic);
|
|
37
|
+
setTaskGeneralExtend(extend);
|
|
38
|
+
setInfo([{
|
|
39
|
+
value: extend.workSceneNumber || '--',
|
|
40
|
+
unit: '次',
|
|
41
|
+
name: '到现场次数'
|
|
42
|
+
}, {
|
|
43
|
+
value: extend.anticipateDay || '--',
|
|
44
|
+
unit: '工作日',
|
|
45
|
+
name: '法定办结时限'
|
|
46
|
+
}, {
|
|
47
|
+
value: extend.promiseDay || '--',
|
|
48
|
+
unit: '工作日',
|
|
49
|
+
name: '承诺办结时限'
|
|
50
|
+
}]);
|
|
51
|
+
};
|
|
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
|
+
|
|
60
|
+
// TODO: selection() – uni.navigateTo not implemented
|
|
61
|
+
|
|
62
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "eventInfo-content"
|
|
64
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
className: "title"
|
|
66
|
+
}, taskGeneralBasic.taskHandleItemName), /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: "info-con"
|
|
68
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: "tags-content"
|
|
70
|
+
}, taskGeneralBasic.projectTypeText && /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
className: "tags"
|
|
72
|
+
}, taskGeneralBasic.projectTypeText), /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: "tags"
|
|
74
|
+
}, taskGeneralExtend.isFeeText ? taskGeneralExtend.isFeeText === '是' ? '收费' : '不收费' : '不收费'))), /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
className: "info-content"
|
|
76
|
+
}, info.map(function (item, index) {
|
|
77
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
78
|
+
className: "info-item",
|
|
79
|
+
key: index
|
|
80
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
81
|
+
className: "info-num"
|
|
82
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
83
|
+
className: "num"
|
|
84
|
+
}, item.value), /*#__PURE__*/React.createElement("span", {
|
|
85
|
+
className: "unit"
|
|
86
|
+
}, item.unit)), /*#__PURE__*/React.createElement("div", {
|
|
87
|
+
className: "name"
|
|
88
|
+
}, item.name));
|
|
89
|
+
})));
|
|
90
|
+
};
|
|
91
|
+
EventInfo.displayName = 'EventInfo';
|
|
92
|
+
var _default = exports["default"] = EventInfo;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
.eventInfo-content {
|
|
2
|
+
background: #ffffff;
|
|
3
|
+
border-radius: 10px;
|
|
4
|
+
padding: 15px 14px;
|
|
5
|
+
margin-bottom: 2px;
|
|
6
|
+
|
|
7
|
+
.title {
|
|
8
|
+
font-size: 16px;
|
|
9
|
+
line-height: 21px;
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
color: #333333;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.info-con {
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
align-items: center;
|
|
18
|
+
margin: 12px 0;
|
|
19
|
+
margin-bottom: 0;
|
|
20
|
+
|
|
21
|
+
.tags-content {
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: flex-start;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 10px;
|
|
26
|
+
|
|
27
|
+
.tags {
|
|
28
|
+
width: 64px;
|
|
29
|
+
height: 26px;
|
|
30
|
+
line-height: 26px;
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
color: #1678FF;
|
|
34
|
+
text-align: center;
|
|
35
|
+
|
|
36
|
+
&:nth-child(1) {
|
|
37
|
+
background: #DAF7FF;
|
|
38
|
+
color: #369EB7;
|
|
39
|
+
}
|
|
40
|
+
&:nth-child(2) {
|
|
41
|
+
background: #ECF4FF;
|
|
42
|
+
color: #1678FF;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.info-content {
|
|
49
|
+
display: flex;
|
|
50
|
+
justify-content: space-evenly;
|
|
51
|
+
align-items: center;
|
|
52
|
+
margin-top: 13px;
|
|
53
|
+
gap: 12px;
|
|
54
|
+
|
|
55
|
+
.info-item {
|
|
56
|
+
background: #ECF4FF;
|
|
57
|
+
border-radius: 4px;
|
|
58
|
+
text-align: center;
|
|
59
|
+
height: 84px;
|
|
60
|
+
flex: 1;
|
|
61
|
+
display: flex;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
align-items: center;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
|
|
66
|
+
.info-num {
|
|
67
|
+
.num {
|
|
68
|
+
font-size: 24px;
|
|
69
|
+
color: #1678FF;
|
|
70
|
+
line-height: 22px;
|
|
71
|
+
}
|
|
72
|
+
.unit {
|
|
73
|
+
font-size: 12px;
|
|
74
|
+
color: #666666;
|
|
75
|
+
margin-left: 2px;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.name {
|
|
79
|
+
font-size: 13px;
|
|
80
|
+
color: #333333;
|
|
81
|
+
line-height: 22px;
|
|
82
|
+
margin-top: 12px;
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './guideTabs.scss';
|
|
3
|
+
export interface GuideTabsProps {
|
|
4
|
+
tabsList: Array<{
|
|
5
|
+
label: string;
|
|
6
|
+
}>;
|
|
7
|
+
isSticky?: boolean;
|
|
8
|
+
curTab?: number;
|
|
9
|
+
scrollable?: boolean;
|
|
10
|
+
keyName?: string;
|
|
11
|
+
fontSize?: string | number;
|
|
12
|
+
lineHeight?: string | number;
|
|
13
|
+
lineWidth?: string | number;
|
|
14
|
+
lineColor?: string;
|
|
15
|
+
hasLineImg?: boolean;
|
|
16
|
+
activeColor?: string;
|
|
17
|
+
onTabsChange?: (index: number) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const GuideTabs: React.FC<GuideTabsProps>;
|
|
20
|
+
export default GuideTabs;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports["default"] = void 0;
|
|
5
|
+
var React = _interopRequireWildcard(require("react"));
|
|
6
|
+
require("./guideTabs.scss");
|
|
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
|
+
var GuideTabs = function GuideTabs(_ref) {
|
|
9
|
+
var tabsList = _ref.tabsList,
|
|
10
|
+
_ref$curTab = _ref.curTab,
|
|
11
|
+
curTab = _ref$curTab === void 0 ? 0 : _ref$curTab,
|
|
12
|
+
_ref$keyName = _ref.keyName,
|
|
13
|
+
keyName = _ref$keyName === void 0 ? 'label' : _ref$keyName,
|
|
14
|
+
_ref$fontSize = _ref.fontSize,
|
|
15
|
+
fontSize = _ref$fontSize === void 0 ? '16' : _ref$fontSize,
|
|
16
|
+
_ref$lineHeight = _ref.lineHeight,
|
|
17
|
+
lineHeight = _ref$lineHeight === void 0 ? '7' : _ref$lineHeight,
|
|
18
|
+
_ref$lineWidth = _ref.lineWidth,
|
|
19
|
+
lineWidth = _ref$lineWidth === void 0 ? '30' : _ref$lineWidth,
|
|
20
|
+
_ref$lineColor = _ref.lineColor,
|
|
21
|
+
lineColor = _ref$lineColor === void 0 ? '#1678FF' : _ref$lineColor,
|
|
22
|
+
_ref$hasLineImg = _ref.hasLineImg,
|
|
23
|
+
hasLineImg = _ref$hasLineImg === void 0 ? false : _ref$hasLineImg,
|
|
24
|
+
_ref$activeColor = _ref.activeColor,
|
|
25
|
+
activeColor = _ref$activeColor === void 0 ? '#1678FF' : _ref$activeColor,
|
|
26
|
+
onTabsChange = _ref.onTabsChange;
|
|
27
|
+
var px = function px(val) {
|
|
28
|
+
return typeof val === 'number' ? val + "px" : val;
|
|
29
|
+
};
|
|
30
|
+
var lineH = px(lineHeight);
|
|
31
|
+
var lineR = typeof lineHeight === 'number' ? lineHeight / 2 + "px" : '3px';
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: "guide-tabs-content"
|
|
34
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
className: "guide-tabs-nav"
|
|
36
|
+
}, tabsList.map(function (item, index) {
|
|
37
|
+
var isActive = index === curTab;
|
|
38
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
39
|
+
key: item[keyName] || index,
|
|
40
|
+
className: "guide-tab-item" + (isActive ? ' active' : ''),
|
|
41
|
+
onClick: function onClick() {
|
|
42
|
+
return onTabsChange === null || onTabsChange === void 0 ? void 0 : onTabsChange(index);
|
|
43
|
+
},
|
|
44
|
+
style: {
|
|
45
|
+
fontSize: px(fontSize),
|
|
46
|
+
color: isActive ? activeColor : '#505050'
|
|
47
|
+
}
|
|
48
|
+
}, item[keyName], isActive && /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: "guide-tab-line",
|
|
50
|
+
style: {
|
|
51
|
+
width: px(lineWidth),
|
|
52
|
+
height: lineH,
|
|
53
|
+
background: hasLineImg ? 'currentColor' : lineColor,
|
|
54
|
+
borderRadius: lineR
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
57
|
+
})));
|
|
58
|
+
};
|
|
59
|
+
GuideTabs.displayName = 'GuideTabs';
|
|
60
|
+
var _default = exports["default"] = GuideTabs;
|