|
|
|
|
@ -28,8 +28,6 @@ var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
|
|
|
var fetch = __webpack_require__(82710);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
|
|
|
|
|
var input = __webpack_require__(92832);
|
|
|
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
|
|
|
var _umi_production_exports = __webpack_require__(88271);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
|
|
|
@ -891,7 +889,7 @@ var PreviewAll = __webpack_require__(28872);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Journal = function Journal() {
|
|
|
|
|
var Journal = function Journal(search) {
|
|
|
|
|
var urlParams = (0,_umi_production_exports.useParams)();
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
@ -967,9 +965,12 @@ var Journal = function Journal() {
|
|
|
|
|
case 0:
|
|
|
|
|
setLoading(true);
|
|
|
|
|
_context2.next = 3;
|
|
|
|
|
return (0,magazine/* getMagazinDetail */.lR)(objectSpread2_default()({
|
|
|
|
|
id: urlParams === null || urlParams === void 0 ? void 0 : urlParams.id
|
|
|
|
|
}, params));
|
|
|
|
|
return (0,magazine/* getMagazinDetail */.lR)({
|
|
|
|
|
id: urlParams === null || urlParams === void 0 ? void 0 : urlParams.id,
|
|
|
|
|
start_time: dayjs_min_default()(params.year + '-' + params.month, 'YYYY-MM').startOf('month').format('YYYY-MM-DD'),
|
|
|
|
|
end_time: dayjs_min_default()(params.year + '-' + params.month, 'YYYY-MM').endOf('month').format('YYYY-MM-DD'),
|
|
|
|
|
keyword: (search === null || search === void 0 ? void 0 : search.search) || ''
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
@ -988,7 +989,7 @@ var Journal = function Journal() {
|
|
|
|
|
}();
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
getData();
|
|
|
|
|
}, [params]);
|
|
|
|
|
}, [params, search]);
|
|
|
|
|
var calendar = Array.from({
|
|
|
|
|
length: 5
|
|
|
|
|
}, function (_, index) {
|
|
|
|
|
@ -1006,9 +1007,8 @@ var Journal = function Journal() {
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
if (params.month == 12 - jndex || isDisabled) return;
|
|
|
|
|
setParams(objectSpread2_default()(objectSpread2_default()({}, params), {}, {
|
|
|
|
|
month: 12 - jndex
|
|
|
|
|
}));
|
|
|
|
|
params.month = (12 - jndex).toString().padStart(2, '0');
|
|
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
|
|
},
|
|
|
|
|
children: 12 - jndex
|
|
|
|
|
}, jndex);
|
|
|
|
|
@ -1037,9 +1037,9 @@ var Journal = function Journal() {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(collapse/* default */.Z, {
|
|
|
|
|
defaultActiveKey: [Number(dayjs_min_default()().format('YYYY'))],
|
|
|
|
|
onChange: function onChange(activeKey) {
|
|
|
|
|
setParams(objectSpread2_default()(objectSpread2_default()({}, params), {}, {
|
|
|
|
|
year: activeKey[0]
|
|
|
|
|
}));
|
|
|
|
|
params.year = activeKey[0];
|
|
|
|
|
params.month = '01';
|
|
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
|
|
},
|
|
|
|
|
expandIcon: function expandIcon(_ref3) {
|
|
|
|
|
var isActive = _ref3.isActive;
|
|
|
|
|
@ -1145,6 +1145,8 @@ var Journal = function Journal() {
|
|
|
|
|
/* harmony default export */ var components_Journal = (Journal);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
|
|
|
|
var es_form = __webpack_require__(78241);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
|
|
|
|
|
var input = __webpack_require__(92832);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
|
|
|
|
|
var es_select = __webpack_require__(57809);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules
|
|
|
|
|
@ -2542,6 +2544,8 @@ var Review_Journal = function Journal() {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var Review = (Review_Journal);
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 30 modules
|
|
|
|
|
var ui_customization = __webpack_require__(81001);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/MagazineVer/Detail/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2610,6 +2614,10 @@ var MagazineVerDetail = function MagazineVerDetail() {
|
|
|
|
|
return _ref.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
var handleFilter = function handleFilter(v) {
|
|
|
|
|
var _decodeURIComponent;
|
|
|
|
|
setKeyword((_decodeURIComponent = decodeURIComponent(v)) === null || _decodeURIComponent === void 0 ? void 0 : _decodeURIComponent.trim());
|
|
|
|
|
};
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Detailmodules.detail_con,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -2720,25 +2728,28 @@ var MagazineVerDetail = function MagazineVerDetail() {
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Detailmodules.nav_right,
|
|
|
|
|
children: [0].includes(tabActive) && /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
|
|
|
|
|
placeholder: "\u520A\u5185\u641C\u7D22",
|
|
|
|
|
size: "large",
|
|
|
|
|
className: Detailmodules.search,
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
return setKeyword(e.target.value);
|
|
|
|
|
},
|
|
|
|
|
onSearch: function onSearch(value) {
|
|
|
|
|
return setKeyword(value);
|
|
|
|
|
children: [0].includes(tabActive) && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomInput */.t7, {
|
|
|
|
|
style: {
|
|
|
|
|
width: 260
|
|
|
|
|
},
|
|
|
|
|
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-sousuo9 font14 ".concat(Detailmodules.searchIcon),
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
// getData()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
value: keyword,
|
|
|
|
|
onChange: handleFilter,
|
|
|
|
|
placeholder: "\u520A\u5185\u641C\u7D22"
|
|
|
|
|
})
|
|
|
|
|
// <Input.Search
|
|
|
|
|
// placeholder='刊内搜索'
|
|
|
|
|
// size='large'
|
|
|
|
|
// className={styles.search}
|
|
|
|
|
// onChange={(e) => setKeyword(e.target.value)}
|
|
|
|
|
// onSearch={(value) => setKeyword(value)}
|
|
|
|
|
// suffix={<i className={`iconfont icon-sousuo9 font14 ${styles.searchIcon}`} onClick={() => {
|
|
|
|
|
// // getData()
|
|
|
|
|
// }} />}
|
|
|
|
|
// />
|
|
|
|
|
})]
|
|
|
|
|
}), tabList[tabActive] === '期刊导览' && /*#__PURE__*/(0,jsx_runtime.jsx)(components_Journal, {}), tabList[tabActive] === '在线投稿' && /*#__PURE__*/(0,jsx_runtime.jsx)(Submission, {}), tabList[tabActive] === '评论互动' && (data !== null && data !== void 0 && data.memo_id ? /*#__PURE__*/(0,jsx_runtime.jsx)(components_Comment, {
|
|
|
|
|
}), tabList[tabActive] === '期刊导览' && /*#__PURE__*/(0,jsx_runtime.jsx)(components_Journal, {
|
|
|
|
|
search: keyword
|
|
|
|
|
}), tabList[tabActive] === '在线投稿' && /*#__PURE__*/(0,jsx_runtime.jsx)(Submission, {}), tabList[tabActive] === '评论互动' && (data !== null && data !== void 0 && data.memo_id ? /*#__PURE__*/(0,jsx_runtime.jsx)(components_Comment, {
|
|
|
|
|
memoId: data === null || data === void 0 ? void 0 : data.memo_id,
|
|
|
|
|
allowForbidMsg: data === null || data === void 0 ? void 0 : data.is_forbid_msg
|
|
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})), tabList[tabActive] === '投稿审核' && /*#__PURE__*/(0,jsx_runtime.jsx)(Review, {})]
|
|
|
|
|
@ -3030,8 +3041,8 @@ function _forbid_msg() {
|
|
|
|
|
/* harmony export */ OD: function() { return /* binding */ editArticle; },
|
|
|
|
|
/* harmony export */ QM: function() { return /* binding */ postMagazin; },
|
|
|
|
|
/* harmony export */ dV: function() { return /* binding */ getMagazinCat; },
|
|
|
|
|
/* harmony export */ f0: function() { return /* binding */ getMagazinList; },
|
|
|
|
|
/* harmony export */ id: function() { return /* binding */ getMagazinColumn; },
|
|
|
|
|
/* harmony export */ j: function() { return /* binding */ getMagazinRecArc; },
|
|
|
|
|
/* harmony export */ lR: function() { return /* binding */ getMagazinDetail; },
|
|
|
|
|
/* harmony export */ lp: function() { return /* binding */ getReviewProgress; },
|
|
|
|
|
/* harmony export */ o7: function() { return /* binding */ getMagazinNew; },
|
|
|
|
|
@ -3040,6 +3051,7 @@ function _forbid_msg() {
|
|
|
|
|
/* harmony export */ vn: function() { return /* binding */ getMagazinHot; },
|
|
|
|
|
/* harmony export */ zo: function() { return /* binding */ getMagazinRec; }
|
|
|
|
|
/* harmony export */ });
|
|
|
|
|
/* unused harmony export getMagazinList */
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
|
|
|
|
|
@ -3140,8 +3152,6 @@ function _getStatistic() {
|
|
|
|
|
function getMagazinCat() {
|
|
|
|
|
return _getMagazinCat.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//首页-获取文章列表
|
|
|
|
|
function _getMagazinCat() {
|
|
|
|
|
_getMagazinCat = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee5() {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee5$(_context5) {
|
|
|
|
|
@ -3158,17 +3168,17 @@ function _getMagazinCat() {
|
|
|
|
|
}));
|
|
|
|
|
return _getMagazinCat.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function getMagazinList(_x2) {
|
|
|
|
|
return _getMagazinList.apply(this, arguments);
|
|
|
|
|
function getMagazinRecArc(_x2) {
|
|
|
|
|
return _getMagazinRecArc.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 我的期刊
|
|
|
|
|
function _getMagazinList() {
|
|
|
|
|
_getMagazinList = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee6(params) {
|
|
|
|
|
//首页-获取文章列表
|
|
|
|
|
function _getMagazinRecArc() {
|
|
|
|
|
_getMagazinRecArc = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee6(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee6$(_context6) {
|
|
|
|
|
while (1) switch (_context6.prev = _context6.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context6.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/articles.json", {
|
|
|
|
|
return _context6.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/articles/recommended.json", {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
@ -3178,6 +3188,28 @@ function _getMagazinList() {
|
|
|
|
|
}
|
|
|
|
|
}, _callee6);
|
|
|
|
|
}));
|
|
|
|
|
return _getMagazinRecArc.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function getMagazinList(_x3) {
|
|
|
|
|
return _getMagazinList.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 我的期刊
|
|
|
|
|
function _getMagazinList() {
|
|
|
|
|
_getMagazinList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(params) {
|
|
|
|
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
|
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context7.abrupt("return", Fetch("/api/articles.json", {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: _objectSpread({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context7.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee7);
|
|
|
|
|
}));
|
|
|
|
|
return _getMagazinList.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function getMyMagazinList() {
|
|
|
|
|
@ -3186,192 +3218,192 @@ function getMyMagazinList() {
|
|
|
|
|
|
|
|
|
|
// 获取期刊详情
|
|
|
|
|
function _getMyMagazinList() {
|
|
|
|
|
_getMyMagazinList = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee7() {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee7$(_context7) {
|
|
|
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
|
|
|
_getMyMagazinList = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee8() {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee8$(_context8) {
|
|
|
|
|
while (1) switch (_context8.prev = _context8.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context7.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/mine.json", {
|
|
|
|
|
return _context8.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/mine.json", {
|
|
|
|
|
method: 'get'
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context7.stop();
|
|
|
|
|
return _context8.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee7);
|
|
|
|
|
}, _callee8);
|
|
|
|
|
}));
|
|
|
|
|
return _getMyMagazinList.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function getMagazinDetail(_x3) {
|
|
|
|
|
function getMagazinDetail(_x4) {
|
|
|
|
|
return _getMagazinDetail.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取期刊栏目
|
|
|
|
|
function _getMagazinDetail() {
|
|
|
|
|
_getMagazinDetail = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee8(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee8$(_context8) {
|
|
|
|
|
while (1) switch (_context8.prev = _context8.next) {
|
|
|
|
|
_getMagazinDetail = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee9(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee9$(_context9) {
|
|
|
|
|
while (1) switch (_context9.prev = _context9.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context8.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/".concat(params === null || params === void 0 ? void 0 : params.id, ".json"), {
|
|
|
|
|
return _context9.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/".concat(params === null || params === void 0 ? void 0 : params.id, ".json"), {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context8.stop();
|
|
|
|
|
return _context9.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee8);
|
|
|
|
|
}, _callee9);
|
|
|
|
|
}));
|
|
|
|
|
return _getMagazinDetail.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function getMagazinColumn(_x4) {
|
|
|
|
|
function getMagazinColumn(_x5) {
|
|
|
|
|
return _getMagazinColumn.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 投稿
|
|
|
|
|
function _getMagazinColumn() {
|
|
|
|
|
_getMagazinColumn = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee9(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee9$(_context9) {
|
|
|
|
|
while (1) switch (_context9.prev = _context9.next) {
|
|
|
|
|
_getMagazinColumn = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee10(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee10$(_context10) {
|
|
|
|
|
while (1) switch (_context10.prev = _context10.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context9.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/categories.json", {
|
|
|
|
|
return _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/categories.json", {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context9.stop();
|
|
|
|
|
return _context10.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee9);
|
|
|
|
|
}, _callee10);
|
|
|
|
|
}));
|
|
|
|
|
return _getMagazinColumn.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function postMagazin(_x5) {
|
|
|
|
|
function postMagazin(_x6) {
|
|
|
|
|
return _postMagazin.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 审核
|
|
|
|
|
function _postMagazin() {
|
|
|
|
|
_postMagazin = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee10(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee10$(_context10) {
|
|
|
|
|
while (1) switch (_context10.prev = _context10.next) {
|
|
|
|
|
_postMagazin = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee11(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee11$(_context11) {
|
|
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/submit.json", {
|
|
|
|
|
return _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/submit.json", {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context10.stop();
|
|
|
|
|
return _context11.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee10);
|
|
|
|
|
}, _callee11);
|
|
|
|
|
}));
|
|
|
|
|
return _postMagazin.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function getMagazinCheck(_x6) {
|
|
|
|
|
function getMagazinCheck(_x7) {
|
|
|
|
|
return _getMagazinCheck.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 审核列表
|
|
|
|
|
function _getMagazinCheck() {
|
|
|
|
|
_getMagazinCheck = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee11(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee11$(_context11) {
|
|
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
|
|
_getMagazinCheck = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee12(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee12$(_context12) {
|
|
|
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/articles/".concat(params === null || params === void 0 ? void 0 : params.id, "/audit.json"), {
|
|
|
|
|
return _context12.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/articles/".concat(params === null || params === void 0 ? void 0 : params.id, "/audit.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context11.stop();
|
|
|
|
|
return _context12.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee11);
|
|
|
|
|
}, _callee12);
|
|
|
|
|
}));
|
|
|
|
|
return _getMagazinCheck.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function getReviewList(_x7) {
|
|
|
|
|
function getReviewList(_x8) {
|
|
|
|
|
return _getReviewList.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 审核进度
|
|
|
|
|
function _getReviewList() {
|
|
|
|
|
_getReviewList = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee12(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee12$(_context12) {
|
|
|
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
|
|
|
_getReviewList = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee13(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee13$(_context13) {
|
|
|
|
|
while (1) switch (_context13.prev = _context13.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context12.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/".concat(params === null || params === void 0 ? void 0 : params.id, "/articles.json"), {
|
|
|
|
|
return _context13.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/".concat(params === null || params === void 0 ? void 0 : params.id, "/articles.json"), {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context12.stop();
|
|
|
|
|
return _context13.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee12);
|
|
|
|
|
}, _callee13);
|
|
|
|
|
}));
|
|
|
|
|
return _getReviewList.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function getReviewProgress(_x8) {
|
|
|
|
|
function getReviewProgress(_x9) {
|
|
|
|
|
return _getReviewProgress.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//取消投稿
|
|
|
|
|
function _getReviewProgress() {
|
|
|
|
|
_getReviewProgress = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee13(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee13$(_context13) {
|
|
|
|
|
while (1) switch (_context13.prev = _context13.next) {
|
|
|
|
|
_getReviewProgress = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee14(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee14$(_context14) {
|
|
|
|
|
while (1) switch (_context14.prev = _context14.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context13.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/".concat(params === null || params === void 0 ? void 0 : params.id, "/article_progress.json"), {
|
|
|
|
|
return _context14.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/".concat(params === null || params === void 0 ? void 0 : params.id, "/article_progress.json"), {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context13.stop();
|
|
|
|
|
return _context14.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee13);
|
|
|
|
|
}, _callee14);
|
|
|
|
|
}));
|
|
|
|
|
return _getReviewProgress.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function canclePost(_x9) {
|
|
|
|
|
function canclePost(_x10) {
|
|
|
|
|
return _canclePost.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 编辑稿件
|
|
|
|
|
function _canclePost() {
|
|
|
|
|
_canclePost = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee14(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee14$(_context14) {
|
|
|
|
|
while (1) switch (_context14.prev = _context14.next) {
|
|
|
|
|
_canclePost = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee15(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee15$(_context15) {
|
|
|
|
|
while (1) switch (_context15.prev = _context15.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context14.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/".concat(params === null || params === void 0 ? void 0 : params.id, "/cancel_submit.json"), {
|
|
|
|
|
return _context15.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/".concat(params === null || params === void 0 ? void 0 : params.id, "/cancel_submit.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context14.stop();
|
|
|
|
|
return _context15.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee14);
|
|
|
|
|
}, _callee15);
|
|
|
|
|
}));
|
|
|
|
|
return _canclePost.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function editArticle(_x10) {
|
|
|
|
|
function editArticle(_x11) {
|
|
|
|
|
return _editArticle.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function _editArticle() {
|
|
|
|
|
_editArticle = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee15(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee15$(_context15) {
|
|
|
|
|
while (1) switch (_context15.prev = _context15.next) {
|
|
|
|
|
_editArticle = _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee16(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee16$(_context16) {
|
|
|
|
|
while (1) switch (_context16.prev = _context16.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context15.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/".concat(params === null || params === void 0 ? void 0 : params.id, "/change_submit.json"), {
|
|
|
|
|
return _context16.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/".concat(params === null || params === void 0 ? void 0 : params.id, "/change_submit.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context15.stop();
|
|
|
|
|
return _context16.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee15);
|
|
|
|
|
}, _callee16);
|
|
|
|
|
}));
|
|
|
|
|
return _editArticle.apply(this, arguments);
|
|
|
|
|
}
|