You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
746 lines
42 KiB
746 lines
42 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[80668],{
|
|
|
|
/***/ 23497:
|
|
/*!**********************************************************!*\
|
|
!*** ./src/pages/MagazineVer/Mine/index.tsx + 1 modules ***!
|
|
\**********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
// ESM COMPAT FLAG
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"default": function() { return /* binding */ Mine; }
|
|
});
|
|
|
|
// 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/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(79800);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectDestructuringEmpty.js
|
|
var objectDestructuringEmpty = __webpack_require__(70236);
|
|
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(88271);
|
|
;// CONCATENATED MODULE: ./src/pages/MagazineVer/Mine/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Minemodules = ({"Onerow":"Onerow___XMjo2","MultiLine":"MultiLine___xuD0O","core":"core___qvXbJ","content":"content___N_R93","itemWrap":"itemWrap___DxO1k","info":"info___Sh3nz","name":"name____qsTA","detail":"detail___LfP4Q","label":"label___kxyKx","cont":"cont___g5Oue"});
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
|
|
var spin = __webpack_require__(71418);
|
|
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
|
|
var NoData = __webpack_require__(63017);
|
|
// EXTERNAL MODULE: ./src/service/magazine.tsx
|
|
var magazine = __webpack_require__(20103);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/MagazineVer/Mine/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Message = function Message(_ref) {
|
|
objectDestructuringEmpty_default()(_ref);
|
|
var _useState = (0,_react_17_0_2_react.useState)([]),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
magList = _useState2[0],
|
|
setMagList = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(false),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
loading = _useState4[0],
|
|
setLoading = _useState4[1];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
getMagList();
|
|
}, []);
|
|
var getMagList = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
setLoading(true);
|
|
_context.next = 3;
|
|
return (0,magazine/* getMyMagazinList */.$)().then(function (res) {
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
setMagList(res === null || res === void 0 ? void 0 : res.data);
|
|
}
|
|
});
|
|
case 3:
|
|
setLoading(false);
|
|
case 4:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function getMagList() {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
spinning: loading,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Minemodules.core,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "align-center",
|
|
onClick: function onClick() {
|
|
_umi_production_exports.history.back();
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-fanhui2 front12 current",
|
|
style: {
|
|
color: "#3061D0",
|
|
marginRight: '5px'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
color: "#3061D0",
|
|
fontSize: '14px',
|
|
marginRight: '20px',
|
|
cursor: 'pointer'
|
|
},
|
|
children: "\u8FD4\u56DE"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
fontSize: '16px',
|
|
color: '#000',
|
|
fontWeight: '500'
|
|
},
|
|
children: "\u6211\u7684\u671F\u520A"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Minemodules.content,
|
|
children: !!(magList !== null && magList !== void 0 && magList.length) ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "align-center",
|
|
children: magList === null || magList === void 0 ? void 0 : magList.map(function (item, index) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Minemodules.itemWrap,
|
|
style: {
|
|
marginRight: (index + 1) % 4 === 0 ? '0px' : '9px'
|
|
},
|
|
onClick: function onClick() {
|
|
_umi_production_exports.history.push("/magazineVer/".concat(item === null || item === void 0 ? void 0 : item.id, "/detail"));
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: item === null || item === void 0 ? void 0 : item.cover_url,
|
|
width: 103,
|
|
height: 145
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Minemodules.info,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Minemodules.name,
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Minemodules.detail,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "align-center",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Minemodules.label,
|
|
children: "\u4E3B\u7F16"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Minemodules.cont,
|
|
children: item === null || item === void 0 ? void 0 : item.author_names
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "align-center",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Minemodules.label,
|
|
children: "\u6587\u7AE0\u6570"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Minemodules.cont,
|
|
children: (item === null || item === void 0 ? void 0 : item.articles_count) || 0
|
|
})]
|
|
})]
|
|
})]
|
|
})]
|
|
});
|
|
})
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})
|
|
})]
|
|
})
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var Mine = (Message);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 20103:
|
|
/*!**********************************!*\
|
|
!*** ./src/service/magazine.tsx ***!
|
|
\**********************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ $: function() { return /* binding */ getMyMagazinList; },
|
|
/* harmony export */ BL: function() { return /* binding */ getMagazinCheck; },
|
|
/* harmony export */ E: function() { return /* binding */ canclePost; },
|
|
/* harmony export */ OD: function() { return /* binding */ editArticle; },
|
|
/* harmony export */ P6: function() { return /* binding */ createOtherMagazine; },
|
|
/* harmony export */ QM: function() { return /* binding */ postMagazin; },
|
|
/* harmony export */ UV: function() { return /* binding */ delOtherMagazine; },
|
|
/* harmony export */ Wx: function() { return /* binding */ getMonthlyDetail; },
|
|
/* harmony export */ _3: function() { return /* binding */ getOtherMagazine; },
|
|
/* harmony export */ ah: function() { return /* binding */ reviewCount; },
|
|
/* harmony export */ dV: function() { return /* binding */ getMagazinCat; },
|
|
/* harmony export */ fp: function() { return /* binding */ modifyOtherMagazine; },
|
|
/* harmony export */ i7: function() { return /* binding */ approved_articles; },
|
|
/* 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; },
|
|
/* harmony export */ r3: function() { return /* binding */ delMagazine; },
|
|
/* harmony export */ rZ: function() { return /* binding */ getStatistic; },
|
|
/* harmony export */ t_: function() { return /* binding */ getReviewList; },
|
|
/* 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_test4_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_test4_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_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_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);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/fetch */ 82710);
|
|
|
|
|
|
|
|
|
|
|
|
//首页-热门期刊
|
|
function getMagazinHot() {
|
|
return _getMagazinHot.apply(this, arguments);
|
|
}
|
|
//首页-最新期刊
|
|
function _getMagazinHot() {
|
|
_getMagazinHot = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee() {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/hot.json", {
|
|
method: 'get'
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return _getMagazinHot.apply(this, arguments);
|
|
}
|
|
function getMagazinNew() {
|
|
return _getMagazinNew.apply(this, arguments);
|
|
}
|
|
|
|
//首页-推荐期刊
|
|
function _getMagazinNew() {
|
|
_getMagazinNew = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee2() {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
return _context2.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/featured.json", {
|
|
method: 'get'
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
return _getMagazinNew.apply(this, arguments);
|
|
}
|
|
function getMagazinRec(_x) {
|
|
return _getMagazinRec.apply(this, arguments);
|
|
}
|
|
|
|
//首页-统计数据
|
|
function _getMagazinRec() {
|
|
_getMagazinRec = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee3(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee3$(_context3) {
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
case 0:
|
|
return _context3.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/recommended.json", {
|
|
method: 'get',
|
|
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context3.stop();
|
|
}
|
|
}, _callee3);
|
|
}));
|
|
return _getMagazinRec.apply(this, arguments);
|
|
}
|
|
function getStatistic() {
|
|
return _getStatistic.apply(this, arguments);
|
|
}
|
|
|
|
//首页-获取分类
|
|
function _getStatistic() {
|
|
_getStatistic = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee4() {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee4$(_context4) {
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
case 0:
|
|
return _context4.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/statics.json", {
|
|
method: 'get'
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context4.stop();
|
|
}
|
|
}, _callee4);
|
|
}));
|
|
return _getStatistic.apply(this, arguments);
|
|
}
|
|
function getMagazinCat() {
|
|
return _getMagazinCat.apply(this, arguments);
|
|
}
|
|
function _getMagazinCat() {
|
|
_getMagazinCat = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_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_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee5$(_context5) {
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
case 0:
|
|
return _context5.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/types.json", {
|
|
method: 'get'
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context5.stop();
|
|
}
|
|
}, _callee5);
|
|
}));
|
|
return _getMagazinCat.apply(this, arguments);
|
|
}
|
|
function getMagazinRecArc(_x2) {
|
|
return _getMagazinRecArc.apply(this, arguments);
|
|
}
|
|
|
|
//首页-获取文章列表
|
|
function _getMagazinRecArc() {
|
|
_getMagazinRecArc = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_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_test4_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/recommended.json", {
|
|
method: 'post',
|
|
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context6.stop();
|
|
}
|
|
}, _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() {
|
|
return _getMyMagazinList.apply(this, arguments);
|
|
}
|
|
|
|
// 获取期刊详情
|
|
function _getMyMagazinList() {
|
|
_getMyMagazinList = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_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_test4_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 _context8.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/mine.json", {
|
|
method: 'get'
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context8.stop();
|
|
}
|
|
}, _callee8);
|
|
}));
|
|
return _getMyMagazinList.apply(this, arguments);
|
|
}
|
|
function getMagazinDetail(_x4) {
|
|
return _getMagazinDetail.apply(this, arguments);
|
|
}
|
|
|
|
// 获取期刊栏目
|
|
function _getMagazinDetail() {
|
|
_getMagazinDetail = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_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_test4_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 _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_test4_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();
|
|
}
|
|
}, _callee9);
|
|
}));
|
|
return _getMagazinDetail.apply(this, arguments);
|
|
}
|
|
function getMagazinColumn(_x5) {
|
|
return _getMagazinColumn.apply(this, arguments);
|
|
}
|
|
|
|
//获取月刊
|
|
function _getMagazinColumn() {
|
|
_getMagazinColumn = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_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_test4_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 _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/categories.json", {
|
|
method: 'get',
|
|
params: _root_workspace_ppte5yg23_local_v9_test4_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();
|
|
}
|
|
}, _callee10);
|
|
}));
|
|
return _getMagazinColumn.apply(this, arguments);
|
|
}
|
|
function getMonthlyDetail(_x6) {
|
|
return _getMonthlyDetail.apply(this, arguments);
|
|
}
|
|
|
|
// 投稿
|
|
function _getMonthlyDetail() {
|
|
_getMonthlyDetail = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_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_test4_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 _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/monthly_magazines.json", {
|
|
method: 'get',
|
|
params: _root_workspace_ppte5yg23_local_v9_test4_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();
|
|
}
|
|
}, _callee11);
|
|
}));
|
|
return _getMonthlyDetail.apply(this, arguments);
|
|
}
|
|
function postMagazin(_x7) {
|
|
return _postMagazin.apply(this, arguments);
|
|
}
|
|
|
|
// 审核
|
|
function _postMagazin() {
|
|
_postMagazin = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_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_test4_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 _context12.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/submit.json", {
|
|
method: 'post',
|
|
body: _root_workspace_ppte5yg23_local_v9_test4_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();
|
|
}
|
|
}, _callee12);
|
|
}));
|
|
return _postMagazin.apply(this, arguments);
|
|
}
|
|
function getMagazinCheck(_x8) {
|
|
return _getMagazinCheck.apply(this, arguments);
|
|
}
|
|
|
|
// 审核列表
|
|
function _getMagazinCheck() {
|
|
_getMagazinCheck = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_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_test4_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 _context13.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_test4_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();
|
|
}
|
|
}, _callee13);
|
|
}));
|
|
return _getMagazinCheck.apply(this, arguments);
|
|
}
|
|
function getReviewList(_x9) {
|
|
return _getReviewList.apply(this, arguments);
|
|
}
|
|
// 智云告示 云刊问道
|
|
function _getReviewList() {
|
|
_getReviewList = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_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_test4_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 _context14.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_test4_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();
|
|
}
|
|
}, _callee14);
|
|
}));
|
|
return _getReviewList.apply(this, arguments);
|
|
}
|
|
function approved_articles(_x10) {
|
|
return _approved_articles.apply(this, arguments);
|
|
}
|
|
|
|
// 审核进度
|
|
function _approved_articles() {
|
|
_approved_articles = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_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_test4_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 _context15.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/".concat(params === null || params === void 0 ? void 0 : params.id, "/approved_articles.json"), {
|
|
method: 'get',
|
|
params: _root_workspace_ppte5yg23_local_v9_test4_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();
|
|
}
|
|
}, _callee15);
|
|
}));
|
|
return _approved_articles.apply(this, arguments);
|
|
}
|
|
function getReviewProgress(_x11) {
|
|
return _getReviewProgress.apply(this, arguments);
|
|
}
|
|
|
|
//取消投稿
|
|
function _getReviewProgress() {
|
|
_getReviewProgress = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_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_test4_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 _context16.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_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context16.stop();
|
|
}
|
|
}, _callee16);
|
|
}));
|
|
return _getReviewProgress.apply(this, arguments);
|
|
}
|
|
function canclePost(_x12) {
|
|
return _canclePost.apply(this, arguments);
|
|
}
|
|
|
|
// 编辑稿件
|
|
function _canclePost() {
|
|
_canclePost = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee17(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee17$(_context17) {
|
|
while (1) switch (_context17.prev = _context17.next) {
|
|
case 0:
|
|
return _context17.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_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context17.stop();
|
|
}
|
|
}, _callee17);
|
|
}));
|
|
return _canclePost.apply(this, arguments);
|
|
}
|
|
function editArticle(_x13) {
|
|
return _editArticle.apply(this, arguments);
|
|
}
|
|
|
|
// 其他期刊 -获取
|
|
function _editArticle() {
|
|
_editArticle = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee18(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee18$(_context18) {
|
|
while (1) switch (_context18.prev = _context18.next) {
|
|
case 0:
|
|
return _context18.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_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context18.stop();
|
|
}
|
|
}, _callee18);
|
|
}));
|
|
return _editArticle.apply(this, arguments);
|
|
}
|
|
function getOtherMagazine() {
|
|
return _getOtherMagazine.apply(this, arguments);
|
|
}
|
|
|
|
// 其他期刊 -创建
|
|
function _getOtherMagazine() {
|
|
_getOtherMagazine = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee19() {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee19$(_context19) {
|
|
while (1) switch (_context19.prev = _context19.next) {
|
|
case 0:
|
|
return _context19.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines/others.json", {
|
|
method: 'get'
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context19.stop();
|
|
}
|
|
}, _callee19);
|
|
}));
|
|
return _getOtherMagazine.apply(this, arguments);
|
|
}
|
|
function createOtherMagazine(_x14) {
|
|
return _createOtherMagazine.apply(this, arguments);
|
|
}
|
|
|
|
// 其他期刊 -修改
|
|
function _createOtherMagazine() {
|
|
_createOtherMagazine = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee20(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee20$(_context20) {
|
|
while (1) switch (_context20.prev = _context20.next) {
|
|
case 0:
|
|
return _context20.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/magazines.json", {
|
|
method: 'post',
|
|
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context20.stop();
|
|
}
|
|
}, _callee20);
|
|
}));
|
|
return _createOtherMagazine.apply(this, arguments);
|
|
}
|
|
function modifyOtherMagazine(_x15) {
|
|
return _modifyOtherMagazine.apply(this, arguments);
|
|
}
|
|
|
|
// 其他期刊 -删除
|
|
function _modifyOtherMagazine() {
|
|
_modifyOtherMagazine = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee21(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee21$(_context21) {
|
|
while (1) switch (_context21.prev = _context21.next) {
|
|
case 0:
|
|
return _context21.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: 'put',
|
|
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context21.stop();
|
|
}
|
|
}, _callee21);
|
|
}));
|
|
return _modifyOtherMagazine.apply(this, arguments);
|
|
}
|
|
function delOtherMagazine(_x16) {
|
|
return _delOtherMagazine.apply(this, arguments);
|
|
}
|
|
|
|
// 文章阅读量+1
|
|
function _delOtherMagazine() {
|
|
_delOtherMagazine = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee22(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee22$(_context22) {
|
|
while (1) switch (_context22.prev = _context22.next) {
|
|
case 0:
|
|
return _context22.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: 'delete'
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context22.stop();
|
|
}
|
|
}, _callee22);
|
|
}));
|
|
return _delOtherMagazine.apply(this, arguments);
|
|
}
|
|
function reviewCount(_x17) {
|
|
return _reviewCount.apply(this, arguments);
|
|
}
|
|
|
|
// 删除期刊
|
|
function _reviewCount() {
|
|
_reviewCount = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee23(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee23$(_context23) {
|
|
while (1) switch (_context23.prev = _context23.next) {
|
|
case 0:
|
|
return _context23.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/articles/".concat(params === null || params === void 0 ? void 0 : params.id, "/viewed.json"), {
|
|
method: 'put'
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context23.stop();
|
|
}
|
|
}, _callee23);
|
|
}));
|
|
return _reviewCount.apply(this, arguments);
|
|
}
|
|
function delMagazine(_x18) {
|
|
return _delMagazine.apply(this, arguments);
|
|
}
|
|
function _delMagazine() {
|
|
_delMagazine = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee24(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee24$(_context24) {
|
|
while (1) switch (_context24.prev = _context24.next) {
|
|
case 0:
|
|
return _context24.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/articles/".concat(params === null || params === void 0 ? void 0 : params.id, ".json"), {
|
|
method: 'delete',
|
|
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
}));
|
|
case 1:
|
|
case "end":
|
|
return _context24.stop();
|
|
}
|
|
}, _callee24);
|
|
}));
|
|
return _delMagazine.apply(this, arguments);
|
|
}
|
|
|
|
/***/ })
|
|
|
|
}]); |