(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/my/help-answer/help-answer"],{3131:function(t,n,e){"use strict";e.r(n);var o=e("af24"),a=e("82d6");for(var r in a)"default"!==r&&function(t){e.d(n,t,(function(){return a[t]}))}(r);e("edf8");var i,s=e("f0c5"),u=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,"36583ab0",null,!1,o["a"],i);n["default"]=u.exports},"3b54":function(t,n,e){},5643:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(e("7cc2"));function a(t){return t&&t.__esModule?t:{default:t}}var r={data:function(){return{notHelpList:[],historyHelpList:[],notHelpNoData:!1,historyHelpNoData:!1}},onLoad:function(){this.getHistoryHelp()},onPullDownRefresh:function(){t.startPullDownRefresh()},methods:{goToUserInfo:function(n){t.navigateTo({url:"/pages/person-info-page/person-info-page?userId=".concat(n.answer_id)})},answerHelp:function(n){var e=this;""===n.answer?t.showToast({icon:"none",title:"请输入解决方案"}):o.default.post("/admin/answerHelp",{answerId:t.getStorageSync("userInfo").user_id,answer:n.answer,id:n.id}).then((function(n){console.log("提交解决方案",n),1===n.data&&(t.showToast({icon:"loading",title:"提交成功"}),e.getHistoryHelp())}),(function(t){console.log("err",t)}))},getHistoryHelp:function(){var n=this;o.default.post("/admin/getHelpAnswerList",{userId:t.getStorageSync("userInfo").user_id}).then((function(t){n.notHelpList=[],n.historyHelpList=[],t.data.forEach((function(t){void 0===t.answer_id?n.notHelpList.push(t):n.historyHelpList.push(t)})),n.notHelpNoData=0===t.data.length,n.historyHelpNoData=0===t.data.length,console.log("历史帮助列表",t)}),(function(t){console.log("err",t)}))}}};n.default=r}).call(this,e("543d")["default"])},"82d6":function(t,n,e){"use strict";e.r(n);var o=e("5643"),a=e.n(o);for(var r in o)"default"!==r&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=a.a},a775:function(t,n,e){"use strict";(function(t){e("813a");o(e("66fd"));var n=o(e("3131"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},af24:function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return o}));var a=function(){var t=this,n=t.$createElement;t._self._c},r=[]},edf8:function(t,n,e){"use strict";var o=e("3b54"),a=e.n(o);a.a}},[["a775","common/runtime","common/vendor"]]]);