@vtx/modals2 5.0.9 → 5.0.11
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/lib/index.js +2 -1
- package/lib/vtx-base-modal/index.js +16 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +0 -1
- package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +139 -0
- package/lib/vtx-housing-estate-modal/components/Sbzj/index.less +73 -0
- package/lib/vtx-housing-estate-modal/components/index.js +1 -0
- package/lib/vtx-housing-estate-modal/imgs/aibox.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/aibox_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/android.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/android_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/sbzj_tfd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/sbzj_tfd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/sbzj_video.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/sbzj_video_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/api.js +575 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +61 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +132 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL.js +44 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +104 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +67 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +65 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +79 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +111 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +162 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX.js +43 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +183 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +97 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +65 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +103 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +104 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.less +116 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +179 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +123 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +172 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +177 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/index.js +56 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/index.less +242 -0
- package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +137 -0
- package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.less +78 -0
- package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +133 -0
- package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.less +12 -0
- package/lib/vtx-sdyd-tfd-modal/components/WGGS/Content.js +63 -0
- package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +61 -0
- package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.less +49 -0
- package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +117 -0
- package/lib/vtx-sdyd-tfd-modal/components/WGXW/index.js +52 -0
- package/lib/vtx-sdyd-tfd-modal/components/WGXW/index.less +97 -0
- package/lib/vtx-sdyd-tfd-modal/components/index.js +6 -0
- package/lib/vtx-sdyd-tfd-modal/config.js +63 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/BOTTLE.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/CAN.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/KRAFT_PAPER_BOX.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/NAPKIN.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/NAPKIN_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/PLASTIC_BAG.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/aibox.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/aibox_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/android.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/android_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/avatar.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/avatar_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/ddypz.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/ddypz_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/garbage_default.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/gzxjcx.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/hjglcx.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/hmd.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/hmd_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/manage_bg.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/manage_bg_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/rank.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/rank_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_tfd.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_tfd_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_video.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_video_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfcs.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfcs_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_ht.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_ht_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_manyi.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_manyi_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_twtf.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_twtf_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wpd.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wpd_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wstf.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wstf_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfhs.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/tfhs_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/wgmsr.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/wgmsr_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/yyxj.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/imgs/yyxj_light.png +0 -0
- package/lib/vtx-sdyd-tfd-modal/index.js +113 -0
- package/lib/vtx-sdyd-tfd-modal/style/index.js +4 -0
- package/lib/vtx-sdyd-tfd-modal/style/index.less +1 -0
- package/lib/vtx-shxq-modal/index.js +1 -2
- package/lib/vtx-wr-modal/components/Appraise/index.js +123 -36
- package/lib/vtx-wr-modal/components/Appraise/index.less +40 -43
- package/lib/vtx-wr-modal/components/Base/Jbxx.js +151 -227
- package/lib/vtx-wr-modal/components/Base/Ptss.js +215 -0
- package/lib/vtx-wr-modal/components/Base/Sjjg.js +163 -76
- package/lib/vtx-wr-modal/components/Base/assets/blue/dswsj.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/tywsj.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/dswsj.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/tywsj.png +0 -0
- package/lib/vtx-wr-modal/components/Base/index.js +319 -32
- package/lib/vtx-wr-modal/components/Base/index.less +237 -227
- package/lib/vtx-wr-modal/components/Build/index.js +169 -0
- package/lib/vtx-wr-modal/components/Build/index.less +104 -0
- package/lib/vtx-wr-modal/components/File/index.js +107 -0
- package/lib/vtx-wr-modal/components/File/index.less +41 -0
- package/lib/vtx-wr-modal/components/Score/index.js +122 -28
- package/lib/vtx-wr-modal/components/Score/index.less +36 -36
- package/lib/vtx-wr-modal/components/index.js +3 -1
- package/lib/vtx-wr-modal/index.js +79 -15
- package/lib/vtx-wr-modal/style/index.js +2 -0
- package/package.json +12 -11
|
@@ -1,243 +1,167 @@
|
|
|
1
|
-
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { VtxImage } from '@vtx/components';
|
|
14
|
+
import { getVtxToken, request } from '@vtx/utils';
|
|
15
|
+
import { useEffect, useState } from 'react';
|
|
16
|
+
import { VmEmpty } from "../../../_components";
|
|
17
|
+
import Sjjg from "./Sjjg";
|
|
18
|
+
|
|
19
|
+
//基础设施详情
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
|
+
var getJcssDetail = function getJcssDetail(params) {
|
|
22
|
+
return request.get('/cloud/jcss-reborn/facility/get', {
|
|
23
|
+
data: params
|
|
24
|
+
});
|
|
25
|
+
};
|
|
2
26
|
export default (function (props) {
|
|
3
|
-
var theme = props.theme
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
27
|
+
var theme = props.theme,
|
|
28
|
+
gcDetail = props.gcDetail,
|
|
29
|
+
fields = props.fields;
|
|
30
|
+
var _useState = useState([]),
|
|
31
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
+
imgList = _useState2[0],
|
|
33
|
+
setImgList = _useState2[1];
|
|
34
|
+
useEffect(function () {
|
|
35
|
+
if (gcDetail.id) {
|
|
36
|
+
if (gcDetail.photoIds) {
|
|
37
|
+
setImgList(JSON.parse(gcDetail.photoIds).map(function (item, index) {
|
|
38
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
39
|
+
index: index + 1,
|
|
40
|
+
name: item.name.split('.')[0],
|
|
41
|
+
url: "/vortex/rest/cloud/np/file/downloadFileThumbnail/".concat(item.id, "?token=").concat(getVtxToken('token'), "&outputQuality=0.5&scale=0.5")
|
|
42
|
+
});
|
|
43
|
+
}));
|
|
44
|
+
} else {
|
|
45
|
+
getJcssDetail({
|
|
46
|
+
id: gcDetail.id,
|
|
47
|
+
coordType: 'bd09'
|
|
48
|
+
}).then(function (res) {
|
|
49
|
+
if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
|
|
50
|
+
setImgList(res.data.typePhotoIds ? JSON.parse(res.data.typePhotoIds).map(function (item, index) {
|
|
51
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
52
|
+
index: index + 1,
|
|
53
|
+
name: item.name.split('.')[0],
|
|
54
|
+
url: "/vortex/rest/cloud/np/file/downloadFileThumbnail/".concat(item.id, "?token=").concat(getVtxToken('token'), "&outputQuality=0.5&scale=0.5")
|
|
55
|
+
});
|
|
56
|
+
}) : []);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}, [gcDetail]);
|
|
62
|
+
var isShow = function isShow(key) {
|
|
63
|
+
return fields.filter(function (item) {
|
|
64
|
+
return item.key === key;
|
|
65
|
+
}).length !== 0;
|
|
66
|
+
};
|
|
67
|
+
var basicList = [{
|
|
68
|
+
name: '行政区划',
|
|
69
|
+
key: 'divisionName',
|
|
70
|
+
isShow: isShow('divisionId')
|
|
71
|
+
}, {
|
|
72
|
+
name: '详细地址',
|
|
73
|
+
key: 'address',
|
|
74
|
+
isShow: isShow('address')
|
|
75
|
+
}, {
|
|
76
|
+
name: '开放时间',
|
|
77
|
+
key: 'openTime',
|
|
78
|
+
isShow: isShow('openhour')
|
|
79
|
+
}, {
|
|
80
|
+
name: '权属单位',
|
|
81
|
+
key: 'belongUnitName',
|
|
82
|
+
isShow: isShow('qsdwId')
|
|
83
|
+
}, {
|
|
84
|
+
name: '权属单位联系人',
|
|
85
|
+
key: 'belongUnitContract',
|
|
86
|
+
isShow: isShow('qsdwlxrId')
|
|
87
|
+
}, {
|
|
88
|
+
name: '权属单位联系电话',
|
|
89
|
+
key: 'belongUnitContractWay',
|
|
90
|
+
isShow: isShow('qsdwlxdhId')
|
|
91
|
+
}, {
|
|
92
|
+
name: '运营单位',
|
|
93
|
+
key: 'runUnitName',
|
|
94
|
+
isShow: isShow('yydwId')
|
|
95
|
+
}, {
|
|
96
|
+
name: '运营单位联系人',
|
|
97
|
+
key: 'runUnitContract',
|
|
98
|
+
isShow: isShow('yydwlxrId')
|
|
99
|
+
}, {
|
|
100
|
+
name: '运营单位联系电话',
|
|
101
|
+
key: 'runUnitContractWay',
|
|
102
|
+
isShow: isShow('yydwlxdhId')
|
|
103
|
+
}, {
|
|
104
|
+
name: '管理类型',
|
|
105
|
+
key: 'manageType',
|
|
106
|
+
isShow: isShow('managementtypeName')
|
|
107
|
+
}, {
|
|
108
|
+
name: '保洁形式',
|
|
109
|
+
key: 'manageMethod',
|
|
110
|
+
isShow: isShow('bjxsName')
|
|
8
111
|
}, {
|
|
9
|
-
name: '
|
|
10
|
-
key: '
|
|
11
|
-
|
|
112
|
+
name: '保洁员',
|
|
113
|
+
key: 'cleaner',
|
|
114
|
+
isShow: isShow('bjyId')
|
|
12
115
|
}, {
|
|
13
|
-
name: '
|
|
14
|
-
key: '
|
|
15
|
-
|
|
116
|
+
name: '保洁时间',
|
|
117
|
+
key: 'cleanTime',
|
|
118
|
+
isShow: isShow('bjsjId')
|
|
16
119
|
}];
|
|
17
120
|
return /*#__PURE__*/_jsxs("div", {
|
|
18
121
|
className: "wr-base-inner",
|
|
19
122
|
children: [/*#__PURE__*/_jsx("div", {
|
|
20
|
-
className: "wr-base-img"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
36
|
-
className: "wr-base-subText",
|
|
37
|
-
children: "\u914D\u5957\u8BBE\u65BD"
|
|
38
|
-
})]
|
|
123
|
+
className: "wr-base-img",
|
|
124
|
+
children: imgList.length ? /*#__PURE__*/_jsx(VtxImage.PreviewGroup, {
|
|
125
|
+
children: imgList.map(function (item) {
|
|
126
|
+
return /*#__PURE__*/_jsx(VtxImage, {
|
|
127
|
+
src: item.url,
|
|
128
|
+
alt: item.name,
|
|
129
|
+
style: {
|
|
130
|
+
width: '100%',
|
|
131
|
+
height: '100%'
|
|
132
|
+
}
|
|
133
|
+
}, item.id);
|
|
134
|
+
})
|
|
135
|
+
}) : /*#__PURE__*/_jsx(VmEmpty, {
|
|
136
|
+
type: "NO_PICTURE"
|
|
137
|
+
})
|
|
39
138
|
}), /*#__PURE__*/_jsx("div", {
|
|
40
|
-
className: "wr-base-
|
|
41
|
-
children:
|
|
139
|
+
className: "wr-base-info",
|
|
140
|
+
children: basicList.filter(function (item) {
|
|
141
|
+
return item.isShow;
|
|
142
|
+
}).map(function (item) {
|
|
42
143
|
return /*#__PURE__*/_jsxs("div", {
|
|
43
|
-
|
|
44
|
-
children: [/*#__PURE__*/
|
|
45
|
-
src: item.img,
|
|
46
|
-
alt: item.key
|
|
47
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
48
|
-
children: item.name
|
|
49
|
-
})]
|
|
50
|
-
}, item.key);
|
|
51
|
-
})
|
|
52
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
53
|
-
className: "wr-base-kws",
|
|
54
|
-
style: {
|
|
55
|
-
background: theme === 'blue' ? 'rgba(51, 166, 255, 0.2)' : '#F3F8FF'
|
|
56
|
-
},
|
|
57
|
-
children: [/*#__PURE__*/_jsxs("div", {
|
|
58
|
-
className: "wr-kws-total",
|
|
59
|
-
children: [/*#__PURE__*/_jsxs("div", {
|
|
60
|
-
className: "wr-kws-tip",
|
|
61
|
-
children: [/*#__PURE__*/_jsx("img", {
|
|
62
|
-
src: require("./assets/".concat(theme, "/male.png")),
|
|
63
|
-
alt: "male"
|
|
64
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
65
|
-
children: "\u7537\u5395"
|
|
66
|
-
})]
|
|
67
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
68
|
-
className: "wr-total-num",
|
|
69
|
-
children: [/*#__PURE__*/_jsxs("div", {
|
|
144
|
+
title: gcDetail[item.key],
|
|
145
|
+
children: [/*#__PURE__*/_jsxs("span", {
|
|
70
146
|
style: {
|
|
71
|
-
|
|
72
|
-
alignItems: 'center'
|
|
147
|
+
color: theme === 'light' ? '#8C8C8C' : '#2FACFF'
|
|
73
148
|
},
|
|
74
|
-
children: [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
color: '#1CE548',
|
|
82
|
-
fontSize: '24px'
|
|
83
|
-
},
|
|
84
|
-
children: "5"
|
|
85
|
-
}), /*#__PURE__*/_jsx("span", {
|
|
86
|
-
children: "/8\u4E2A"
|
|
87
|
-
})]
|
|
88
|
-
})]
|
|
89
|
-
})]
|
|
90
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
91
|
-
className: "wr-kws-each",
|
|
92
|
-
children: [/*#__PURE__*/_jsxs("div", {
|
|
93
|
-
children: [/*#__PURE__*/_jsx("span", {
|
|
94
|
-
style: {
|
|
95
|
-
color: '#1CE548',
|
|
96
|
-
fontSize: '24px'
|
|
97
|
-
},
|
|
98
|
-
children: "1"
|
|
99
|
-
}), /*#__PURE__*/_jsx("span", {
|
|
100
|
-
children: "/3"
|
|
101
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
102
|
-
children: [/*#__PURE__*/_jsx("img", {
|
|
103
|
-
src: require("./assets/".concat(theme, "/xbd.png")),
|
|
104
|
-
alt: "xbd"
|
|
105
|
-
}), "\u5C0F\u4FBF\u6597"]
|
|
106
|
-
})]
|
|
107
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
108
|
-
children: [/*#__PURE__*/_jsx("span", {
|
|
109
|
-
style: {
|
|
110
|
-
color: '#1CE548',
|
|
111
|
-
fontSize: '24px'
|
|
112
|
-
},
|
|
113
|
-
children: "1"
|
|
114
|
-
}), /*#__PURE__*/_jsx("span", {
|
|
115
|
-
children: "/3"
|
|
116
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
117
|
-
children: [/*#__PURE__*/_jsx("img", {
|
|
118
|
-
src: require("./assets/".concat(theme, "/dw.png")),
|
|
119
|
-
alt: "dw"
|
|
120
|
-
}), "\u8E72\u4F4D\u6570"]
|
|
121
|
-
})]
|
|
122
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
123
|
-
children: [/*#__PURE__*/_jsx("span", {
|
|
124
|
-
style: {
|
|
125
|
-
color: '#1CE548',
|
|
126
|
-
fontSize: '24px'
|
|
127
|
-
},
|
|
128
|
-
children: "1"
|
|
129
|
-
}), /*#__PURE__*/_jsx("span", {
|
|
130
|
-
children: "/3"
|
|
131
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
132
|
-
children: [/*#__PURE__*/_jsx("img", {
|
|
133
|
-
src: require("./assets/".concat(theme, "/zw.png")),
|
|
134
|
-
alt: "zw"
|
|
135
|
-
}), "\u5EA7\u4F4D\u6570"]
|
|
136
|
-
})]
|
|
137
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
138
|
-
children: [/*#__PURE__*/_jsx("span", {
|
|
139
|
-
style: {
|
|
140
|
-
color: '#1CE548',
|
|
141
|
-
fontSize: '24px'
|
|
142
|
-
},
|
|
143
|
-
children: "1"
|
|
144
|
-
}), /*#__PURE__*/_jsx("span", {
|
|
145
|
-
children: "/3"
|
|
146
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
147
|
-
children: [/*#__PURE__*/_jsx("img", {
|
|
148
|
-
src: require("./assets/".concat(theme, "/wza.png")),
|
|
149
|
-
alt: "wza"
|
|
150
|
-
}), "\u65E0\u969C\u788D"]
|
|
151
|
-
})]
|
|
152
|
-
})]
|
|
153
|
-
})]
|
|
154
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
155
|
-
className: "wr-base-kws",
|
|
156
|
-
style: {
|
|
157
|
-
background: theme === 'blue' ? 'rgba(255,152,175,0.2)' : '#FFF2F5'
|
|
158
|
-
},
|
|
149
|
+
children: [item.name, "\uFF1A"]
|
|
150
|
+
}), gcDetail[item.key] || '--']
|
|
151
|
+
}, item.key);
|
|
152
|
+
})
|
|
153
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
154
|
+
className: "divider"
|
|
155
|
+
}), gcDetail.hasDevice && /*#__PURE__*/_jsxs(_Fragment, {
|
|
159
156
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
160
|
-
className: "wr-
|
|
161
|
-
children: [/*#__PURE__*/
|
|
162
|
-
className: "wr-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
167
|
-
children: "\u5973\u5395"
|
|
168
|
-
})]
|
|
169
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
170
|
-
className: "wr-total-num",
|
|
171
|
-
children: [/*#__PURE__*/_jsxs("div", {
|
|
172
|
-
style: {
|
|
173
|
-
display: 'flex',
|
|
174
|
-
alignItems: 'center'
|
|
175
|
-
},
|
|
176
|
-
children: [/*#__PURE__*/_jsx("span", {
|
|
177
|
-
className: "num-tip-red"
|
|
178
|
-
}), "\u5751\u4F4D\u603B\u6570"]
|
|
179
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
180
|
-
className: "wr-num-total",
|
|
181
|
-
children: [/*#__PURE__*/_jsx("span", {
|
|
182
|
-
style: {
|
|
183
|
-
color: '#1CE548',
|
|
184
|
-
fontSize: '24px'
|
|
185
|
-
},
|
|
186
|
-
children: "5"
|
|
187
|
-
}), /*#__PURE__*/_jsx("span", {
|
|
188
|
-
children: "/8\u4E2A"
|
|
189
|
-
})]
|
|
190
|
-
})]
|
|
191
|
-
})]
|
|
192
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
193
|
-
className: "wr-kws-each",
|
|
194
|
-
children: [/*#__PURE__*/_jsxs("div", {
|
|
195
|
-
children: [/*#__PURE__*/_jsx("span", {
|
|
196
|
-
style: {
|
|
197
|
-
color: '#1CE548',
|
|
198
|
-
fontSize: '24px'
|
|
199
|
-
},
|
|
200
|
-
children: "1"
|
|
201
|
-
}), /*#__PURE__*/_jsx("span", {
|
|
202
|
-
children: "/3"
|
|
203
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
204
|
-
children: [/*#__PURE__*/_jsx("img", {
|
|
205
|
-
src: require("./assets/".concat(theme, "/dw.png")),
|
|
206
|
-
alt: "dw"
|
|
207
|
-
}), "\u8E72\u4F4D\u6570"]
|
|
208
|
-
})]
|
|
209
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
210
|
-
children: [/*#__PURE__*/_jsx("span", {
|
|
211
|
-
style: {
|
|
212
|
-
color: '#1CE548',
|
|
213
|
-
fontSize: '24px'
|
|
214
|
-
},
|
|
215
|
-
children: "1"
|
|
216
|
-
}), /*#__PURE__*/_jsx("span", {
|
|
217
|
-
children: "/3"
|
|
218
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
219
|
-
children: [/*#__PURE__*/_jsx("img", {
|
|
220
|
-
src: require("./assets/".concat(theme, "/zw.png")),
|
|
221
|
-
alt: "zw"
|
|
222
|
-
}), "\u5EA7\u4F4D\u6570"]
|
|
223
|
-
})]
|
|
224
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
225
|
-
children: [/*#__PURE__*/_jsx("span", {
|
|
226
|
-
style: {
|
|
227
|
-
color: '#1CE548',
|
|
228
|
-
fontSize: '24px'
|
|
229
|
-
},
|
|
230
|
-
children: "1"
|
|
231
|
-
}), /*#__PURE__*/_jsx("span", {
|
|
232
|
-
children: "/3"
|
|
233
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
234
|
-
children: [/*#__PURE__*/_jsx("img", {
|
|
235
|
-
src: require("./assets/".concat(theme, "/wza.png")),
|
|
236
|
-
alt: "wza"
|
|
237
|
-
}), "\u65E0\u969C\u788D"]
|
|
238
|
-
})]
|
|
157
|
+
className: "wr-base-subTitle",
|
|
158
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
159
|
+
className: "wr-base-subTip"
|
|
160
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
161
|
+
className: "wr-base-subText",
|
|
162
|
+
children: "\u6570\u636E\u76D1\u7BA1"
|
|
239
163
|
})]
|
|
240
|
-
})]
|
|
164
|
+
}), /*#__PURE__*/_jsx(Sjjg, _objectSpread({}, props))]
|
|
241
165
|
})]
|
|
242
166
|
});
|
|
243
167
|
});
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
export default (function (props) {
|
|
3
|
+
var _gcDetail$pitTotalMal, _gcDetail$urinalNums, _gcDetail$squatNumMal, _gcDetail$seatNumMale, _gcDetail$manAccessib, _gcDetail$pitTotalFem, _gcDetail$squatNumFem, _gcDetail$seatNumFema, _gcDetail$womanAccess;
|
|
4
|
+
var theme = props.theme,
|
|
5
|
+
gcDetail = props.gcDetail,
|
|
6
|
+
fields = props.fields;
|
|
7
|
+
var ptss = [{
|
|
8
|
+
name: '第三卫生间',
|
|
9
|
+
key: 'third',
|
|
10
|
+
img: require("./assets/".concat(theme, "/hasThird").concat(gcDetail.hasThird ? '' : 'N', ".png"))
|
|
11
|
+
}, {
|
|
12
|
+
name: '母婴室',
|
|
13
|
+
key: 'nursery',
|
|
14
|
+
img: require("./assets/".concat(theme, "/hasNursery").concat(gcDetail.hasNursery ? '' : 'N', ".png"))
|
|
15
|
+
}, {
|
|
16
|
+
name: '指示牌',
|
|
17
|
+
key: 'sign',
|
|
18
|
+
img: require("./assets/".concat(theme, "/hasSign").concat(gcDetail.hasSign ? '' : 'N', ".png"))
|
|
19
|
+
}];
|
|
20
|
+
var showKeys = fields.map(function (item) {
|
|
21
|
+
return item.showKey;
|
|
22
|
+
});
|
|
23
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
24
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
25
|
+
className: "wr-base-ptss",
|
|
26
|
+
children: ptss.map(function (item) {
|
|
27
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
28
|
+
className: "wr-ptss-item",
|
|
29
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
30
|
+
src: item.img,
|
|
31
|
+
alt: item.key
|
|
32
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
33
|
+
children: item.name
|
|
34
|
+
})]
|
|
35
|
+
}, item.key);
|
|
36
|
+
})
|
|
37
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
38
|
+
style: {
|
|
39
|
+
display: 'flex',
|
|
40
|
+
justifyContent: 'space-between',
|
|
41
|
+
gap: '20px',
|
|
42
|
+
padding: '0 16px'
|
|
43
|
+
},
|
|
44
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
45
|
+
className: "wr-base-kws",
|
|
46
|
+
style: {
|
|
47
|
+
background: theme === 'blue' ? 'rgba(51, 166, 255, 0.2)' : '#F3F8FF'
|
|
48
|
+
},
|
|
49
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
50
|
+
className: "wr-kws-total",
|
|
51
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
52
|
+
className: "wr-kws-tip",
|
|
53
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
54
|
+
src: require("./assets/".concat(theme, "/male.png")),
|
|
55
|
+
alt: "male"
|
|
56
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
57
|
+
children: "\u7537\u5395"
|
|
58
|
+
})]
|
|
59
|
+
}), showKeys.includes('manPitNum') && /*#__PURE__*/_jsxs("div", {
|
|
60
|
+
className: "wr-total-num",
|
|
61
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
62
|
+
style: {
|
|
63
|
+
display: 'flex',
|
|
64
|
+
alignItems: 'center'
|
|
65
|
+
},
|
|
66
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
67
|
+
className: "num-tip-blue"
|
|
68
|
+
}), "\u5751\u4F4D\u603B\u6570"]
|
|
69
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
70
|
+
className: "wr-num-total",
|
|
71
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
72
|
+
style: {
|
|
73
|
+
fontSize: '24px'
|
|
74
|
+
},
|
|
75
|
+
children: (_gcDetail$pitTotalMal = gcDetail.pitTotalMale) !== null && _gcDetail$pitTotalMal !== void 0 ? _gcDetail$pitTotalMal : '--'
|
|
76
|
+
})
|
|
77
|
+
})]
|
|
78
|
+
})]
|
|
79
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
80
|
+
className: "wr-kws-each",
|
|
81
|
+
children: [showKeys.includes('urinalNums') && /*#__PURE__*/_jsxs("div", {
|
|
82
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
83
|
+
style: {
|
|
84
|
+
fontSize: '24px'
|
|
85
|
+
},
|
|
86
|
+
children: (_gcDetail$urinalNums = gcDetail.urinalNums) !== null && _gcDetail$urinalNums !== void 0 ? _gcDetail$urinalNums : '--'
|
|
87
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
88
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
89
|
+
src: require("./assets/".concat(theme, "/xbd.png")),
|
|
90
|
+
alt: "xbd"
|
|
91
|
+
}), "\u5C0F\u4FBF\u6597"]
|
|
92
|
+
})]
|
|
93
|
+
}), showKeys.includes('manSquatNums') && /*#__PURE__*/_jsxs("div", {
|
|
94
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
95
|
+
style: {
|
|
96
|
+
fontSize: '24px'
|
|
97
|
+
},
|
|
98
|
+
children: (_gcDetail$squatNumMal = gcDetail.squatNumMale) !== null && _gcDetail$squatNumMal !== void 0 ? _gcDetail$squatNumMal : '--'
|
|
99
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
100
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
101
|
+
src: require("./assets/".concat(theme, "/dw.png")),
|
|
102
|
+
alt: "dw"
|
|
103
|
+
}), "\u8E72\u4F4D\u6570"]
|
|
104
|
+
})]
|
|
105
|
+
}), showKeys.includes('manSitNums') && /*#__PURE__*/_jsxs("div", {
|
|
106
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
107
|
+
style: {
|
|
108
|
+
fontSize: '24px'
|
|
109
|
+
},
|
|
110
|
+
children: (_gcDetail$seatNumMale = gcDetail.seatNumMale) !== null && _gcDetail$seatNumMale !== void 0 ? _gcDetail$seatNumMale : '--'
|
|
111
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
112
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
113
|
+
src: require("./assets/".concat(theme, "/zw.png")),
|
|
114
|
+
alt: "zw"
|
|
115
|
+
}), "\u5EA7\u4F4D\u6570"]
|
|
116
|
+
})]
|
|
117
|
+
}), showKeys.includes('manAccessibilityNums') && /*#__PURE__*/_jsxs("div", {
|
|
118
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
119
|
+
style: {
|
|
120
|
+
fontSize: '24px'
|
|
121
|
+
},
|
|
122
|
+
children: (_gcDetail$manAccessib = gcDetail.manAccessibilityNumsMale) !== null && _gcDetail$manAccessib !== void 0 ? _gcDetail$manAccessib : '--'
|
|
123
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
124
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
125
|
+
src: require("./assets/".concat(theme, "/wza.png")),
|
|
126
|
+
alt: "wza"
|
|
127
|
+
}), "\u65E0\u969C\u788D"]
|
|
128
|
+
})]
|
|
129
|
+
})]
|
|
130
|
+
})]
|
|
131
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
132
|
+
className: "wr-base-kws",
|
|
133
|
+
style: {
|
|
134
|
+
background: theme === 'blue' ? 'rgba(255,152,175,0.2)' : '#FFF2F5'
|
|
135
|
+
},
|
|
136
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
137
|
+
className: "wr-kws-total",
|
|
138
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
139
|
+
className: "wr-kws-tip",
|
|
140
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
141
|
+
src: require("./assets/".concat(theme, "/female.png")),
|
|
142
|
+
alt: "female"
|
|
143
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
144
|
+
children: "\u5973\u5395"
|
|
145
|
+
})]
|
|
146
|
+
}), showKeys.includes('womanPitNum') && /*#__PURE__*/_jsxs("div", {
|
|
147
|
+
className: "wr-total-num",
|
|
148
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
149
|
+
style: {
|
|
150
|
+
display: 'flex',
|
|
151
|
+
alignItems: 'center'
|
|
152
|
+
},
|
|
153
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
154
|
+
className: "num-tip-red"
|
|
155
|
+
}), "\u5751\u4F4D\u603B\u6570"]
|
|
156
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
157
|
+
className: "wr-num-total",
|
|
158
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
159
|
+
style: {
|
|
160
|
+
fontSize: '24px'
|
|
161
|
+
},
|
|
162
|
+
children: (_gcDetail$pitTotalFem = gcDetail.pitTotalFemale) !== null && _gcDetail$pitTotalFem !== void 0 ? _gcDetail$pitTotalFem : '--'
|
|
163
|
+
})
|
|
164
|
+
})]
|
|
165
|
+
})]
|
|
166
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
167
|
+
className: "wr-kws-each",
|
|
168
|
+
children: [showKeys.includes('womanSquatNums') && /*#__PURE__*/_jsxs("div", {
|
|
169
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
170
|
+
style: {
|
|
171
|
+
fontSize: '24px'
|
|
172
|
+
},
|
|
173
|
+
children: (_gcDetail$squatNumFem = gcDetail.squatNumFemale) !== null && _gcDetail$squatNumFem !== void 0 ? _gcDetail$squatNumFem : '--'
|
|
174
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
175
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
176
|
+
src: require("./assets/".concat(theme, "/dw.png")),
|
|
177
|
+
alt: "dw"
|
|
178
|
+
}), "\u8E72\u4F4D\u6570"]
|
|
179
|
+
})]
|
|
180
|
+
}), showKeys.includes('womanSitNums') && /*#__PURE__*/_jsxs("div", {
|
|
181
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
182
|
+
style: {
|
|
183
|
+
fontSize: '24px'
|
|
184
|
+
},
|
|
185
|
+
children: (_gcDetail$seatNumFema = gcDetail.seatNumFemale) !== null && _gcDetail$seatNumFema !== void 0 ? _gcDetail$seatNumFema : '--'
|
|
186
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
187
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
188
|
+
src: require("./assets/".concat(theme, "/zw.png")),
|
|
189
|
+
alt: "zw"
|
|
190
|
+
}), "\u5EA7\u4F4D\u6570"]
|
|
191
|
+
})]
|
|
192
|
+
}), showKeys.includes('womanAccessibilityNums') && /*#__PURE__*/_jsxs("div", {
|
|
193
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
194
|
+
style: {
|
|
195
|
+
color: '#1CE548',
|
|
196
|
+
fontSize: '24px'
|
|
197
|
+
},
|
|
198
|
+
children: "1"
|
|
199
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
200
|
+
style: {
|
|
201
|
+
fontSize: '24px'
|
|
202
|
+
},
|
|
203
|
+
children: (_gcDetail$womanAccess = gcDetail.womanAccessibilityNumsFemale) !== null && _gcDetail$womanAccess !== void 0 ? _gcDetail$womanAccess : '--'
|
|
204
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
205
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
206
|
+
src: require("./assets/".concat(theme, "/wza.png")),
|
|
207
|
+
alt: "wza"
|
|
208
|
+
}), "\u65E0\u969C\u788D"]
|
|
209
|
+
})]
|
|
210
|
+
})]
|
|
211
|
+
})]
|
|
212
|
+
})]
|
|
213
|
+
})]
|
|
214
|
+
});
|
|
215
|
+
});
|