3.8985ee1b504f64181776.js 1.5 KB

1
  1. webpackJsonp([3],{FoVk:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"help_detail",data:function(){return{info:{name:"",content:""}}},watch:{"$route.query.name":function(t,e){window.plus||this.get_info()}},created:function(){this.get_info();var t=this;document.body.addEventListener("click",function(e){var n=e.target.getAttribute("rel-go")||e.target.parentNode.getAttribute("rel-go")||e.target.parentNode.parentNode.getAttribute("rel-go");n&&t.$router.push({name:"help_detail",query:{name:n}})})},methods:{get_info:function(){var t=this.$route.query.name,e=localStorage.getItem("help_detail"+t),n=JSON.parse(localStorage.getItem("all_doc_name"));for(var a in n){var r=new RegExp('href="'+n[a]+'"',"g");null!=e&&(e=e.replace(r,'href="javascript:void(0);" rel-go="'+n[a]+'"'))}e&&(this.info.content=e.replace(/\/uploads\//g,"http://doc.js.dg263.net:8181/uploads/"))}}},r={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("van-nav-bar",{attrs:{title:"详情","left-text":"返回","left-arrow":""},on:{"click-left":this.$route_back}}),this._v(" "),e("div",{staticClass:"body_com has_header",staticStyle:{background:"#fff"}},[e("scroller",[e("div",{staticClass:"content"},[e("div",{staticClass:"html-content",domProps:{innerHTML:this._s(this.info.content)}})]),this._v(" "),e("div",{staticStyle:{height:"2rem"}})])],1)],1)},staticRenderFns:[]};var o=n("VU/8")(a,r,!1,function(t){n("hSDw")},"data-v-400d415d",null);e.default=o.exports},hSDw:function(t,e){}});