|
|
|
|
@ -181,9 +181,9 @@ if (false) {}
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 76535:
|
|
|
|
|
/***/ 29635:
|
|
|
|
|
/*!*********************************************************************!*\
|
|
|
|
|
!*** ./src/pages/Counselling/ExpertList/Info/index.tsx + 3 modules ***!
|
|
|
|
|
!*** ./src/pages/Counselling/ExpertList/Info/index.tsx + 2 modules ***!
|
|
|
|
|
\*********************************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
@ -195,9 +195,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
"default": function() { return /* binding */ Info; }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
|
// 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);
|
|
|
|
|
@ -208,10 +214,12 @@ var _umi_production_exports = __webpack_require__(58228);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Counselling/ExpertList/Info/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Infomodules = ({"wrap":"wrap___zmJQS","back_style":"back_style___SM_1p","header":"header___BRrXA","user_img":"user_img___I65PM","header_content":"header_content___zYlen","user_name":"user_name___o_Po7","user_role":"user_role___yuPqG","user_content":"user_content___K1wMO","header_button":"header_button___SSAtA","question_list":"question_list___X_scw","list_header":"list_header___kRQFg","list_img":"list_img___xWlTK","list_title":"list_title___v_X8s","search":"search___Dw1__","searchIcon":"searchIcon___KJz4p","list_button":"list_button___F3ZsZ","items_list":"items_list___nMo5z","items":"items___zRrBW","topContent":"topContent___rgEN7","leibie_style":"leibie_style___VAAwf","title":"title___6fKsY","bottomContent":"bottomContent___pwtPf","time":"time___ceXXT"});
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Counselling/ExpertList/img/userimg.jpg
|
|
|
|
|
var userimg_namespaceObject = __webpack_require__.p + "static/userimg.87fb4fc3.jpg";
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Counselling/ExpertList/img/questionimg.png
|
|
|
|
|
var questionimg_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAmCAYAAADX7PtfAAAAAXNSR0IArs4c6QAAA0JJREFUWEe1WE9IFFEY/32zJhGIVFBYexDs4kFCWPTgoTx4qUslCWrYZSnqIMWWGGSkBIoYEoYeDKLSFQwJAoX+odBSmYJkQQezICrrEkuBJLL7xZtmZqeZN/tmdvVddpj33vd97/f7fe/7ZgkA9kY5zOvoTTMOEqGEWbwFiADxLH7FEK/FozFtPRvT/xY5BgErAGZoC9q+3qIvtC/K4TXGGzB2OB1ILdhemsGYAbqc2QMm/CwE9lPZaY4DaNRPYJzGy0BWg34gIIxR+Vn+xkCJ6jSyeSfEEjgtGoy5FapoZfbizGnAiUBgCoQGKs8zW6JwQKoyqApANk/Vbcwy2c32mmHkAjZQfZHZKWM9gJpLzDJZJ7rzc2jaNXk2w6baDk9NRnI7m7VrXqqBuqsZDl2Z7UN2/y1R3Aw6pIevGVjL8ijoEc1ryORIEgAd6fFO81yuMlWMdLxP7vD+hfxEI7UrIG3st3FoCy9+Lj+HTf2SgxBAJwc8OAwhP5Wm4VKpECVFh/xe1Sp2/M3TmWGbw81QibM+tt6WX21inUrlgfNWQBq7K+fweksw0cTuGYHbWgJpx9Aez0BqP1F3UzCHdjvZ2KSOcU9Ig6p0XkmBoKlrwrseOkl0GVTUT2k97HnoXfGD9jh+EoP6JnPPQz8QugrOjUdy0fhqmhR5K6Vg8Kn/8hS0x5ElMg3PZBGNnJRlDRhMA1cAFNuXuPLOKSqh0jsJq0t0B+TYoGmYKtqG5qOVlBx7yaVrKYwQUGO2/irRCIgp/irj0GsDkd6UdzVVoZOILPvjzKHUa3SAcZmBkMqhrvrxOXk9tLosQpIYJ+ojNOllcGKOa1KEETBKs94yoh4+WMjSCAOLhQU4dqiCllXRP1nm4tVfGGLjO0VfL8kbmnwr55CA0V07cSqyh1ZVzuzzU++4JQ3cBKNIto8ev8/koXjSCOsAYnXlNBDEkX3tsyUuS6UQB6PKlfjTS5mrTQNWOISG2jJK5OrM3DfNXEAf0JkG2omhWV3o849Wq5/YqqEhUkrii3XDxotPfIAJI8wI6z3N7GdmjTBAYcQiRALODR+LSd7+5zeG04x6WvjBzZW7aXTDvUgMLnznaLb/AzYlhr8r67Kn6HS9FgAAAABJRU5ErkJggg==";
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
|
|
|
|
|
var NoData = __webpack_require__(64461);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
|
|
|
var env = __webpack_require__(98242);
|
|
|
|
|
// 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/tooltip/index.js + 3 modules
|
|
|
|
|
@ -222,8 +230,13 @@ var input = __webpack_require__(92832);
|
|
|
|
|
var pagination = __webpack_require__(86859);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
|
|
|
var modal = __webpack_require__(43418);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
|
|
|
var message = __webpack_require__(8591);
|
|
|
|
|
// EXTERNAL MODULE: ./src/service/counselling.ts
|
|
|
|
|
var counselling = __webpack_require__(66258);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
|
|
|
|
|
var dayjs_min = __webpack_require__(61186);
|
|
|
|
|
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Counselling/ExpertList/Info/index.tsx
|
|
|
|
|
@ -238,8 +251,12 @@ var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Navigation = function Navigation(_ref) {
|
|
|
|
|
var _ref2;
|
|
|
|
|
var _questionInfo$special, _questionInfo$special2;
|
|
|
|
|
var loading = _ref.loading,
|
|
|
|
|
user = _ref.user,
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
@ -273,14 +290,10 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
keyword = _useState10[0],
|
|
|
|
|
setkeyword = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
questionList = _useState12[0],
|
|
|
|
|
setQuestionList = _useState12[1];
|
|
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
|
|
questionInfo = _useState14[0],
|
|
|
|
|
setQuestionInfo = _useState14[1];
|
|
|
|
|
questionInfo = _useState12[0],
|
|
|
|
|
setQuestionInfo = _useState12[1];
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
getData();
|
|
|
|
|
}, [keyword, page, limit]);
|
|
|
|
|
@ -291,9 +304,9 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
keyword: keyword,
|
|
|
|
|
specialist_id: params === null || params === void 0 ? void 0 : params.id
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
var _res$data, _res$data2;
|
|
|
|
|
setQuestionList(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list);
|
|
|
|
|
setTotal(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.count);
|
|
|
|
|
var _res$data;
|
|
|
|
|
setQuestionInfo(res === null || res === void 0 ? void 0 : res.data);
|
|
|
|
|
setTotal(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.count);
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
var onShowSizeChange = function onShowSizeChange(page, size) {
|
|
|
|
|
@ -313,21 +326,21 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Infomodules.header,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: userimg_namespaceObject,
|
|
|
|
|
src: env/* default */.Z.IMG_SERVER + '/images/' + (questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.image_url),
|
|
|
|
|
className: Infomodules.user_img
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Infomodules.header_content,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Infomodules.user_name,
|
|
|
|
|
children: ["\u674E\u65ED ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: [questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.username, " ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: Infomodules.user_role,
|
|
|
|
|
children: "\u6559\u6388"
|
|
|
|
|
children: questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.user_identity
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: "\u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3\u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3",
|
|
|
|
|
title: questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.description,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Infomodules.user_content,
|
|
|
|
|
children: "\u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3\u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3 \u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3\u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3 \u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3\u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3\u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3 \u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3\u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3 \u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3\u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3\u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3"
|
|
|
|
|
children: (questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.description) || '--'
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -369,36 +382,41 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Infomodules.items_list,
|
|
|
|
|
children: (_ref2 = [1, 2, 3]) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (item, index) {
|
|
|
|
|
children: (questionInfo === null || questionInfo === void 0 || (_questionInfo$special = questionInfo.specialist_question_records) === null || _questionInfo$special === void 0 ? void 0 : _questionInfo$special.length) > 0 ? questionInfo === null || questionInfo === void 0 || (_questionInfo$special2 = questionInfo.specialist_question_records) === null || _questionInfo$special2 === void 0 ? void 0 : _questionInfo$special2.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Infomodules.items,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
_umi_production_exports.history.push("/counselling/expertList/".concat(params === null || params === void 0 ? void 0 : params.id, "/Detail/").concat(item, "?backType=1&backUrl=/counselling/expertList/1/info?backUrl=").concat(searchParams.get('backUrl')));
|
|
|
|
|
_umi_production_exports.history.push("/counselling/expertList/".concat(params === null || params === void 0 ? void 0 : params.id, "/Detail/").concat(item === null || item === void 0 ? void 0 : item.id, "?backType=1&backUrl=/counselling/expertList/").concat(params === null || params === void 0 ? void 0 : params.id, "/info?backUrl=").concat(searchParams.get('backUrl')));
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Infomodules.topContent,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Infomodules.leibie_style,
|
|
|
|
|
children: "\u5DF2\u89E3\u7B54"
|
|
|
|
|
style: {
|
|
|
|
|
background: item !== null && item !== void 0 && item.is_answered ? 'rgba(51, 191, 151, 0.12)' : 'rgba(191,138,51,0.12)',
|
|
|
|
|
color: item !== null && item !== void 0 && item.is_answered ? '#019158' : '#E67E19'
|
|
|
|
|
},
|
|
|
|
|
children: item !== null && item !== void 0 && item.is_answered ? '已解答' : '未解答'
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Infomodules.title,
|
|
|
|
|
children: "\u5728\u4EBA\u5DE5\u667A\u80FD\u7406\u8BBA\u4E0A\u7CFB\u7EDF\u5730\u63D0\u51FA\u4E86\u95EE\u9898\u5206\u5C42\u6C42\u89E3"
|
|
|
|
|
children: (item === null || item === void 0 ? void 0 : item.question) || '--'
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Infomodules.bottomContent,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
className: Infomodules.user_img,
|
|
|
|
|
alt: "\u7528\u6237\u5934\u50CF",
|
|
|
|
|
src: "".concat(userimg_namespaceObject)
|
|
|
|
|
src: env/* default */.Z.IMG_SERVER + '/images/' + (item === null || item === void 0 ? void 0 : item.image_url),
|
|
|
|
|
className: Infomodules.user_img
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Infomodules.user_name,
|
|
|
|
|
children: "\u738B\u6653\u7B11\u5907\u4EFD 2"
|
|
|
|
|
children: (item === null || item === void 0 ? void 0 : item.username) || '--'
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Infomodules.time,
|
|
|
|
|
children: "2024-10-10 12:12"
|
|
|
|
|
children: item !== null && item !== void 0 && item.created_at ? dayjs_min_default()(item === null || item === void 0 ? void 0 : item.created_at).format('YYYY-MM-DD HH:mm:ss') : '--'
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
|
|
|
|
|
customText: "\u6682\u65E0\u6570\u636E"
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
|
|
|
children: total > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -437,11 +455,32 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
visible: visible,
|
|
|
|
|
okText: "\u786E\u5B9A",
|
|
|
|
|
cancelText: "\u53D6\u6D88",
|
|
|
|
|
onOk: function onOk() {
|
|
|
|
|
setVisible(false);
|
|
|
|
|
},
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
return form.validateFields();
|
|
|
|
|
case 2:
|
|
|
|
|
(0,counselling/* specialist_question */.$D)(objectSpread2_default()({
|
|
|
|
|
specialist_id: params === null || params === void 0 ? void 0 : params.id
|
|
|
|
|
}, form.getFieldsValue())).then(function (res) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success('发起成功');
|
|
|
|
|
getData();
|
|
|
|
|
}
|
|
|
|
|
setVisible(false);
|
|
|
|
|
form.resetFields();
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee);
|
|
|
|
|
})),
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
setVisible(false);
|
|
|
|
|
form.resetFields();
|
|
|
|
|
},
|
|
|
|
|
width: 600,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z, {
|
|
|
|
|
@ -449,7 +488,11 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
layout: "vertical",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "\u5185\u5BB9",
|
|
|
|
|
name: "neirong",
|
|
|
|
|
name: "question",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '必填项'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.TextArea, {
|
|
|
|
|
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u60A8\u7684\u95EE\u9898",
|
|
|
|
|
rows: 6
|
|
|
|
|
@ -483,13 +526,19 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
/* harmony export */ $D: function() { return /* binding */ specialist_question; },
|
|
|
|
|
/* harmony export */ B5: function() { return /* binding */ del_specialist; },
|
|
|
|
|
/* harmony export */ CV: function() { return /* binding */ edit_specialist; },
|
|
|
|
|
/* harmony export */ I_: function() { return /* binding */ getSpecialists; },
|
|
|
|
|
/* harmony export */ LI: function() { return /* binding */ get_duty_info; },
|
|
|
|
|
/* harmony export */ NG: function() { return /* binding */ add_or_cancel_duty; },
|
|
|
|
|
/* harmony export */ U8: function() { return /* binding */ specialist_question_detail; },
|
|
|
|
|
/* harmony export */ e4: function() { return /* binding */ del_specialist_question; },
|
|
|
|
|
/* harmony export */ t1: function() { return /* binding */ question_is_answered; },
|
|
|
|
|
/* harmony export */ wr: function() { return /* binding */ add_specialists; },
|
|
|
|
|
/* harmony export */ y7: function() { return /* binding */ specialist_detail; }
|
|
|
|
|
/* harmony export */ y7: function() { return /* binding */ specialist_detail; },
|
|
|
|
|
/* harmony export */ zB: function() { return /* binding */ my_specialist_question; },
|
|
|
|
|
/* harmony export */ zR: function() { return /* binding */ public_specialist_question; }
|
|
|
|
|
/* harmony export */ });
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __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_0___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_0__);
|
|
|
|
|
@ -639,6 +688,8 @@ function _add_or_cancel_duty() {
|
|
|
|
|
function specialist_detail(_x7) {
|
|
|
|
|
return _specialist_detail.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//发起提问
|
|
|
|
|
function _specialist_detail() {
|
|
|
|
|
_specialist_detail = _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_0___default()().mark(function _callee7(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee7$(_context7) {
|
|
|
|
|
@ -656,6 +707,135 @@ function _specialist_detail() {
|
|
|
|
|
}));
|
|
|
|
|
return _specialist_detail.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function specialist_question(_x8) {
|
|
|
|
|
return _specialist_question.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//提问详情
|
|
|
|
|
function _specialist_question() {
|
|
|
|
|
_specialist_question = _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_0___default()().mark(function _callee8(data) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___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/online_consults/specialist_question.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_1___default()({}, data)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context8.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee8);
|
|
|
|
|
}));
|
|
|
|
|
return _specialist_question.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function specialist_question_detail(_x9) {
|
|
|
|
|
return _specialist_question_detail.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
//公开提问/取消提问
|
|
|
|
|
function _specialist_question_detail() {
|
|
|
|
|
_specialist_question_detail = _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_0___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_0___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/online_consults/specialist_question_detail.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_1___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context9.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee9);
|
|
|
|
|
}));
|
|
|
|
|
return _specialist_question_detail.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function public_specialist_question(_x10) {
|
|
|
|
|
return _public_specialist_question.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//提问已解答
|
|
|
|
|
function _public_specialist_question() {
|
|
|
|
|
_public_specialist_question = _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_0___default()().mark(function _callee10(data) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___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/online_consults/public_specialist_question.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_1___default()({}, data)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context10.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee10);
|
|
|
|
|
}));
|
|
|
|
|
return _public_specialist_question.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function question_is_answered(_x11) {
|
|
|
|
|
return _question_is_answered.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//删除提问
|
|
|
|
|
function _question_is_answered() {
|
|
|
|
|
_question_is_answered = _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_0___default()().mark(function _callee11(data) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___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/online_consults/question_is_answered.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_1___default()({}, data)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context11.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee11);
|
|
|
|
|
}));
|
|
|
|
|
return _question_is_answered.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function del_specialist_question(_x12) {
|
|
|
|
|
return _del_specialist_question.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//我的咨询
|
|
|
|
|
function _del_specialist_question() {
|
|
|
|
|
_del_specialist_question = _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_0___default()().mark(function _callee12(data) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___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/online_consults/del_specialist_question.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_1___default()({}, data)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context12.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee12);
|
|
|
|
|
}));
|
|
|
|
|
return _del_specialist_question.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function my_specialist_question(_x13) {
|
|
|
|
|
return _my_specialist_question.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function _my_specialist_question() {
|
|
|
|
|
_my_specialist_question = _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_0___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_0___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/online_consults/my_specialist_question.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_1___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context13.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee13);
|
|
|
|
|
}));
|
|
|
|
|
return _my_specialist_question.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|