|
|
|
|
@ -24,7 +24,9 @@ var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
|
|
var _umi_production_exports = __webpack_require__(88271);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/NewHomeEntrance1/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var NewHomeEntrance1modules = ({"homeEntrance":"homeEntrance___MyCMy","go_back":"go_back___uP7d0","heard_warp":"heard_warp___IPU2u","info_con":"info_con___DQWVI","left_Warp":"left_Warp___yOqIn","tabs":"tabs____LrNs","con_img":"con_img___U8H2R","right_Warp":"right_Warp___pkVIA","title":"title___Wvyt0","con_text":"con_text___cuWmr","detail_btn":"detail_btn___B3mW1","text3":"text3___kgmiO","text4":"text4___hjJHl","text5":"text5___klMzn","text3_active":"text3_active___ETqmQ","text4_active":"text4_active___pWHSi","text5_active":"text5_active___YfsF_","content":"content___TrM8Y","ts":"ts___N9uUa","detail":"detail___IE98U","detail1":"detail1___zHTxL","sy_top_bom":"sy_top_bom___Zo69t","sy_top_bom1":"sy_top_bom1___hj0mc"});
|
|
|
|
|
/* harmony default export */ var NewHomeEntrance1modules = ({"homeEntrance":"homeEntrance___MyCMy","go_back":"go_back___uP7d0","heard_warp":"heard_warp___IPU2u","info_con":"info_con___DQWVI","left_Warp":"left_Warp___yOqIn","tabs":"tabs____LrNs","con_img":"con_img___U8H2R","right_Warp":"right_Warp___pkVIA","title":"title___Wvyt0","con_text":"con_text___cuWmr","detail_btn":"detail_btn___B3mW1","text3":"text3___kgmiO","text4":"text4___hjJHl","text5":"text5___klMzn","text3_active":"text3_active___ETqmQ","text4_active":"text4_active___pWHSi","text5_active":"text5_active___YfsF_","content":"content___TrM8Y","ts":"ts___N9uUa","detail":"detail___IE98U","detail1":"detail1___zHTxL","sy_top_bom":"sy_top_bom___Zo69t","sy_top_bom1":"sy_top_bom1___hj0mc","bottom_list":"bottom_list___MNE7M","bottom_list1":"bottom_list1___Yo7gx"});
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/authority.ts
|
|
|
|
|
var authority = __webpack_require__(64118);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/NewHomeEntrance1/index.tsx
|
|
|
|
|
@ -34,8 +36,9 @@ var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var NewHomeEntrance1 = function NewHomeEntrance1(_ref) {
|
|
|
|
|
var _data$current, _data$current2, _data$current3, _data$current4, _data$current5, _data$current6;
|
|
|
|
|
var _data$current, _data$current2, _data$current3, _data$current4, _data$current5, _data$current6, _data$current7;
|
|
|
|
|
var user = _ref.user,
|
|
|
|
|
dispatch = _ref.dispatch;
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
@ -51,11 +54,92 @@ var NewHomeEntrance1 = function NewHomeEntrance1(_ref) {
|
|
|
|
|
var data = [{
|
|
|
|
|
name: '实验室管理',
|
|
|
|
|
className: 'text5',
|
|
|
|
|
url: '/laboratory/reservations',
|
|
|
|
|
title: '预约先行,科研无忧',
|
|
|
|
|
content: '提供在线预约、智能资源分配、多级审批流程等功能,确保实验空间及其他设施的合理利用',
|
|
|
|
|
img1: [__webpack_require__(/*! ./img/实验预约.png */ 36852), __webpack_require__(/*! ./img/实验开放预约.png */ 96217), __webpack_require__(/*! ./img/我的预约.png */ 36583)],
|
|
|
|
|
img2: [__webpack_require__(/*! ./img/工作台1.png */ 6476), __webpack_require__(/*! ./img/工作台2.png */ 87304), __webpack_require__(/*! ./img/工作台3.png */ 94370), __webpack_require__(/*! ./img/工作台4.png */ 40111), __webpack_require__(/*! ./img/工作台5.png */ 82726), __webpack_require__(/*! ./img/工作台6.png */ 98177)]
|
|
|
|
|
dom: function dom() {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: NewHomeEntrance1modules.sy_top_bom,
|
|
|
|
|
children: [{
|
|
|
|
|
url: '',
|
|
|
|
|
img: __webpack_require__(/*! ./img/实验预约.png */ 36852)
|
|
|
|
|
}, {
|
|
|
|
|
url: '',
|
|
|
|
|
img: __webpack_require__(/*! ./img/实验开放预约.png */ 96217)
|
|
|
|
|
}, {
|
|
|
|
|
url: '',
|
|
|
|
|
img: __webpack_require__(/*! ./img/我的预约.png */ 36583)
|
|
|
|
|
}].map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: NewHomeEntrance1modules.bottom_list,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: item === null || item === void 0 ? void 0 : item.img,
|
|
|
|
|
style: {
|
|
|
|
|
position: 'relative',
|
|
|
|
|
width: '100%',
|
|
|
|
|
height: '100%'
|
|
|
|
|
}
|
|
|
|
|
}, index), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: NewHomeEntrance1modules.detail,
|
|
|
|
|
children: ["\u67E5\u770B\u8BE6\u60C5", /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: __webpack_require__(/*! ./img/箭头.png */ 70514),
|
|
|
|
|
style: {
|
|
|
|
|
width: '1.2vw',
|
|
|
|
|
height: '1vh',
|
|
|
|
|
marginLeft: '0.3vw',
|
|
|
|
|
marginRight: '1vw'
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
}), !(0,authority/* isCommonStudent */.JA)() && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: NewHomeEntrance1modules.sy_top_bom1,
|
|
|
|
|
children: [{
|
|
|
|
|
url: '',
|
|
|
|
|
img: __webpack_require__(/*! ./img/工作台1.png */ 6476)
|
|
|
|
|
}, {
|
|
|
|
|
url: '',
|
|
|
|
|
img: __webpack_require__(/*! ./img/工作台2.png */ 87304)
|
|
|
|
|
}, {
|
|
|
|
|
url: '',
|
|
|
|
|
img: __webpack_require__(/*! ./img/工作台3.png */ 94370)
|
|
|
|
|
}, {
|
|
|
|
|
url: '',
|
|
|
|
|
img: __webpack_require__(/*! ./img/工作台4.png */ 40111)
|
|
|
|
|
}, {
|
|
|
|
|
url: '',
|
|
|
|
|
img: __webpack_require__(/*! ./img/工作台5.png */ 82726)
|
|
|
|
|
}, {
|
|
|
|
|
url: '',
|
|
|
|
|
img: __webpack_require__(/*! ./img/工作台6.png */ 98177)
|
|
|
|
|
}].map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: NewHomeEntrance1modules.bottom_list1,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: item === null || item === void 0 ? void 0 : item.img,
|
|
|
|
|
style: {
|
|
|
|
|
position: 'relative',
|
|
|
|
|
width: '100%',
|
|
|
|
|
height: '100%'
|
|
|
|
|
}
|
|
|
|
|
}, index), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "".concat(NewHomeEntrance1modules.detail, " ").concat(NewHomeEntrance1modules.detail1),
|
|
|
|
|
children: ["\u67E5\u770B\u8BE6\u60C5", /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: __webpack_require__(/*! ./img/箭头.png */ 70514),
|
|
|
|
|
style: {
|
|
|
|
|
width: '1vw',
|
|
|
|
|
height: '0.8vh',
|
|
|
|
|
marginLeft: '0.3vw',
|
|
|
|
|
marginRight: '1vw'
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
name: '设备管理',
|
|
|
|
|
className: 'text4',
|
|
|
|
|
@ -78,6 +162,8 @@ var NewHomeEntrance1 = function NewHomeEntrance1(_ref) {
|
|
|
|
|
content: '提供在线预约、智能资源分配、多级审批流程等功能,确保实验空间及其他设施的合理利用',
|
|
|
|
|
img: __webpack_require__(/*! ./img/教学课堂.png */ 88500)
|
|
|
|
|
}];
|
|
|
|
|
//<img src={require(`./img/${data[current]?.name}.png`)} style={{ width: '44.5vw', height: '49.5vh' }} />
|
|
|
|
|
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: NewHomeEntrance1modules.homeEntrance,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
@ -105,70 +191,7 @@ var NewHomeEntrance1 = function NewHomeEntrance1(_ref) {
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: NewHomeEntrance1modules.con_img,
|
|
|
|
|
children: ((_data$current = data[current]) === null || _data$current === void 0 ? void 0 : _data$current.name) == '实验室管理' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: NewHomeEntrance1modules.sy_top_bom,
|
|
|
|
|
children: data[current].img1.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
position: 'relative',
|
|
|
|
|
width: '32%',
|
|
|
|
|
height: '100%'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: item,
|
|
|
|
|
style: {
|
|
|
|
|
position: 'relative',
|
|
|
|
|
width: '100%',
|
|
|
|
|
height: '100%'
|
|
|
|
|
}
|
|
|
|
|
}, index), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: NewHomeEntrance1modules.detail,
|
|
|
|
|
children: ["\u67E5\u770B\u8BE6\u60C5", /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: __webpack_require__(/*! ./img/箭头.png */ 70514),
|
|
|
|
|
style: {
|
|
|
|
|
width: '1.2vw',
|
|
|
|
|
height: '1vh',
|
|
|
|
|
marginLeft: '0.3vw',
|
|
|
|
|
marginRight: '1vw'
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: NewHomeEntrance1modules.sy_top_bom1,
|
|
|
|
|
children: data[current].img2.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
position: 'relative',
|
|
|
|
|
width: '31%',
|
|
|
|
|
height: '36%',
|
|
|
|
|
marginTop: '2vh'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: item,
|
|
|
|
|
style: {
|
|
|
|
|
position: 'relative',
|
|
|
|
|
width: '100%',
|
|
|
|
|
height: '100%'
|
|
|
|
|
}
|
|
|
|
|
}, index), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "".concat(NewHomeEntrance1modules.detail, " ").concat(NewHomeEntrance1modules.detail1),
|
|
|
|
|
children: ["\u67E5\u770B\u8BE6\u60C5", /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: __webpack_require__(/*! ./img/箭头.png */ 70514),
|
|
|
|
|
style: {
|
|
|
|
|
width: '1.2vw',
|
|
|
|
|
height: '1vh',
|
|
|
|
|
marginLeft: '0.3vw',
|
|
|
|
|
marginRight: '1vw'
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
children: ((_data$current = data[current]) === null || _data$current === void 0 ? void 0 : _data$current.name) == '实验室管理' && data[current].dom()
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: NewHomeEntrance1modules.right_Warp,
|
|
|
|
|
@ -208,12 +231,12 @@ var NewHomeEntrance1 = function NewHomeEntrance1(_ref) {
|
|
|
|
|
className: NewHomeEntrance1modules.content,
|
|
|
|
|
children: (_data$current6 = data[current]) === null || _data$current6 === void 0 ? void 0 : _data$current6.content
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
}), !['实验室管理'].includes((_data$current7 = data[current]) === null || _data$current7 === void 0 ? void 0 : _data$current7.name) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: NewHomeEntrance1modules.detail_btn,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
var _data$current7;
|
|
|
|
|
return _umi_production_exports.history.push((_data$current7 = data[current]) === null || _data$current7 === void 0 ? void 0 : _data$current7.url);
|
|
|
|
|
var _data$current8;
|
|
|
|
|
return _umi_production_exports.history.push((_data$current8 = data[current]) === null || _data$current8 === void 0 ? void 0 : _data$current8.url);
|
|
|
|
|
},
|
|
|
|
|
children: "\u67E5\u770B\u8BE6\u60C5"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|