Auto Submit

dev_local_v9_test4
autosubmit 1 year ago
parent af9a975b40
commit 9dff3f9a47

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.04ace698.js"></script>
<script src="/react/build/umi.e31269ce.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -107,22 +107,18 @@ var Message = function Message(_ref) {
}, [isEdit, data]);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
var _values$attachment_id, fileExtensions, res;
var _values$attachment_id, _values$attachment_id2, type, res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (values.attachment_ids) {
// 使用正则表达式提取文件后缀
fileExtensions = values.attachment_ids.map(function (t) {
return t.match(/[^.]+$/)[0];
});
console.log("fileExtensions", fileExtensions);
if (fileExtensions.includes('mp4')) {
type = ((_values$attachment_id = values.attachment_ids[0]) === null || _values$attachment_id === void 0 ? void 0 : _values$attachment_id.type) || [];
if (type !== null && type !== void 0 && type.includes('video/mp4')) {
values.category = 'video';
} else {
values.category = 'information';
}
values.attachment_ids = values === null || values === void 0 || (_values$attachment_id = values.attachment_ids) === null || _values$attachment_id === void 0 ? void 0 : _values$attachment_id.map(function (v) {
values.attachment_ids = values === null || values === void 0 || (_values$attachment_id2 = values.attachment_ids) === null || _values$attachment_id2 === void 0 ? void 0 : _values$attachment_id2.map(function (v) {
var _v$response;
return v === null || v === void 0 || (_v$response = v.response) === null || _v$response === void 0 ? void 0 : _v$response.id;
});

@ -33,15 +33,9 @@ var _react_17_0_2_react = __webpack_require__(59301);
var _umi_production_exports = __webpack_require__(88271);
;// CONCATENATED MODULE: ./src/pages/MagazineVer/Index/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Indexmodules = ({"Onerow":"Onerow___u8MvN","MultiLine":"MultiLine___cKaw5","wrap":"wrap___ZWZb6","header":"header___NOWe6","core":"core___SwhIn","headerName":"headerName___UMeYn","headerNums":"headerNums___ByzG7","labelSty":"labelSty___rAc2L","numbSty":"numbSty___ZNX1a","addBtn":"addBtn___xv2nJ","knowWrap":"knowWrap___FoU6m","itemWrap":"itemWrap___gEpIh","cover":"cover___A3tvC","imgWrap":"imgWrap___XrLeP","title":"title___HDu22"});
/* harmony default export */ var Indexmodules = ({"Onerow":"Onerow___u8MvN","MultiLine":"MultiLine___cKaw5","wrap":"wrap___ZWZb6","header":"header___NOWe6","core":"core___SwhIn","headerName":"headerName___UMeYn","knowWrap":"knowWrap___FoU6m","itemWrap":"itemWrap___gEpIh","cover":"cover___A3tvC","imgWrap":"imgWrap___XrLeP","title":"title___HDu22"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
// EXTERNAL MODULE: ./src/service/knowbase.ts
var knowbase = __webpack_require__(48969);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 30 modules
@ -136,38 +130,27 @@ var Message = function Message(_ref) {
className: Indexmodules.header,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Indexmodules.core,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Indexmodules.headerName,
children: "\u77E5\u8BC6\u5E93"
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.name,
children: "\u4E91\u6742\u5FD7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.engName,
children: "Cloud Magazine"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.headerNums
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: Indexmodules.addBtn,
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-icon_xinyong_xianxing_jijin-249"
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
type: "default",
onClick: function onClick() {
setShowEdit(true);
},
children: "\u65B0\u5EFA\u77E5\u8BC6\u5E93"
children: "\u6211\u7684\u671F\u520A"
})
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
justify: 'end',
style: {
width: '1200px',
margin: '0 auto'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomInput */.t7, {
style: {
width: 260
},
placeholder: "\u641C\u7D22\u77E5\u8BC6\u5E93\u540D\u79F0",
value: keyword,
onChange: handleSearch
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.knowWrap,
children: inforList.map(function (item, index) {

@ -24,7 +24,7 @@
.wrap___ZWZb6 .header___NOWe6 {
width: 100%;
height: 360px;
background-image: url(./static/knowBase.4e2249e8.png);
background-image: url(./static/magabanner.87d48116.png);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
@ -40,33 +40,10 @@
height: 100%;
}
.wrap___ZWZb6 .header___NOWe6 .core___SwhIn .headerName___UMeYn {
font-size: 36px;
color: #20232B;
line-height: 40px;
letter-spacing: 2px;
}
.wrap___ZWZb6 .header___NOWe6 .core___SwhIn .headerNums___ByzG7 {
display: flex;
align-items: center;
margin-top: 20px;
margin-bottom: 44px;
}
.wrap___ZWZb6 .header___NOWe6 .core___SwhIn .headerNums___ByzG7 .labelSty___rAc2L {
font-weight: 400;
font-size: 14px;
color: #666666;
margin-left: 10px;
margin-right: 10px;
}
.wrap___ZWZb6 .header___NOWe6 .core___SwhIn .headerNums___ByzG7 .numbSty___ZNX1a {
font-weight: 500;
font-size: 16px;
color: #20232B;
}
.wrap___ZWZb6 .header___NOWe6 .core___SwhIn .addBtn___xv2nJ {
background: #3061D0;
border-radius: 4px;
color: #fff;
width: 470px;
height: 72px;
background: linear-gradient(270deg, rgba(45, 112, 212, 0) 0%, rgba(48, 97, 208, 0.6) 100%);
border-radius: 6px 0px 0px 6px;
}
.wrap___ZWZb6 .knowWrap___FoU6m {
width: 1200px;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save