(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-174eed7f"],{9603:function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"agreementPage"},[e("div",{staticClass:"tpContent"},[e("div",{staticClass:"header"},[e("div",{staticClass:"back",on:{click:t.back}},[e("img",{attrs:{src:t.backImg},on:{click:t.back}})]),e("h4",{staticClass:"tpTit"},[t._v(t._s(t.tpTitle?t.tpTitle:"唯蜜星球APP协议"))])]),e("div",{staticClass:"tpMain",domProps:{innerHTML:t._s(t.mainContent)}})]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.msgInfo.isShow,expression:"msgInfo.isShow"}],staticClass:"msgMode"},[e("div",{staticClass:"window",staticStyle:{"min-height":"270px"}},[e("div",{staticClass:"winTop"},[e("img",{attrs:{src:t.msgInfo.topBg}})]),e("div",{staticClass:"winContent",staticStyle:{"font-size":"15px","text-align":"center","text-indent":"0px","margin-bottom":"20px","margin-top":"20px"}},[t._v("\n "+t._s(t.msgInfo.content)+"\n ")]),e("div",{staticClass:"btnDiv"},[e("button",{on:{click:function(n){return t.swicthMsg()}}},[t._v("确定")])])]),t.msgInfo.showCancel?e("div",{staticClass:"close",on:{click:function(n){t.msgInfo.isShow=!1}}},[e("img",{attrs:{src:t.closeImg}})]):t._e()])])},s=[],o=(e("4917"),e("7f7f"),e("76a0")),c=e("e848"),a=e("f807"),r=e.n(a),g={name:"agreement",data:function(){return{tpId:this.$route.params.tpId?this.$route.params.tpId:6,height:document.documentElement.clientHeight,device:"android",tpTitle:"",mainContent:"",backImg:r.a,msgInfo:{content:"加载失败",isShow:!1,goBack:!1,topBg:e("a9b3")}}},destroyed:function(){window.removeEventListener("resize",this.getHeight())},mounted:function(){this.appSource()},created:function(){var t=this,n=this;setTimeout((function(){n.getHeight()}),2e3),o["Indicator"].open("加载中..."),Object(c["a"])(n.tpId).then((function(e){if(console.log(e),o["Indicator"].close(),e.resp_code)return n.msgInfo.content="协议加载失败",n.msgInfo.goBack=!0,n.swicthMsg();t.tpTitle=e.datas.name,t.mainContent=e.datas.mainContent})).catch((function(t){return o["Indicator"].close(),n.msgInfo.content="协议加载失败",n.msgInfo.goBack=!0,n.swicthMsg()}))},methods:{swicthMsg:function(){var t=this;return t.msgInfo.isShow?t.msgInfo.goBack?t.back():void(t.msgInfo.isShow=!1):t.msgInfo.isShow=!0},appSource:function(){var t=navigator.userAgent,n=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);n?(this.device="ios",this.$bridge.registerhandler("backApp",(function(t,n){n(t)}))):this.device="andriod"},back:function(){"ios"==this.device?this.$bridge.callhandler("backApp",{page:"home"},(function(t){console.log(t)})):window.WebViewJavascriptBridge.callHandler("backApp",{page:"home"},(function(t){console.log("=========APP返回的响应结果======="),console.log(t)}))},getHeight:function(){this.height=document.documentElement.clientHeight}}},d=g,m=(e("f10b"),e("2877")),l=Object(m["a"])(d,i,s,!1,null,null,null);n["default"]=l.exports},a9b3:function(t,n,e){t.exports=e.p+"img/win_bg.c84ec232.png"},b1ca:function(t,n,e){},e848:function(t,n,e){"use strict";e.d(n,"a",(function(){return s}));var i=e("e13e");function s(t){return Object(i["a"])({url:"query/agent/agreement/tp/"+t,method:"get"})}},f10b:function(t,n,e){"use strict";var i=e("b1ca"),s=e.n(i);s.a},f807:function(t,n){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAC7UlEQVRoQ+3YPWgUQRQH8Pd2w4kiKFhIjClsFIJWNpJY7N3OLCSCnyCiYCXYGCwiKoigjRhQEEwnVoqFIhYqkd2ZZeHQAxFsbCQIdiJiIycab9knc0wgIHY7s8tmtjs43s3v/Wdn5gZhjT24xrzgwE1P3CXsEm5YB9yUblig/3Bcwi7hhnXATemGBeoWLTel3ZS21IEwDOcQcb/neVfjOP5g6mdrMaU555eI6KZCEtEzKeXRxoLDMDwFAA8Qcdh8IrotpbzQSHAURZ2iKBYBoKWAiPim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