(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-eeff9908"],{"0790":function(t,i,e){"use strict";var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("van-nav-bar",{attrs:{title:t.title,"left-text":"","left-arrow":""},on:{"click-left":t.back}},[e("van-icon",{attrs:{slot:"left",name:t.backHome?"wap-home":"arrow-left"},slot:"left"})],1)},n=[],o={name:"NavBar",data:function(){return{backHome:!1}},props:{title:{type:String,required:!0,default:""}},created:function(){this.$util.sessionStorage.fetch("backHome")&&(this.backHome=!0)},mounted:function(){},methods:{back:function(){this.backHome?(this.$util.sessionStorage.remove("backHome"),this.$router.push("/")):window.history.length>1?window.history.go(-1):this.$router.push("/")}}},s=o,r=(e("ba46"),e("2877")),c=Object(r["a"])(s,a,n,!1,null,"530892b0",null);c.options.__file="NavBar.vue";i["a"]=c.exports},3562:function(t,i,e){t.exports=e.p+"img/loading.c2fcdc24.gif"},"8d1f":function(t,i,e){},"8e50":function(t,i,e){},af9d:function(t,i,e){"use strict";e.r(i);var a=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"service-article-wrap"},[t.isInHooliApp?t._e():a("nav-bar",{attrs:{title:"问题详情"}}),t.isLoading?a("div",{attrs:{id:"loading"}},[a("img",{attrs:{src:e("3562"),alt:""}})]):t._e(),""==t.data.title||t.isLoading?t._e():a("div",{staticClass:"wrap"},[a("div",{staticClass:"title",domProps:{innerHTML:t._s("Q: "+t.data.title)}}),a("div",{staticClass:"content",domProps:{innerHTML:t._s(t.data.content)}})]),""!=t.data.title||t.isLoading?t._e():a("div",{staticClass:"noneData"},[a("img",{attrs:{src:"https://static.hoolihome.com/m/images/serviceError.png",alt:""}}),a("p",[t._v("哎呀，解答不存在了")])])],1)},n=[],o=(e("a481"),e("0790")),s={name:"ServiceArticle",components:{NavBar:o["a"]},data:function(){return{env:"",isInHooliApp:!1,isLoading:!0,data:{title:"",content:""}}},created:function(){(this.$util.checkIsHooliAndroid()||this.$util.checkIsHooliIos())&&(this.isInHooliApp=!0),this.$util.checkIsHooliAndroid()?this.env="android":this.$util.checkIsHooliIos()&&(this.env="ios"),this.getData()},methods:{getData:function(){var t=this,i={};i.url=this.$apis.api_v3_find_details,i.data={id:this.$route.params.id},this.$net.req(i,this).then(function(i){if(t.isLoading=!1,i){var e=i.data;e&&(e.content=e.content.replace(/(\r\n)|(\n)/g,"<br />"),t.data=i.data)}t.handleAppButton()},function(i){t.isLoading=!1,t.$Toast(i.msg)})},handleAppButton:function(){if(this.isInHooliApp){var t={type:9,data:{title:"问题详情"}};t=encodeURIComponent(JSON.stringify(t)),"android"===this.env?window.Android.javaScriptToNative(t):"ios"===this.env&&window.webkit.messageHandlers.javaScriptToNative.postMessage(t)}}}},r=s,c=(e("b67e"),e("2877")),l=Object(c["a"])(r,a,n,!1,null,"6596d2f2",null);l.options.__file="ServiceArticle.vue";i["default"]=l.exports},b67e:function(t,i,e){"use strict";var a=e("8e50"),n=e.n(a);n.a},ba46:function(t,i,e){"use strict";var a=e("8d1f"),n=e.n(a);n.a}}]);
//# sourceMappingURL=chunk-eeff9908.d564d1a7.js.map