a6034221 by joe

0326交付

1 parent 31a3c8f8
Showing 88 changed files with 43 additions and 13 deletions
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a1fc8b9"],{"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",{attrs:{sandbox:"allow-top-navigation",id:"myiframe",width:"100%",height:"100%",scrolling:"yes",frameborder:"0",src:t.outsideUrl}}):t._e()],1)},o=[],s=(i("5ab2"),i("6d57"),i("e10e"),i("ac9f")),r=i("8876"),a=i("4ec3"),c=i.n(a),u=i("ed0b"),h=i("f72f"),f=i("509f"),l=i.n(f);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 p(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(s["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 d="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA1SNj4qiOEmvTkZfp+Gt0UOLTCdxuEqRE+k0fROhgZdN2GmtDg6jcZV/CXKdwQGGdwOYdxEngRQb2K/SXd5Rnu4MkuAoHopDNrBRVqoJNQi6VOv6fvAEzeYivtS9aMM7IvdZuN1QlASCz2vxfUKJ3BaijMQqQE9m0pVm+0BDEfwIDAQAB",m=new l.a;function A(t){var e=JSON.stringify(t),i=m.encrypt(e);return i}m.setPublicKey(d);var v={data:function(){return{key:"value",outsideUrl:"",information:null}},components:{Auth:h["a"]},computed:p({},Object(r["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.gotoVhis())})):this.gotoVhis()},userLogout:function(){this.gotoVhis()},isLogin:function(){return this.userInfo&&this.userInfo.sid},gotoVhis:function(){var t=window.global.vhis,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}if(t+="&partnerId=PA001&productCode="+e,this.information&&this.information.idType&&this.information.idNo){var 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};t+="&data="+A(n)}this.$set(this,"outsideUrl","");var o=document.getElementById("myiframe");try{o.height=0,o.style.height="0px"}catch(r){}var s=this;setTimeout((function(){console.log("vhis:",t),s.outsideUrl=t}),100)}},watch:{"$route.query.p":function(){this.init()}},mounted:function(){this.init(),window.removeEventListener("message",(function(){})),window.addEventListener("message",(function(t){var e=t.data?t.data.height:null;if(e){var i=document.getElementById("myiframe");try{i.height=e,i.style.height=e+"px"}catch(n){}}}))},created:function(){}},b=v,y=(i("34f2"),i("623f")),w=Object(y["a"])(b,n,o,!1,null,"3d6bd51a",null);e["default"]=w.exports},3107:function(t,e,i){},"34f2":function(t,e,i){"use strict";var n=i("3107"),o=i.n(n);o.a},"6f62":function(t,e,i){},a164:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABWklEQVQ4jZ3TMUiUcRzG8c/7dhLeFtwRwlHDhYOI00EHoZgQUZtDQY4niHC4RENBEkriINnQkHu01pY2nVRLhBZB3apgwRVF0VJR5nDvxd/XV6EeeIf3z/N9/r8H/r/oy1hZSiXUcR4ncAibWMESmqE5TsF1vEUPriUBxzCJCM8xG3K5AL6OGobwKhX8AQ0s4kEyZS2c4BymMJKCy+gP/jdwGoPJVH8DFnA1MYS6jPnU2VdM4Ca6Ywwkne/Zqyj50mrgHc7EqOIZfmUYD9IqqjGKaP0jLGGKMT6j8B8BBXyKsYaK7K53cGOfgFNYj/FCu/9ohuksLmScV9CL5Rz+YBq38BQfA+Nj5FNwHncxh2+dd3Afy9rvvRSYm9oVOzqCh3iP2+zehToe4TVm0IfD6NLeiSt4gy1cxO90QKfKMI7jCb7jJ17iJC5hHD86UJSxzqGOJpe0sJ1l2AEH3EWOEBiFEQAAAABJRU5ErkJggg=="},c309:function(t,e,i){"use strict";var n=i("6f62"),o=i.n(n);o.a},ddb8:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAuUlEQVQokZWS0Q3CMAxEXyoWYAV3CRAfZRwYoQzQlgFaYBmQ+IAl4qxiftIqROEDS5Gs050vPhkzw6tuzIxfz6s6r7o3MyoNoQFeGkJHoTQEB4zAXUPYVsATuAFtLkrIR+Bci7xTy4tXNa/aFbB+/p4zs3TaBByAHljHfqhF2tl1ERRE5GSAqrRoUpYDiyCbPgDXUhCrErkWaSNGFFGLnAB+ppEkNaXpOa/aAI+Y89eCifsY3Xf8exofnNjWcJSbj90AAAAASUVORK5CYII="},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._s(t.tips.tit)+"\n "),n("span",{staticClass:"pointer btn",on:{click:t.gotoLoginPage}},[t._v(t._s(t.$t("customService.unauth.login")))]),t._v(" \n "+t._s(t.tips.or)+"\n "),n("span",{staticClass:"pointer btn",on:{click:t.gotoRegisterPage}},[t._v(t._s(t.$t("customService.unauth.register")))]),t._v("\n "+t._s(t.tips.tail)+"\n ")]),"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._s(t.$t("customService.unauth.baseInfoTip"))+" \n "),n("span",{staticClass:"pointer btn",on:{click:t.gotoInformationPage}},[t._v(t._s(t.$t("customService.unauth.infoBtn")))]),t._v("\n  "+t._s(t.$t("customService.unauth.baseInfoTail"))+"\n ")])])]):t._e(),"suggest"!=t.model?n("div",{staticClass:"empty-line"}):t._e()]):t._e()},o=[],s=(i("5ab2"),i("6d57"),i("e10e"),i("cc57"),i("ac9f")),r=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(s["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(r["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(){},watch:{userInfo:function(t){t&&t.name?this.loginAction():this.logoutAction()}}},h=u,f=(i("c309"),i("623f")),l=Object(f["a"])(h,n,o,!1,null,"48a574a6",null);e["a"]=l.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ef925fc"],{"0117":function(t,n,e){"use strict";var i=e("473d"),a=e.n(i);a.a},"121a":function(t,n,e){},"473d":function(t,n,e){},"6f9f":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:"content"},[e("div",[e("div",{staticClass:"top-space"}),e("h2",{staticClass:"tit"},[t._v(t._s(t.title))]),e("div",{staticClass:"box desc ql-editor text-jtf",domProps:{innerHTML:t._s(t.content)}})])])},a=[],c=e("4ec3"),s=e.n(c),o=e("ed0b"),u=(e("121a"),{data:function(){return{key:"value",title:"",content:""}},components:{},methods:{initData:function(){var t=this;Object(o["b"])({url:s.a.companyOutline,data:{l:this.$i18n.locale}}).then((function(n){t.content=n.content,t.title=n.title}))}},mounted:function(){this.initData()},created:function(){}}),l=u,d=(e("0117"),e("623f")),f=Object(d["a"])(l,i,a,!1,null,"03baeda2",null);n["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ef925fc"],{"0117":function(t,n,e){"use strict";var i=e("473d"),a=e.n(i);a.a},"121a":function(t,n,e){},"473d":function(t,n,e){},"6f9f":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:"content"},[e("div",[e("div",{staticClass:"top-space"}),e("h2",{staticClass:"tit"},[t._v(t._s(t.title))]),e("div",{staticClass:"box desc ql-editor text-jtf",domProps:{innerHTML:t._s(t.content)}})])])},a=[],c=e("4ec3"),o=e.n(c),s=e("ed0b"),u=(e("121a"),{data:function(){return{key:"value",title:"",content:""}},components:{},methods:{initData:function(){var t=this;Object(s["b"])({url:o.a.companyOutline,data:{l:this.$i18n.locale}}).then((function(n){t.content=n.content,t.title=n.title}))}},mounted:function(){this.initData()},created:function(){var t=this;this.$root.eventBus.$on("langChange",(function(){try{t.initData()}catch(n){}}))}}),l=u,r=(e("0117"),e("623f")),d=Object(r["a"])(l,i,a,!1,null,"03baeda2",null);n["default"]=d.exports}}]);
\ No newline at end of file
......
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28abceb7"],{"121a":function(t,e,a){},"2b5c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAABMUlEQVQokY3SO0gcURiG4WfHAfGGiEiECBaCFintttLO4N1eUlhoZ6F1sAjYWC0WoqA2FpJGFAshoJ0hYG0XBQuzNuIFoi6rFjMLs8Ms+DUH/vO95/y33MjXISn9QD8+oQnXKGIDvyqmIAEM4wpfsIUB9GEB5yhgv2LOxT+OYw+T8Ql1aMZd4vFj1CMfoA07yCcg+IbVVBmDaMVaiO84wmnK9IpyugEYxVkQN6KQYSijlBH/i8cAD/iTYWhQXV9SxRBP+J9xeYOlVLpvWMZtiEZ04l8KPEAHPqfAEtpCURPGsJ4Cy6KhZ6krwBrmahiyNI27IE6piO0PQF2i2c5WVm4CvThEdw1oBr8xj5MwDj6LNmcFm7jAJV7Qjh60YEo8ulC1FkWLPR6nFeIeP7GbNL4DTFpA9HKFTM8AAAAASUVORK5CYII="},c366:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"content"},[n("div",[n("div",{staticClass:"top-space"}),n("h2",{staticClass:"tit"},[t._v(t._s(t.data.title))]),n("div",{staticClass:"box back",on:{click:t.toNewsList}},[t._v(" "+t._s(t.$t("newsDetail.back"))+" >")]),n("div",{staticClass:"box dat"},[n("div",{staticClass:"date"},[n("img",{staticClass:"icon-clock",attrs:{src:a("2b5c"),alt:""}}),t._v(" "+t._s(t.$t("newsDetail.publishAt"))+":"+t._s(t.data.dateFormat))]),n("div",{staticClass:"pv"},[t._v(t._s(t.$t("newsDetail.readers"))+":"+t._s(t.data.pv)+" "+t._s(t.$t("newsDetail.per")))])]),n("div",{staticClass:"box desc ql-editor text-jtf",domProps:{innerHTML:t._s(t.data.content)}},[t._v("\n\t\t\t"+t._s(t.data.content)+"\n\t\t")])])])},c=[],i=(a("5ab2"),a("6d57"),a("e10e"),a("ac9f")),s=a("8876"),o=a("4ec3"),r=a.n(o),l=a("ed0b"),d=(a("121a"),a("71e2")),u=a("fa7d");function p(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function b(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?p(Object(a),!0).forEach((function(e){Object(i["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var f={data:function(){return{key:"value",data:{title:"",content:"",dateFormat:"",pv:0},hadData:!0}},computed:b({},Object(s["c"])({userInfo:function(t){return t.userInfo}})),components:{},methods:{toNewsList:function(){this.$router.go(-1)},initData:function(){var t=this,e=this.$route.query.c,a=this.$i18n.locale,n={l:a,newsCode:e};Object(l["b"])({url:r.a.newsDetail,data:n}).then((function(e){if(e){t.data.title=e.title;var a=e.content;t.data.content=a,t.data.dateFormat=Object(d["c"])(e.createAt),t.data.pv=e.pv,t.data.title&&Object(u["i"])(t.data.title)}else t.hadData=!1}))}},mounted:function(){this.initData()},created:function(){document.documentElement.scrollTop=0,document.body.scrollTop=0}},A=f,v=(a("e156"),a("623f")),O=Object(v["a"])(A,n,c,!1,null,"729bf6fa",null);e["default"]=O.exports},c7ba:function(t,e,a){},e156:function(t,e,a){"use strict";var n=a("c7ba"),c=a.n(n);c.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28abceb7"],{"121a":function(t,e,a){},"2b5c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAABMUlEQVQokY3SO0gcURiG4WfHAfGGiEiECBaCFintttLO4N1eUlhoZ6F1sAjYWC0WoqA2FpJGFAshoJ0hYG0XBQuzNuIFoi6rFjMLs8Ms+DUH/vO95/y33MjXISn9QD8+oQnXKGIDvyqmIAEM4wpfsIUB9GEB5yhgv2LOxT+OYw+T8Ql1aMZd4vFj1CMfoA07yCcg+IbVVBmDaMVaiO84wmnK9IpyugEYxVkQN6KQYSijlBH/i8cAD/iTYWhQXV9SxRBP+J9xeYOlVLpvWMZtiEZ04l8KPEAHPqfAEtpCURPGsJ4Cy6KhZ6krwBrmahiyNI27IE6piO0PQF2i2c5WVm4CvThEdw1oBr8xj5MwDj6LNmcFm7jAJV7Qjh60YEo8ulC1FkWLPR6nFeIeP7GbNL4DTFpA9HKFTM8AAAAASUVORK5CYII="},c366:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"content"},[n("div",[n("div",{staticClass:"top-space"}),n("h2",{staticClass:"tit"},[t._v(t._s(t.data.title))]),n("div",{staticClass:"box back",on:{click:t.toNewsList}},[t._v(" "+t._s(t.$t("newsDetail.back"))+" >")]),n("div",{staticClass:"box dat"},[n("div",{staticClass:"date"},[n("img",{staticClass:"icon-clock",attrs:{src:a("2b5c"),alt:""}}),t._v(" "+t._s(t.$t("newsDetail.publishAt"))+":"+t._s(t.data.dateFormat))]),n("div",{staticClass:"pv"},[t._v(t._s(t.$t("newsDetail.readers"))+":"+t._s(t.data.pv)+" "+t._s(t.$t("newsDetail.per")))])]),n("div",{staticClass:"box desc ql-editor text-jtf",domProps:{innerHTML:t._s(t.data.content)}},[t._v("\n\t\t\t"+t._s(t.data.content)+"\n\t\t")])])])},c=[],i=(a("5ab2"),a("6d57"),a("e10e"),a("ac9f")),s=a("8876"),o=a("4ec3"),r=a.n(o),l=a("ed0b"),d=(a("121a"),a("71e2")),u=a("fa7d");function p(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function b(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?p(Object(a),!0).forEach((function(e){Object(i["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var f={data:function(){return{key:"value",data:{title:"",content:"",dateFormat:"",pv:0},hadData:!0}},computed:b({},Object(s["c"])({userInfo:function(t){return t.userInfo}})),components:{},methods:{toNewsList:function(){this.$router.go(-1)},initData:function(){var t=this,e=this.$route.query.c,a=this.$i18n.locale,n={l:a,newsCode:e};Object(l["b"])({url:r.a.newsDetail,data:n}).then((function(e){if(e){t.data.title=e.title;var a=e.content;t.data.content=a,t.data.dateFormat=Object(d["c"])(e.createAt),t.data.pv=e.pv,t.data.title&&Object(u["i"])(t.data.title)}else t.hadData=!1}))}},mounted:function(){this.initData()},created:function(){var t=this;document.documentElement.scrollTop=0,document.body.scrollTop=0,this.$root.eventBus.$on("langChange",(function(){try{t.initData()}catch(e){}}))}},v=f,A=(a("e156"),a("623f")),O=Object(A["a"])(v,n,c,!1,null,"729bf6fa",null);e["default"]=O.exports},c7ba:function(t,e,a){},e156:function(t,e,a){"use strict";var n=a("c7ba"),c=a.n(n);c.a}}]);
\ No newline at end of file
......
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6669576f"],{"17fa":function(t,e,i){"use strict";var n=i("a3a6"),o=i.n(n);o.a},"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",{attrs:{id:"myiframe",width:"100%",height:"100%",scrolling:"yes",frameborder:"0",src:t.outsideUrl}}):t._e()],1)},o=[],s=(i("5ab2"),i("6d57"),i("e10e"),i("ac9f")),r=i("8876"),a=i("4ec3"),c=i.n(a),u=i("ed0b"),h=i("f72f"),f=i("509f"),l=i.n(f);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 p(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(s["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 d="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA1SNj4qiOEmvTkZfp+Gt0UOLTCdxuEqRE+k0fROhgZdN2GmtDg6jcZV/CXKdwQGGdwOYdxEngRQb2K/SXd5Rnu4MkuAoHopDNrBRVqoJNQi6VOv6fvAEzeYivtS9aMM7IvdZuN1QlASCz2vxfUKJ3BaijMQqQE9m0pVm+0BDEfwIDAQAB",m=new l.a;function A(t){var e=JSON.stringify(t),i=m.encrypt(e);return i}m.setPublicKey(d);var v={data:function(){return{key:"value",outsideUrl:"",information:null}},components:{Auth:h["a"]},computed:p({},Object(r["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.gotoVhis())})):this.gotoVhis()},userLogout:function(){this.gotoVhis()},isLogin:function(){return this.userInfo&&this.userInfo.sid},gotoVhis:function(){var t=window.global.vhis,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}if(t+="&partnerId=PA001&productCode="+e,this.information&&this.information.idType&&this.information.idNo){var 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};t+="&data="+A(n)}this.$set(this,"outsideUrl","");var o=document.getElementById("myiframe");try{o.height=0,o.style.height="0px"}catch(r){}var s=this;setTimeout((function(){console.log("vhis:",t),s.outsideUrl=t}),100)}},watch:{"$route.query.p":function(){this.init()}},mounted:function(){this.init(),window.removeEventListener("message",(function(){})),window.addEventListener("message",(function(t){var e=t.data?t.data.height:null;if(e){var i=document.getElementById("myiframe");try{i.height=e,i.style.height=e+"px"}catch(n){}}}))},created:function(){}},y=v,b=(i("17fa"),i("623f")),w=Object(b["a"])(y,n,o,!1,null,"13aff1c1",null);e["default"]=w.exports},"6f62":function(t,e,i){},a164:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABWklEQVQ4jZ3TMUiUcRzG8c/7dhLeFtwRwlHDhYOI00EHoZgQUZtDQY4niHC4RENBEkriINnQkHu01pY2nVRLhBZB3apgwRVF0VJR5nDvxd/XV6EeeIf3z/N9/r8H/r/oy1hZSiXUcR4ncAibWMESmqE5TsF1vEUPriUBxzCJCM8xG3K5AL6OGobwKhX8AQ0s4kEyZS2c4BymMJKCy+gP/jdwGoPJVH8DFnA1MYS6jPnU2VdM4Ca6Ywwkne/Zqyj50mrgHc7EqOIZfmUYD9IqqjGKaP0jLGGKMT6j8B8BBXyKsYaK7K53cGOfgFNYj/FCu/9ohuksLmScV9CL5Rz+YBq38BQfA+Nj5FNwHncxh2+dd3Afy9rvvRSYm9oVOzqCh3iP2+zehToe4TVm0IfD6NLeiSt4gy1cxO90QKfKMI7jCb7jJ17iJC5hHD86UJSxzqGOJpe0sJ1l2AEH3EWOEBiFEQAAAABJRU5ErkJggg=="},a3a6:function(t,e,i){},c309:function(t,e,i){"use strict";var n=i("6f62"),o=i.n(n);o.a},ddb8:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAuUlEQVQokZWS0Q3CMAxEXyoWYAV3CRAfZRwYoQzQlgFaYBmQ+IAl4qxiftIqROEDS5Gs050vPhkzw6tuzIxfz6s6r7o3MyoNoQFeGkJHoTQEB4zAXUPYVsATuAFtLkrIR+Bci7xTy4tXNa/aFbB+/p4zs3TaBByAHljHfqhF2tl1ERRE5GSAqrRoUpYDiyCbPgDXUhCrErkWaSNGFFGLnAB+ppEkNaXpOa/aAI+Y89eCifsY3Xf8exofnNjWcJSbj90AAAAASUVORK5CYII="},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._s(t.tips.tit)+"\n "),n("span",{staticClass:"pointer btn",on:{click:t.gotoLoginPage}},[t._v(t._s(t.$t("customService.unauth.login")))]),t._v(" \n "+t._s(t.tips.or)+"\n "),n("span",{staticClass:"pointer btn",on:{click:t.gotoRegisterPage}},[t._v(t._s(t.$t("customService.unauth.register")))]),t._v("\n "+t._s(t.tips.tail)+"\n ")]),"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._s(t.$t("customService.unauth.baseInfoTip"))+" \n "),n("span",{staticClass:"pointer btn",on:{click:t.gotoInformationPage}},[t._v(t._s(t.$t("customService.unauth.infoBtn")))]),t._v("\n  "+t._s(t.$t("customService.unauth.baseInfoTail"))+"\n ")])])]):t._e(),"suggest"!=t.model?n("div",{staticClass:"empty-line"}):t._e()]):t._e()},o=[],s=(i("5ab2"),i("6d57"),i("e10e"),i("cc57"),i("ac9f")),r=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(s["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(r["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,f=(i("c309"),i("623f")),l=Object(f["a"])(h,n,o,!1,null,"48a574a6",null);e["a"]=l.exports}}]);
\ No newline at end of file
......@@ -79,5 +79,10 @@ export default {
this.initData();
},
created() {
this.$root.eventBus.$on("langChange", () => {
try {
this.initData();
} catch (e) { }
});
}
}
......
......@@ -233,6 +233,12 @@ export default {
},
created() {
this.$root.eventBus.$on("langChange", () => {
try {
this.refreshBanner();
} catch (e) { }
});
}
}
......
......@@ -26,9 +26,12 @@ export default {
mounted() {
this.initData();
},
created() {
created() {
this.$root.eventBus.$on("langChange", () => {
this.initData();
try {
this.initData();
} catch (e) {
}
});
}
}
......
......@@ -37,6 +37,7 @@ export default {
playerOptions: {},
bannerTipsVisible: false,
productList: [],
productShowMore: [],
// 全部的信息
sourceData: {},
bottomBtnType: "",
......@@ -173,21 +174,31 @@ export default {
// title: "無索償折扣"
// }];
let productList = this.i18n.vhisDetail.productList;
productList.forEach(element => {
element.showMore = false;
});
console.log("productList:", productList);
if (this.productList && this.productList.length > 0) {
for (let index = 0; index < productList.length; index++) {
if (this.productList.length > index) {
productList[index].showMore = this.productList[index].showMore;
} else {
productList[index].showMore = false;
}
}
} else {
productList.forEach(element => {
element.showMore = false;
});
}
// console.log("productList:", productList);
this.productList = productList;
},
onShowMoreHandler(idx) {
console.log("idx:", idx);
// console.log("idx:", idx);
let productList = this.productList;
let curProduct = productList[idx];
if (curProduct) {
curProduct.showMore = !curProduct.showMore;
}
this.productList = productList;
console.log("this.productList:", this.productList);
// console.log("this.productList:", this.productList);
},
initData() {
this.initProduct();
......@@ -233,7 +244,7 @@ export default {
try {
this.sourceData = JSON.parse(d);
this.initData();
} catch (e) {}
} catch (e) { }
}
}
},
......@@ -252,6 +263,11 @@ export default {
this.sourceData = res;
}
this.initData();
})
});
this.$root.eventBus.$on("langChange", () => {
try {
this.initData();
} catch (e) { }
});
}
}
......