(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-30619922"],{"5e3d":function(e,t,i){"use strict";var n=i("6bfe"),c=i.n(n);c.a},"6bfe":function(e,t,i){},b6e5:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"yiduDetailBody",style:{"min-height":e.height+"px"}},[i("div",{staticClass:"dcontent",domProps:{innerHTML:e._s(e.articleData)},on:{click:function(t){return e.showImg(t)}}})])},c=[],a=(i("4917"),i("a481"),i("76a0")),o=i("5f87"),s=i("e13e");function r(e){return Object(s["a"])({url:"/api-vlook/me/article/yd/content/"+e,method:"get"})}var l=i("aadd"),d={name:"specialDetail",components:{},filters:{parseTime:l["c"]},data:function(){return{accessToken:this.$route.params.accessToken,articleId:this.$route.params.articleId,height:document.documentElement.clientHeight,articleData:null,imgPreview:"",device:"android"}},mounted:function(){if(this.appSource(),a["Indicator"].open({text:"加载中...",spinnerType:"fading-circle"}),!this.accessToken||!this.articleId)return a["Indicator"].close(),Object(a["Toast"])("参数错误");this.initData()},created:function(){},methods:{showImg:function(e){if(console.log(e.target),"IMG"==e.target.tagName){var t=e.target.src.replace("/w/600","");this.imgPreview=t,"ios"==this.device?window.webkit.messageHandlers.clickPicture.postMessage(t):this.previewImg()}},initData:function(){var e=this,t=this.$route.params.accessToken;t&&void 0!=t&&(Object(o["c"])({access_token:t},1),r(this.articleId).then((function(t){if(console.log(t),a["Indicator"].close(),t.resp_code)return Object(a["Toast"])("出错:"+t.resp_msg);var i=t.datas;console.log(i),e.articleData=i})).catch((function(e){console.log(e),a["Indicator"].close(),Object(a["Toast"])("出错了,请重新发起")})))},previewImg:function(){if("ios"==this.device)this.$bridge.callhandler("previewImg",{imgSrc:this.imgPreview},(function(e){console.log(e)}));else{var e=JSON.stringify({imgSrc:this.imgPreview});window.WebViewJavascriptBridge.callHandler("previewImg",e,(function(e){console.log("APP返回的响应结果",e)}))}console.log(this.device)},appSource:function(){var e=navigator.userAgent,t=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);t?(this.device="ios",this.$bridge.registerhandler("backApp",(function(e,t){t(e)})),this.$bridge.registerhandler("previewImg",(function(e,t){t(e)}))):this.device="andriod"}}},u=d,g=(i("5e3d"),i("2877")),h=Object(g["a"])(u,n,c,!1,null,null,null);t["default"]=h.exports}}]);