Auto Submit

dev_local_v9_test4
autosubmit 1 year ago
parent 18e696592d
commit e6a4ddac79

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

@ -70,6 +70,9 @@ var _umi_production_exports = __webpack_require__(5841);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
@ -82,6 +85,8 @@ var fetch = __webpack_require__(43391);
var env = __webpack_require__(43873);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules
var dropdown = __webpack_require__(38854);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.9@@babel/runtime/helpers/esm/extends.js
@ -128,6 +133,7 @@ var jsx_runtime = __webpack_require__(37712);
/* harmony default export */ var Filebook = (function (_ref) {
var id = _ref.id,
onClose = _ref.onClose;
@ -180,7 +186,7 @@ var jsx_runtime = __webpack_require__(37712);
// };
function _getDetail() {
_getDetail = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(id) {
var res, _res$data;
var res, _res$data, _res$data2, datas, vdata;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -195,6 +201,25 @@ var jsx_runtime = __webpack_require__(37712);
return item === null || item === void 0 ? void 0 : item.article_title;
}));
setdatalist(res === null || res === void 0 ? void 0 : res.data);
datas = [];
res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 || (_res$data2 = _res$data2.list) === null || _res$data2 === void 0 || _res$data2.map(function (item, index) {
var _item$page_previews;
item === null || item === void 0 || (_item$page_previews = item.page_previews) === null || _item$page_previews === void 0 || _item$page_previews.map(function (item, jindex) {
var val = objectSpread2_default()(objectSpread2_default()({}, item), {}, {
index: index
// valpage: jindex + 1,
});
datas.push(val);
});
});
vdata = [];
datas === null || datas === void 0 || datas.map(function (item, index) {
var val = objectSpread2_default()(objectSpread2_default()({}, item), {}, {
valpage: index + 1
});
vdata.push(val);
});
setimages(vdata);
}
case 4:
case "end":
@ -313,11 +338,43 @@ var jsx_runtime = __webpack_require__(37712);
style: {
marginRight: 20
},
onClick: upPage,
onClick: function onClick() {
var item = images === null || images === void 0 ? void 0 : images[page];
//判断 如果article_id为空 责为第一篇
if ((item === null || item === void 0 ? void 0 : item.index) === 0) {
message/* default */.ZP.info('已经是第一篇了');
} else {
var _val$, _window3;
var val = images.filter(function (jtem) {
return (jtem === null || jtem === void 0 ? void 0 : jtem.index) === (item === null || item === void 0 ? void 0 : item.index) - 1;
});
// console.log('---', val);
var pagenum = val === null || val === void 0 || (_val$ = val[0]) === null || _val$ === void 0 ? void 0 : _val$.valpage;
console.log('---', pagenum);
(_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.abc) === null || _window3 === void 0 || _window3.turn("page", pagenum);
}
},
children: "\u4E0A\u4E00\u7BC7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: MonthlyPreviewmodules.com_btn,
onClick: downPage,
onClick: function onClick() {
var item = images === null || images === void 0 ? void 0 : images[page];
var lastitem = images === null || images === void 0 ? void 0 : images[(images === null || images === void 0 ? void 0 : images.length) - 1];
//判断 如果article_id为空 责为第一篇
if ((item === null || item === void 0 ? void 0 : item.index) === (lastitem === null || lastitem === void 0 ? void 0 : lastitem.index)) {
message/* default */.ZP.info('已经是最后一篇了');
} else {
var _val$2, _window4;
var val = images.filter(function (jtem) {
return (jtem === null || jtem === void 0 ? void 0 : jtem.index) === (item === null || item === void 0 ? void 0 : item.index) + 1;
});
// console.log('---', val);
var pagenum = val === null || val === void 0 || (_val$2 = val[0]) === null || _val$2 === void 0 ? void 0 : _val$2.valpage;
console.log('---', pagenum);
(_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.abc) === null || _window4 === void 0 || _window4.turn("page", pagenum);
}
},
children: "\u4E0B\u4E00\u7BC7"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -359,7 +416,14 @@ var jsx_runtime = __webpack_require__(37712);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: MonthlyPreviewmodules.menu_item,
onClick: function onClick() {
console.log('item', item);
var _val$3, _window5;
var val = images.filter(function (jtem) {
return (jtem === null || jtem === void 0 ? void 0 : jtem.article_id) === (item === null || item === void 0 ? void 0 : item.article_id);
});
// console.log('---', val);
var pagenum = val === null || val === void 0 || (_val$3 = val[0]) === null || _val$3 === void 0 ? void 0 : _val$3.valpage;
console.log('---', pagenum);
(_window5 = window) === null || _window5 === void 0 || (_window5 = _window5.abc) === null || _window5 === void 0 || _window5.turn("page", pagenum);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: item === null || item === void 0 ? void 0 : item.article_title

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