1 |
- webpackJsonp([60],{"+ZiF":function(t,e){},"QSP+":function(t,e,r){"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()}},activated:function(){this.get_info();var t=this;document.body.addEventListener("click",function(e){var r=e.target.getAttribute("rel-go")||e.target.parentNode.getAttribute("rel-go")||e.target.parentNode.parentNode.getAttribute("rel-go");r&&t.$router.push({name:"help_detail",query:{name:r}})})},created:function(){this.get_info();var t=this;document.body.addEventListener("click",function(e){var r=e.target.getAttribute("rel-go")||e.target.parentNode.getAttribute("rel-go")||e.target.parentNode.parentNode.getAttribute("rel-go");r&&t.$router.push({name:"help_detail",query:{name:r}})})},methods:{get_info:function(){var t=this.$route.query.name,e=localStorage.getItem("help_detail"+t),r=JSON.parse(localStorage.getItem("all_doc_name"));for(var a in r){var n=new RegExp('href="'+r[a]+'"',"g");null!=e&&(e=e.replace(n,'href="javascript:void(0);" rel-go="'+r[a]+'"'))}e&&(this.info.content=e.replace(/\/uploads\//g,"http://doc.js.dg263.net:8181/uploads/"))}}},n={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 i=r("VU/8")(a,n,!1,function(t){r("+ZiF")},"data-v-bc8a16d0",null);e.default=i.exports}});
|