8b4e18ac by joe

1

1 parent 01dc395a
Showing 77 changed files with 10 additions and 3 deletions
1 <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet href=./css/pure-min.css><link rel=stylesheet href=./css/grids-responsive-min.css><!--[if gt IE 6]> 1 <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet href=./css/pure-min.css><link rel=stylesheet href=./css/grids-responsive-min.css><!--[if gt IE 6]>
2 2
3 <![endif]--><title>平安人寿香港</title><link href=assets/css/chunk-103812dd.css rel=prefetch><link href=assets/css/chunk-1862077d.css rel=prefetch><link href=assets/css/chunk-187a34f8.css rel=prefetch><link href=assets/css/chunk-19f435ba.css rel=prefetch><link href=assets/css/chunk-2e538218.css rel=prefetch><link href=assets/css/chunk-31594ece.css rel=prefetch><link href=assets/css/chunk-31b027f4.css rel=prefetch><link href=assets/css/chunk-397c17bd.css rel=prefetch><link href=assets/css/chunk-3f1840d7.css rel=prefetch><link href=assets/css/chunk-457595f3.css rel=prefetch><link href=assets/css/chunk-46a3c1b5.css rel=prefetch><link href=assets/css/chunk-5394e32f.css rel=prefetch><link href=assets/css/chunk-58ed90ea.css rel=prefetch><link href=assets/css/chunk-5c181334.css rel=prefetch><link href=assets/css/chunk-5ee2f3e8.css rel=prefetch><link href=assets/css/chunk-604ef36d.css rel=prefetch><link href=assets/css/chunk-6162fe56.css rel=prefetch><link href=assets/css/chunk-61d0b99d.css rel=prefetch><link href=assets/css/chunk-61d97144.css rel=prefetch><link href=assets/css/chunk-63c0f60c.css rel=prefetch><link href=assets/css/chunk-69e05c79.css rel=prefetch><link href=assets/css/chunk-69f1a460.css rel=prefetch><link href=assets/css/chunk-6b06a7e2.css rel=prefetch><link href=assets/css/chunk-6e2849fe.css rel=prefetch><link href=assets/css/chunk-72af1ea3.css rel=prefetch><link href=assets/css/chunk-79c655d8.css rel=prefetch><link href=assets/css/chunk-7a1f777a.css rel=prefetch><link href=assets/css/chunk-7c2b229d.css rel=prefetch><link href=assets/css/chunk-92e61cce.css rel=prefetch><link href=assets/css/chunk-a5c6e052.css rel=prefetch><link href=assets/css/chunk-ad414282.css rel=prefetch><link href=assets/css/chunk-aeb46760.css rel=prefetch><link href=assets/css/chunk-c33f683c.css rel=prefetch><link href=assets/css/chunk-ca5dedd6.css rel=prefetch><link href=assets/css/chunk-f4c5ae6a.css rel=prefetch><link href=static/css/chunk-103812dd.1602418912231.css rel=prefetch><link href=static/css/chunk-1862077d.1602418912231.css rel=prefetch><link href=static/css/chunk-187a34f8.1602418912231.css rel=prefetch><link href=static/css/chunk-19f435ba.1602418912231.css rel=prefetch><link href=static/css/chunk-2e538218.1602418912231.css rel=prefetch><link href=static/css/chunk-31594ece.1602418912231.css rel=prefetch><link href=static/css/chunk-31b027f4.1602418912231.css rel=prefetch><link href=static/css/chunk-397c17bd.1602418912231.css rel=prefetch><link href=static/css/chunk-3f1840d7.1602418912231.css rel=prefetch><link href=static/css/chunk-457595f3.1602418912231.css rel=prefetch><link href=static/css/chunk-46a3c1b5.1602418912231.css rel=prefetch><link href=static/css/chunk-5394e32f.1602418912231.css rel=prefetch><link href=static/css/chunk-58ed90ea.1602418912231.css rel=prefetch><link href=static/css/chunk-5c181334.1602418912231.css rel=prefetch><link href=static/css/chunk-5ee2f3e8.1602418912231.css rel=prefetch><link href=static/css/chunk-604ef36d.1602418912231.css rel=prefetch><link href=static/css/chunk-6162fe56.1602418912231.css rel=prefetch><link href=static/css/chunk-61d0b99d.1602418912231.css rel=prefetch><link href=static/css/chunk-61d97144.1602418912231.css rel=prefetch><link href=static/css/chunk-63c0f60c.1602418912231.css rel=prefetch><link href=static/css/chunk-69e05c79.1602418912231.css rel=prefetch><link href=static/css/chunk-69f1a460.1602418912231.css rel=prefetch><link href=static/css/chunk-6b06a7e2.1602418912231.css rel=prefetch><link href=static/css/chunk-6e2849fe.1602418912231.css rel=prefetch><link href=static/css/chunk-72af1ea3.1602418912231.css rel=prefetch><link href=static/css/chunk-79c655d8.1602418912231.css rel=prefetch><link href=static/css/chunk-7a1f777a.1602418912231.css rel=prefetch><link href=static/css/chunk-7c2b229d.1602418912231.css rel=prefetch><link href=static/css/chunk-92e61cce.1602418912231.css rel=prefetch><link href=static/css/chunk-a5c6e052.1602418912231.css rel=prefetch><link href=static/css/chunk-ad414282.1602418912231.css rel=prefetch><link href=static/css/chunk-aeb46760.1602418912231.css rel=prefetch><link href=static/css/chunk-c33f683c.1602418912231.css rel=prefetch><link href=static/css/chunk-ca5dedd6.1602418912231.css rel=prefetch><link href=static/css/chunk-f4c5ae6a.1602418912231.css rel=prefetch><link href=static/js/chunk-103812dd.1602418912231.js rel=prefetch><link href=static/js/chunk-1862077d.1602418912231.js rel=prefetch><link href=static/js/chunk-187a34f8.1602418912231.js rel=prefetch><link href=static/js/chunk-19f435ba.1602418912231.js rel=prefetch><link href=static/js/chunk-2e538218.1602418912231.js rel=prefetch><link href=static/js/chunk-31594ece.1602418912231.js rel=prefetch><link href=static/js/chunk-31b027f4.1602418912231.js rel=prefetch><link href=static/js/chunk-397c17bd.1602418912231.js rel=prefetch><link href=static/js/chunk-3f1840d7.1602418912231.js rel=prefetch><link href=static/js/chunk-457595f3.1602418912231.js rel=prefetch><link href=static/js/chunk-46a3c1b5.1602418912231.js rel=prefetch><link href=static/js/chunk-5394e32f.1602418912231.js rel=prefetch><link href=static/js/chunk-58ed90ea.1602418912231.js rel=prefetch><link href=static/js/chunk-5c181334.1602418912231.js rel=prefetch><link href=static/js/chunk-5ee2f3e8.1602418912231.js rel=prefetch><link href=static/js/chunk-604ef36d.1602418912231.js rel=prefetch><link href=static/js/chunk-6162fe56.1602418912231.js rel=prefetch><link href=static/js/chunk-61d0b99d.1602418912231.js rel=prefetch><link href=static/js/chunk-61d97144.1602418912231.js rel=prefetch><link href=static/js/chunk-63c0f60c.1602418912231.js rel=prefetch><link href=static/js/chunk-69e05c79.1602418912231.js rel=prefetch><link href=static/js/chunk-69f1a460.1602418912231.js rel=prefetch><link href=static/js/chunk-6b06a7e2.1602418912231.js rel=prefetch><link href=static/js/chunk-6e2849fe.1602418912231.js rel=prefetch><link href=static/js/chunk-72af1ea3.1602418912231.js rel=prefetch><link href=static/js/chunk-79c655d8.1602418912231.js rel=prefetch><link href=static/js/chunk-7a1f777a.1602418912231.js rel=prefetch><link href=static/js/chunk-7c2b229d.1602418912231.js rel=prefetch><link href=static/js/chunk-92e61cce.1602418912231.js rel=prefetch><link href=static/js/chunk-a5c6e052.1602418912231.js rel=prefetch><link href=static/js/chunk-ad414282.1602418912231.js rel=prefetch><link href=static/js/chunk-aeb46760.1602418912231.js rel=prefetch><link href=static/js/chunk-c33f683c.1602418912231.js rel=prefetch><link href=static/js/chunk-ca5dedd6.1602418912231.js rel=prefetch><link href=static/js/chunk-f4c5ae6a.1602418912231.js rel=prefetch><link href=assets/css/app.css rel=preload as=style><link href=assets/css/chunk-vendors.css rel=preload as=style><link href=static/css/app.1602418912231.css rel=preload as=style><link href=static/css/chunk-vendors.1602418912231.css rel=preload as=style><link href=static/js/app.1602418912231.js rel=preload as=script><link href=static/js/chunk-vendors.1602418912231.js rel=preload as=script><link href=assets/css/chunk-vendors.css rel=stylesheet><link href=static/css/chunk-vendors.1602418912231.css rel=stylesheet><link href=assets/css/app.css rel=stylesheet><link href=static/css/app.1602418912231.css rel=stylesheet></head><body><noscript><strong>We're sorry but website doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=./js/unionrsa.js></script><script src=static/js/chunk-vendors.1602418912231.js></script><script src=static/js/app.1602418912231.js></script></body></html>
...\ No newline at end of file ...\ No newline at end of file
3 <![endif]--><title>平安人寿香港</title><link href=assets/css/chunk-103812dd.css rel=prefetch><link href=assets/css/chunk-1862077d.css rel=prefetch><link href=assets/css/chunk-187a34f8.css rel=prefetch><link href=assets/css/chunk-19f435ba.css rel=prefetch><link href=assets/css/chunk-2e538218.css rel=prefetch><link href=assets/css/chunk-31594ece.css rel=prefetch><link href=assets/css/chunk-31b027f4.css rel=prefetch><link href=assets/css/chunk-397c17bd.css rel=prefetch><link href=assets/css/chunk-3f1840d7.css rel=prefetch><link href=assets/css/chunk-457595f3.css rel=prefetch><link href=assets/css/chunk-46a3c1b5.css rel=prefetch><link href=assets/css/chunk-5394e32f.css rel=prefetch><link href=assets/css/chunk-58ed90ea.css rel=prefetch><link href=assets/css/chunk-5c181334.css rel=prefetch><link href=assets/css/chunk-5ee2f3e8.css rel=prefetch><link href=assets/css/chunk-604ef36d.css rel=prefetch><link href=assets/css/chunk-6162fe56.css rel=prefetch><link href=assets/css/chunk-61d0b99d.css rel=prefetch><link href=assets/css/chunk-61d97144.css rel=prefetch><link href=assets/css/chunk-63c0f60c.css rel=prefetch><link href=assets/css/chunk-69e05c79.css rel=prefetch><link href=assets/css/chunk-69f1a460.css rel=prefetch><link href=assets/css/chunk-6b06a7e2.css rel=prefetch><link href=assets/css/chunk-6e2849fe.css rel=prefetch><link href=assets/css/chunk-72af1ea3.css rel=prefetch><link href=assets/css/chunk-79c655d8.css rel=prefetch><link href=assets/css/chunk-7a1f777a.css rel=prefetch><link href=assets/css/chunk-7c2b229d.css rel=prefetch><link href=assets/css/chunk-92e61cce.css rel=prefetch><link href=assets/css/chunk-a5c6e052.css rel=prefetch><link href=assets/css/chunk-ad414282.css rel=prefetch><link href=assets/css/chunk-aeb46760.css rel=prefetch><link href=assets/css/chunk-c33f683c.css rel=prefetch><link href=assets/css/chunk-ca5dedd6.css rel=prefetch><link href=assets/css/chunk-f4c5ae6a.css rel=prefetch><link href=static/css/chunk-103812dd.1602495723617.css rel=prefetch><link href=static/css/chunk-1862077d.1602495723617.css rel=prefetch><link href=static/css/chunk-187a34f8.1602495723617.css rel=prefetch><link href=static/css/chunk-19f435ba.1602495723617.css rel=prefetch><link href=static/css/chunk-2e538218.1602495723617.css rel=prefetch><link href=static/css/chunk-31594ece.1602495723617.css rel=prefetch><link href=static/css/chunk-31b027f4.1602495723617.css rel=prefetch><link href=static/css/chunk-397c17bd.1602495723617.css rel=prefetch><link href=static/css/chunk-3f1840d7.1602495723617.css rel=prefetch><link href=static/css/chunk-457595f3.1602495723617.css rel=prefetch><link href=static/css/chunk-46a3c1b5.1602495723617.css rel=prefetch><link href=static/css/chunk-5394e32f.1602495723617.css rel=prefetch><link href=static/css/chunk-58ed90ea.1602495723617.css rel=prefetch><link href=static/css/chunk-5c181334.1602495723617.css rel=prefetch><link href=static/css/chunk-5ee2f3e8.1602495723617.css rel=prefetch><link href=static/css/chunk-604ef36d.1602495723617.css rel=prefetch><link href=static/css/chunk-6162fe56.1602495723617.css rel=prefetch><link href=static/css/chunk-61d0b99d.1602495723617.css rel=prefetch><link href=static/css/chunk-61d97144.1602495723617.css rel=prefetch><link href=static/css/chunk-63c0f60c.1602495723617.css rel=prefetch><link href=static/css/chunk-69e05c79.1602495723617.css rel=prefetch><link href=static/css/chunk-69f1a460.1602495723617.css rel=prefetch><link href=static/css/chunk-6b06a7e2.1602495723617.css rel=prefetch><link href=static/css/chunk-6e2849fe.1602495723617.css rel=prefetch><link href=static/css/chunk-72af1ea3.1602495723617.css rel=prefetch><link href=static/css/chunk-79c655d8.1602495723617.css rel=prefetch><link href=static/css/chunk-7a1f777a.1602495723617.css rel=prefetch><link href=static/css/chunk-7c2b229d.1602495723617.css rel=prefetch><link href=static/css/chunk-92e61cce.1602495723617.css rel=prefetch><link href=static/css/chunk-a5c6e052.1602495723617.css rel=prefetch><link href=static/css/chunk-ad414282.1602495723617.css rel=prefetch><link href=static/css/chunk-aeb46760.1602495723617.css rel=prefetch><link href=static/css/chunk-c33f683c.1602495723617.css rel=prefetch><link href=static/css/chunk-ca5dedd6.1602495723617.css rel=prefetch><link href=static/css/chunk-f4c5ae6a.1602495723617.css rel=prefetch><link href=static/js/chunk-103812dd.1602495723617.js rel=prefetch><link href=static/js/chunk-1862077d.1602495723617.js rel=prefetch><link href=static/js/chunk-187a34f8.1602495723617.js rel=prefetch><link href=static/js/chunk-19f435ba.1602495723617.js rel=prefetch><link href=static/js/chunk-2e538218.1602495723617.js rel=prefetch><link href=static/js/chunk-31594ece.1602495723617.js rel=prefetch><link href=static/js/chunk-31b027f4.1602495723617.js rel=prefetch><link href=static/js/chunk-397c17bd.1602495723617.js rel=prefetch><link href=static/js/chunk-3f1840d7.1602495723617.js rel=prefetch><link href=static/js/chunk-457595f3.1602495723617.js rel=prefetch><link href=static/js/chunk-46a3c1b5.1602495723617.js rel=prefetch><link href=static/js/chunk-5394e32f.1602495723617.js rel=prefetch><link href=static/js/chunk-58ed90ea.1602495723617.js rel=prefetch><link href=static/js/chunk-5c181334.1602495723617.js rel=prefetch><link href=static/js/chunk-5ee2f3e8.1602495723617.js rel=prefetch><link href=static/js/chunk-604ef36d.1602495723617.js rel=prefetch><link href=static/js/chunk-6162fe56.1602495723617.js rel=prefetch><link href=static/js/chunk-61d0b99d.1602495723617.js rel=prefetch><link href=static/js/chunk-61d97144.1602495723617.js rel=prefetch><link href=static/js/chunk-63c0f60c.1602495723617.js rel=prefetch><link href=static/js/chunk-69e05c79.1602495723617.js rel=prefetch><link href=static/js/chunk-69f1a460.1602495723617.js rel=prefetch><link href=static/js/chunk-6b06a7e2.1602495723617.js rel=prefetch><link href=static/js/chunk-6e2849fe.1602495723617.js rel=prefetch><link href=static/js/chunk-72af1ea3.1602495723617.js rel=prefetch><link href=static/js/chunk-79c655d8.1602495723617.js rel=prefetch><link href=static/js/chunk-7a1f777a.1602495723617.js rel=prefetch><link href=static/js/chunk-7c2b229d.1602495723617.js rel=prefetch><link href=static/js/chunk-92e61cce.1602495723617.js rel=prefetch><link href=static/js/chunk-a5c6e052.1602495723617.js rel=prefetch><link href=static/js/chunk-ad414282.1602495723617.js rel=prefetch><link href=static/js/chunk-aeb46760.1602495723617.js rel=prefetch><link href=static/js/chunk-c33f683c.1602495723617.js rel=prefetch><link href=static/js/chunk-ca5dedd6.1602495723617.js rel=prefetch><link href=static/js/chunk-f4c5ae6a.1602495723617.js rel=prefetch><link href=assets/css/app.css rel=preload as=style><link href=assets/css/chunk-vendors.css rel=preload as=style><link href=static/css/app.1602495723617.css rel=preload as=style><link href=static/css/chunk-vendors.1602495723617.css rel=preload as=style><link href=static/js/app.1602495723617.js rel=preload as=script><link href=static/js/chunk-vendors.1602495723617.js rel=preload as=script><link href=assets/css/chunk-vendors.css rel=stylesheet><link href=static/css/chunk-vendors.1602495723617.css rel=stylesheet><link href=assets/css/app.css rel=stylesheet><link href=static/css/app.1602495723617.css rel=stylesheet></head><body><noscript><strong>We're sorry but website doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=./js/unionrsa.js></script><script src=static/js/chunk-vendors.1602495723617.js></script><script src=static/js/app.1602495723617.js></script></body></html>
...\ No newline at end of file ...\ No newline at end of file
......
1 (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-604ef36d"],{"0e04":function(t,e,i){},"287a":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"content"},[i("auth",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],on:{onLogout:t.userLogout}}),t.outsideUrl?i("iframe",{ref:"myiframe",attrs:{id:"myiframe",width:"100%",height:"100%",scrolling:"yes",frameborder:"0",src:t.outsideUrl}}):t._e()],1)},o=[],r=(i("5ab2"),i("6d57"),i("e10e"),i("ac9f")),s=i("8876"),a=i("4ec3"),c=i.n(a),u=i("ed0b"),h=i("f72f"),l=i("509f"),f=i.n(l);function g(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function d(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?g(Object(i),!0).forEach((function(e){Object(r["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):g(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var p="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA1SNj4qiOEmvTkZfp+Gt0UOLTCdxuEqRE+k0fROhgZdN2GmtDg6jcZV/CXKdwQGGdwOYdxEngRQb2K/SXd5Rnu4MkuAoHopDNrBRVqoJNQi6VOv6fvAEzeYivtS9aMM7IvdZuN1QlASCz2vxfUKJ3BaijMQqQE9m0pVm+0BDEfwIDAQAB",m=new f.a;function v(t){var e=JSON.stringify(t),i=m.encrypt(e);return i}m.setPublicKey(p);var b={data:function(){return{key:"value",outsideUrl:"",information:null,iframeSrc:"",isInit:!1,topSpaceHeight:90}},components:{Auth:h["a"]},computed:d({},Object(s["c"])({userInfo:function(t){return t.userInfo}})),methods:{init:function(){var t=this;this.isLogin()&&!this.information?Object(u["c"])({url:c.a.profile,sid:!0}).then((function(e){e&&(t.information=e,t.isInit=!0,t.gotoVhis())})):(this.isInit=!0,this.gotoVhis())},userLogout:function(){this.isInit&&(this.removePath(),this.gotoVhis())},isLogin:function(){return this.userInfo&&this.userInfo.sid},gotoVhis:function(){var t=this.currentPath(),e=this.$route.query.p;e=e||"VHIS001";var i=this.$i18n.locale;switch(i){case"zh":t+="?language=zh-cn";break;case"en":t+="?language=en";break;default:t+="?language=zh-hk";break}t+="&partnerId=PA001&productCode="+e;var n=null;if(this.$route.query.d)try{var o=JSON.parse(this.$route.query.d);n=o}catch(r){console.error("paramster 'd' is not a json ",this.$route.query.d)}else this.information&&this.information.idType&&this.information.idNo&&(n={name:this.information.fullName,gender:this.information.sex,birthday:this.information.birthDate,certiType:this.information.policyIdType?this.information.policyIdType:this.information.idType,certiNo:this.information.idNo});n&&(t+="&data="+v(n)),this.$set(this,"outsideUrl",t)},currentPath:function(){var t=this.getPath();return t=t||window.global.vhis,t},cachePath:function(t){var e="VHIS_PATH_CACHE";sessionStorage.setItem(e,t)},getPath:function(){var t="VHIS_PATH_CACHE",e=sessionStorage.getItem(t);return void 0!=e&&e?e:""},removePath:function(){var t="VHIS_PATH_CACHE";sessionStorage.removeItem(t)}},watch:{"$route.query.p":function(){this.init()}},mounted:function(){var t=this;this.init(),this.$root.eventBus.$on("langChange",(function(){try{t.gotoVhis()}catch(e){}})),window.removeEventListener("message",(function(){})),window.addEventListener("message",(function(e){var i=e.data&&e.data.iframeSrc?e.data.iframeSrc:null;i&&(t.iframeSrc=i,t.cachePath(i));var n=e.data&&e.data.height?e.data.height:null;if(n){var o=document.getElementById("myiframe");try{o.height=n,o.style.height=n+"px"}catch(c){}}var r=e.data&&e.data.scrollTop?e.data.scrollTop:null;r&&setTimeout((function(){document.body.scrollTop=r+t.topSpaceHeight,document.documentElement.scrollTop=r+t.topSpaceHeight}),100);var s=e.data&&e.data.getScrollTop?e.data.getScrollTop:null;if(s&&1==s){var a=document.body.scrollTop;a=a>0?a:document.documentElement.scrollTop,a-=t.topSpaceHeight,a=a>0?a:0;try{document.getElementById("myiframe").contentWindow.postMessage({scrollTop:a})}catch(e){console.log(e)}}}))},beforeDestroy:function(){},created:function(){}},y=b,w=(i("bbed"),i("623f")),O=Object(w["a"])(y,n,o,!1,null,"a93b0d76",null);e["default"]=O.exports},"56c3":function(t,e,i){"use strict";var n=i("8e67"),o=i.n(n);o.a},"8e67":function(t,e,i){},bbed:function(t,e,i){"use strict";var n=i("0e04"),o=i.n(n);o.a},f72f:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showPanel?n("div",[t.showUnAuth?n("div",[n("div",{staticClass:"alert"},[n("img",{staticClass:"icon",attrs:{src:i("a164"),alt:""}}),n("div",{staticClass:"txt"},[t._v("\n\t\t\t\t"+t._s(t.tips.tit)+"\n\t\t\t\t"),n("span",{staticClass:"pointer btn",on:{click:t.gotoLoginPage}},[t._v(t._s(t.$t("customService.unauth.login")))]),t._v("\n\t\t\t\t"+t._s(t.tips.or)+"\n\t\t\t\t"),n("span",{staticClass:"pointer btn",on:{click:t.gotoRegisterPage}},[t._v(t._s(t.$t("customService.unauth.register")))]),t._v("\n\t\t\t\t"+t._s(t.tips.tail)+"\n\t\t\t")]),"suggest"==t.model?n("img",{staticClass:"pointer close",attrs:{src:i("ddb8"),alt:""},on:{click:function(e){t.showSuggest=!1}}}):t._e()])]):t._e(),t.showProfileInfo?n("div",[n("div",{staticClass:"alert"},[n("img",{staticClass:"icon",attrs:{src:i("a164"),alt:""}}),n("div",{staticClass:"txt"},[t._v("\n\t\t\t\t"+t._s(t.$t("customService.unauth.baseInfoTip"))+" \n\t\t\t\t"),n("span",{staticClass:"pointer btn",on:{click:t.gotoInformationPage}},[t._v(t._s(t.$t("customService.unauth.infoBtn")))]),t._v("\n\t\t\t\t "+t._s(t.$t("customService.unauth.baseInfoTail"))+"\n\t\t\t")])])]):t._e(),"suggest"!=t.model?n("div",{staticClass:"empty-line"}):t._e()]):t._e()},o=[],r=(i("5ab2"),i("6d57"),i("e10e"),i("cc57"),i("ac9f")),s=i("8876");function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){Object(r["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var u={props:{model:{type:String,default:"auth"},checkProfile:{type:Boolean,default:!1},tipModel:{type:String,default:"m3"}},data:function(){return{key:"value",showProfileInfo:!1,showUnAuth:!1,showSuggest:!0,tips:{}}},components:{},computed:c({},Object(s["c"])({userInfo:function(t){return t.userInfo}}),{locale:function(){return this.$i18n.locale||"tc"},i18n:function(){return this.$i18n.messages&&this.$i18n.locale?this.$i18n.messages[this.$i18n.locale]:{}},showPanel:function(){var t="auth"==this.model&&(this.showProfileInfo||this.showUnAuth),e="suggest"==this.model&&this.showSuggest;return t||e}}),methods:{initData:function(){this.tips=this.i18n.customService.unauth[this.tipModel],this.userInfo&&this.userInfo.name?this.loginAction():this.logoutAction()},loginAction:function(){this.showUnAuth=!1,this.checkProfile?1==this.userInfo.hadFullInfo?this.$emit("onLogin",this.userInfo):this.showProfileInfo=!0:this.$emit("onLogin",this.userInfo)},logoutAction:function(){this.showUnAuth=!0,this.showProfileInfo=!1,this.$emit("onLogout",{})},gotoLoginPage:function(){var t=this.$route.path,e="?";for(var i in this.$route.query)t+=e+i+"="+this.$route.query[i],e="&";this.$router.push({path:"/login?callback="+t})},gotoRegisterPage:function(){this.$router.push({path:"/register"})},gotoInformationPage:function(){var t=this.$route.fullPath;this.$router.push({path:"/infomation/improve",query:{c:t,a:1}})},noAuth:function(){this.$store.commit("SET_USER_INFO",null),this.initData(),this.$emit("onLogout",{})}},mounted:function(){this.initData()},created:function(){var t=this;this.$root.eventBus.$on("langChange",(function(){try{t.tips=t.i18n.customService.unauth[t.tipModel]}catch(e){}}))},watch:{userInfo:function(t){t&&t.name?this.loginAction():this.logoutAction()}}},h=u,l=(i("56c3"),i("623f")),f=Object(l["a"])(h,n,o,!1,null,"1633fcb9",null);e["a"]=f.exports}}]);
...\ No newline at end of file ...\ No newline at end of file
1 (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-604ef36d"],{"0e04":function(t,e,i){},"287a":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"content"},[i("auth",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],on:{onLogout:t.userLogout}}),t.outsideUrl?i("iframe",{ref:"myiframe",attrs:{id:"myiframe",width:"100%",height:"100%",scrolling:"yes",frameborder:"0",src:t.outsideUrl}}):t._e()],1)},o=[],r=(i("5ab2"),i("6d57"),i("e10e"),i("f548"),i("ac9f")),s=i("8876"),a=i("4ec3"),c=i.n(a),u=i("ed0b"),h=i("f72f"),l=i("509f"),f=i.n(l);function p(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function d(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?p(Object(i),!0).forEach((function(e){Object(r["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var g="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA1SNj4qiOEmvTkZfp+Gt0UOLTCdxuEqRE+k0fROhgZdN2GmtDg6jcZV/CXKdwQGGdwOYdxEngRQb2K/SXd5Rnu4MkuAoHopDNrBRVqoJNQi6VOv6fvAEzeYivtS9aMM7IvdZuN1QlASCz2vxfUKJ3BaijMQqQE9m0pVm+0BDEfwIDAQAB",m=new f.a;function v(t){var e=JSON.stringify(t),i=m.encrypt(e);return i}m.setPublicKey(g);var b={data:function(){return{key:"value",outsideUrl:"",information:null,iframeSrc:"",isInit:!1,topSpaceHeight:90}},components:{Auth:h["a"]},computed:d({},Object(s["c"])({userInfo:function(t){return t.userInfo}})),methods:{init:function(){var t=this;this.isLogin()&&!this.information?Object(u["c"])({url:c.a.profile,sid:!0}).then((function(e){e&&(t.information=e,t.isInit=!0,t.gotoVhis())})):(this.isInit=!0,this.gotoVhis())},userLogout:function(){this.isInit&&(this.removePath(),this.gotoVhis())},isLogin:function(){return this.userInfo&&this.userInfo.sid},gotoVhis:function(){var t=this.currentPath(),e=this.$route.query.p;e=e||"VHIS001";var i=this.$i18n.locale;switch(i){case"zh":t+="?language=zh-cn";break;case"en":t+="?language=en";break;default:t+="?language=zh-hk";break}t+="&partnerId=PA001&productCode="+e;var n=null;if(this.$route.query.d)try{var o=JSON.parse(this.$route.query.d);n=o}catch(r){console.error("paramster 'd' is not a json ",this.$route.query.d)}else this.information&&this.information.idType&&this.information.idNo&&(n={name:this.information.fullName,gender:this.information.sex,birthday:this.information.birthDate,certiType:this.information.policyIdType?this.information.policyIdType:this.information.idType,certiNo:this.information.idNo});n&&(t+="&data="+v(n)),this.$set(this,"outsideUrl",t)},currentPath:function(){var t=this.getPath();return t=t||window.global.vhis,t},cachePath:function(t){var e="VHIS_PATH_CACHE";sessionStorage.setItem(e,t)},getPath:function(){var t="VHIS_PATH_CACHE",e=sessionStorage.getItem(t);return void 0!=e&&e?e:""},removePath:function(){var t="VHIS_PATH_CACHE";sessionStorage.removeItem(t)}},watch:{"$route.query.p":function(){this.init()}},mounted:function(){var t=this;this.init(),this.$root.eventBus.$on("langChange",(function(){try{t.gotoVhis()}catch(e){}})),window.removeEventListener("message",(function(){})),window.addEventListener("message",(function(e){var i=e.data&&e.data.iframeSrc?e.data.iframeSrc:null;i&&(t.iframeSrc=i,t.cachePath(i));var n=e.data&&e.data.height?e.data.height:null;if(n){var o=document.getElementById("myiframe");try{o.height=n,o.style.height=n+"px"}catch(l){}}var r=e.data&&e.data.scrollTop?e.data.scrollTop:null;r&&setTimeout((function(){document.body.scrollTop=r+t.topSpaceHeight,document.documentElement.scrollTop=r+t.topSpaceHeight}),100);var s=e.data&&e.data.getScrollTop?e.data.getScrollTop:null;if(s&&1==s){var a=document.body.scrollTop;a=a>0?a:document.documentElement.scrollTop,a-=t.topSpaceHeight,a=a>0?a:0;var c=t.currentPath(),u=0==c.indexOf("https"),h=c.replace("http://","");h=h.replace("https://",""),h=h.indexOf("/")>0?h.substr(0,h.indexOf("/")):h,h=u?"https://"+h:"http://"+h;try{document.getElementById("myiframe").contentWindow.postMessage({scrollHeight:a},h)}catch(e){console.log(e)}}}))},beforeDestroy:function(){},created:function(){}},y=b,O=(i("bbed"),i("623f")),w=Object(O["a"])(y,n,o,!1,null,"a93b0d76",null);e["default"]=w.exports},"56c3":function(t,e,i){"use strict";var n=i("8e67"),o=i.n(n);o.a},"8e67":function(t,e,i){},bbed:function(t,e,i){"use strict";var n=i("0e04"),o=i.n(n);o.a},f72f:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showPanel?n("div",[t.showUnAuth?n("div",[n("div",{staticClass:"alert"},[n("img",{staticClass:"icon",attrs:{src:i("a164"),alt:""}}),n("div",{staticClass:"txt"},[t._v("\n\t\t\t\t"+t._s(t.tips.tit)+"\n\t\t\t\t"),n("span",{staticClass:"pointer btn",on:{click:t.gotoLoginPage}},[t._v(t._s(t.$t("customService.unauth.login")))]),t._v("\n\t\t\t\t"+t._s(t.tips.or)+"\n\t\t\t\t"),n("span",{staticClass:"pointer btn",on:{click:t.gotoRegisterPage}},[t._v(t._s(t.$t("customService.unauth.register")))]),t._v("\n\t\t\t\t"+t._s(t.tips.tail)+"\n\t\t\t")]),"suggest"==t.model?n("img",{staticClass:"pointer close",attrs:{src:i("ddb8"),alt:""},on:{click:function(e){t.showSuggest=!1}}}):t._e()])]):t._e(),t.showProfileInfo?n("div",[n("div",{staticClass:"alert"},[n("img",{staticClass:"icon",attrs:{src:i("a164"),alt:""}}),n("div",{staticClass:"txt"},[t._v("\n\t\t\t\t"+t._s(t.$t("customService.unauth.baseInfoTip"))+" \n\t\t\t\t"),n("span",{staticClass:"pointer btn",on:{click:t.gotoInformationPage}},[t._v(t._s(t.$t("customService.unauth.infoBtn")))]),t._v("\n\t\t\t\t "+t._s(t.$t("customService.unauth.baseInfoTail"))+"\n\t\t\t")])])]):t._e(),"suggest"!=t.model?n("div",{staticClass:"empty-line"}):t._e()]):t._e()},o=[],r=(i("5ab2"),i("6d57"),i("e10e"),i("cc57"),i("ac9f")),s=i("8876");function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){Object(r["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var u={props:{model:{type:String,default:"auth"},checkProfile:{type:Boolean,default:!1},tipModel:{type:String,default:"m3"}},data:function(){return{key:"value",showProfileInfo:!1,showUnAuth:!1,showSuggest:!0,tips:{}}},components:{},computed:c({},Object(s["c"])({userInfo:function(t){return t.userInfo}}),{locale:function(){return this.$i18n.locale||"tc"},i18n:function(){return this.$i18n.messages&&this.$i18n.locale?this.$i18n.messages[this.$i18n.locale]:{}},showPanel:function(){var t="auth"==this.model&&(this.showProfileInfo||this.showUnAuth),e="suggest"==this.model&&this.showSuggest;return t||e}}),methods:{initData:function(){this.tips=this.i18n.customService.unauth[this.tipModel],this.userInfo&&this.userInfo.name?this.loginAction():this.logoutAction()},loginAction:function(){this.showUnAuth=!1,this.checkProfile?1==this.userInfo.hadFullInfo?this.$emit("onLogin",this.userInfo):this.showProfileInfo=!0:this.$emit("onLogin",this.userInfo)},logoutAction:function(){this.showUnAuth=!0,this.showProfileInfo=!1,this.$emit("onLogout",{})},gotoLoginPage:function(){var t=this.$route.path,e="?";for(var i in this.$route.query)t+=e+i+"="+this.$route.query[i],e="&";this.$router.push({path:"/login?callback="+t})},gotoRegisterPage:function(){this.$router.push({path:"/register"})},gotoInformationPage:function(){var t=this.$route.fullPath;this.$router.push({path:"/infomation/improve",query:{c:t,a:1}})},noAuth:function(){this.$store.commit("SET_USER_INFO",null),this.initData(),this.$emit("onLogout",{})}},mounted:function(){this.initData()},created:function(){var t=this;this.$root.eventBus.$on("langChange",(function(){try{t.tips=t.i18n.customService.unauth[t.tipModel]}catch(e){}}))},watch:{userInfo:function(t){t&&t.name?this.loginAction():this.logoutAction()}}},h=u,l=(i("56c3"),i("623f")),f=Object(l["a"])(h,n,o,!1,null,"1633fcb9",null);e["a"]=f.exports}}]);
...\ No newline at end of file ...\ No newline at end of file
...@@ -227,6 +227,7 @@ export default { ...@@ -227,6 +227,7 @@ export default {
227 }, 100); 227 }, 100);
228 } 228 }
229 229
230
230 // 提示滚动高度 231 // 提示滚动高度
231 let getScrollTop = e.data && e.data.getScrollTop ? e.data.getScrollTop : null; 232 let getScrollTop = e.data && e.data.getScrollTop ? e.data.getScrollTop : null;
232 if (getScrollTop && getScrollTop == 1) { 233 if (getScrollTop && getScrollTop == 1) {
...@@ -234,8 +235,14 @@ export default { ...@@ -234,8 +235,14 @@ export default {
234 scrollHeight = scrollHeight > 0 ? scrollHeight : document.documentElement.scrollTop; 235 scrollHeight = scrollHeight > 0 ? scrollHeight : document.documentElement.scrollTop;
235 scrollHeight = scrollHeight - this.topSpaceHeight; 236 scrollHeight = scrollHeight - this.topSpaceHeight;
236 scrollHeight = scrollHeight > 0 ? scrollHeight : 0; 237 scrollHeight = scrollHeight > 0 ? scrollHeight : 0;
238 let vhisUrl = this.currentPath();
239 let isHttps = vhisUrl.indexOf("https") == 0 ? true : false;
240 let host = vhisUrl.replace("http://", "");
241 host = host.replace("https://", "");
242 host = host.indexOf("/") > 0 ? host.substr(0, host.indexOf("/")) : host;
243 host = isHttps ? "https://" + host : "http://" + host;
237 try { 244 try {
238 document.getElementById('myiframe').contentWindow.postMessage({ scrollTop: scrollHeight }); 245 document.getElementById('myiframe').contentWindow.postMessage({ scrollHeight: scrollHeight }, host);
239 } catch (e) { 246 } catch (e) {
240 console.log(e); 247 console.log(e);
241 } 248 }
......