(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/my/help/help"],{"153f":function(t,n,e){},1730:function(t,n,e){"use strict";(function(t){e("813a");o(e("66fd"));var n=o(e("3d8d"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},2779: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=[]},"3d8d":function(t,n,e){"use strict";e.r(n);var o=e("2779"),a=e("483e");for(var r in a)"default"!==r&&function(t){e.d(n,t,(function(){return a[t]}))}(r);e("b4ab");var i,u=e("f0c5"),s=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,"f0605b10",null,!1,o["a"],i);n["default"]=s.exports},"483e":function(t,n,e){"use strict";e.r(n);var o=e("b4a2"),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},b4a2: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{content:"",historyHelpList:[],noData:!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)})},submitHelp:function(){var n=this;""===this.content?t.showToast({icon:"none",title:"请描述一下遇到的问题···"}):o.default.post("/hs/addHelpQuestion",{userId:t.getStorageSync("userInfo").user_id,question:this.content}).then((function(e){console.log("提交帮助",e),1===e.data&&(t.showToast({icon:"loading",title:"提交成功"}),n.content="",n.getHistoryHelp())}),(function(t){console.log("err",t)}))},getHistoryHelp:function(){var n=this;o.default.post("/hs/getHistoryHelpList",{userId:t.getStorageSync("userInfo").user_id}).then((function(t){n.historyHelpList=t.data,n.historyHelpList.forEach((function(t){void 0===t.answer_id&&(t.answer_id="",t.answer="",t.answer_time="",t.real_name="")})),n.noData=0===t.data.length,console.log("历史帮助列表",t)}),(function(t){console.log("err",t)}))}}};n.default=r}).call(this,e("543d")["default"])},b4ab:function(t,n,e){"use strict";var o=e("153f"),a=e.n(o);a.a}},[["1730","common/runtime","common/vendor"]]]);