8ff75b2a by joe

1

1 parent c5b8773e
Showing 75 changed files with 2 additions and 2 deletions
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-402b94dd"],{2150:function(t,e,i){"use strict";var n=i("d457"),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("efce"),i("4634"),i("ed8b"),i("97a3")),r=i("591a"),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(i,!0).forEach((function(e){Object(s["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):g(i).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var A="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA1SNj4qiOEmvTkZfp+Gt0UOLTCdxuEqRE+k0fROhgZdN2GmtDg6jcZV/CXKdwQGGdwOYdxEngRQb2K/SXd5Rnu4MkuAoHopDNrBRVqoJNQi6VOv6fvAEzeYivtS9aMM7IvdZuN1QlASCz2vxfUKJ3BaijMQqQE9m0pVm+0BDEfwIDAQAB",d=new l.a;function m(t){var e=JSON.stringify(t),i=d.encrypt(e);return i}d.setPublicKey(A);var v={data:function(){return{key:"value",outsideUrl:"",information:{}}},components:{Auth:h["a"]},computed:p({},Object(r["c"])({userInfo:function(t){return t.userInfo}})),methods:{init:function(){var t=this;this.isLogin()?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="https://icpois-stg1.pingan.com/vhis/insurIndex",e=this.$i18n.locale;switch(e){case"zh":t+="?language=zh-cn";break;case"en":t+="?language=en";break;default:t+="?language=zh-hk";break}if(t+="&partnerId=PA001&productCode=VHIS001",this.information&&this.information.idType&&this.information.idNo){var i={name:this.information.fullName,gender:this.information.sex,birthday:this.information.birthDate,certiType:this.information.policyIdType,certiNo:this.information.idNo};t+="&data="+m(i)}this.outsideUrl=t}},watch:{},mounted:function(){this.init()},created:function(){}},b=v,w=(i("2150"),i("6691")),O=Object(w["a"])(b,n,o,!1,null,"d2d2f2fa",null);e["default"]=O.exports},5557: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("5557"),o=i.n(n);o.a},d457:function(t,e,i){},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("efce"),i("4634"),i("ed8b"),i("7cfd"),i("97a3")),r=i("591a");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(i,!0).forEach((function(e){Object(s["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(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("6691")),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-402b94dd"],{2150:function(t,i,e){"use strict";var n=e("d457"),o=e.n(n);o.a},"287a":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"content"},[e("auth",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],on:{onLogout:t.userLogout}}),t.outsideUrl?e("iframe",{attrs:{id:"myiframe",width:"100%",height:"100%",scrolling:"yes",frameborder:"0",src:t.outsideUrl}}):t._e()],1)},o=[],s=(e("efce"),e("4634"),e("ed8b"),e("97a3")),r=e("591a"),a=e("4ec3"),c=e.n(a),u=e("ed0b"),h=e("f72f"),f=e("509f"),l=e.n(f);function g(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?g(e,!0).forEach((function(i){Object(s["a"])(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):g(e).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}var A="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA1SNj4qiOEmvTkZfp+Gt0UOLTCdxuEqRE+k0fROhgZdN2GmtDg6jcZV/CXKdwQGGdwOYdxEngRQb2K/SXd5Rnu4MkuAoHopDNrBRVqoJNQi6VOv6fvAEzeYivtS9aMM7IvdZuN1QlASCz2vxfUKJ3BaijMQqQE9m0pVm+0BDEfwIDAQAB",d=new l.a;function m(t){var i=JSON.stringify(t),e=d.encrypt(i);return e}d.setPublicKey(A);var v={data:function(){return{key:"value",outsideUrl:"",information:{}}},components:{Auth:h["a"]},computed:p({},Object(r["c"])({userInfo:function(t){return t.userInfo}})),methods:{init:function(){var t=this;this.isLogin()?Object(u["c"])({url:c.a.profile,sid:!0}).then((function(i){i&&(t.information=i,t.gotoVhis())})):this.gotoVhis()},userLogout:function(){this.gotoVhis()},isLogin:function(){return this.userInfo&&this.userInfo.sid},gotoVhis:function(){var t="https://icpois-stg1.pingan.com/vhis/insurIndex",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=VHIS001",this.information&&this.information.idType&&this.information.idNo){var e={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="+m(e)}this.outsideUrl=t}},watch:{},mounted:function(){this.init()},created:function(){}},b=v,w=(e("2150"),e("6691")),y=Object(w["a"])(b,n,o,!1,null,"d2d2f2fa",null);i["default"]=y.exports},5557:function(t,i,e){},a164:function(t,i){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,i,e){"use strict";var n=e("5557"),o=e.n(n);o.a},d457:function(t,i,e){},ddb8:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAuUlEQVQokZWS0Q3CMAxEXyoWYAV3CRAfZRwYoQzQlgFaYBmQ+IAl4qxiftIqROEDS5Gs050vPhkzw6tuzIxfz6s6r7o3MyoNoQFeGkJHoTQEB4zAXUPYVsATuAFtLkrIR+Bci7xTy4tXNa/aFbB+/p4zs3TaBByAHljHfqhF2tl1ERRE5GSAqrRoUpYDiyCbPgDXUhCrErkWaSNGFFGLnAB+ppEkNaXpOa/aAI+Y89eCifsY3Xf8exofnNjWcJSbj90AAAAASUVORK5CYII="},f72f:function(t,i,e){"use strict";var n=function(){var t=this,i=t.$createElement,n=t._self._c||i;return t.showPanel?n("div",[t.showUnAuth?n("div",[n("div",{staticClass:"alert"},[n("img",{staticClass:"icon",attrs:{src:e("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:e("ddb8"),alt:""},on:{click:function(i){t.showSuggest=!1}}}):t._e()])]):t._e(),t.showProfileInfo?n("div",[n("div",{staticClass:"alert"},[n("img",{staticClass:"icon",attrs:{src:e("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=(e("efce"),e("4634"),e("ed8b"),e("7cfd"),e("97a3")),r=e("591a");function a(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function c(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?a(e,!0).forEach((function(i){Object(s["a"])(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(e).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}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),i="suggest"==this.model&&this.showSuggest;return t||i}}),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,i="?";for(var e in this.$route.query)t+=i+e+"="+this.$route.query[e],i="&";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=(e("c309"),e("6691")),l=Object(f["a"])(h,n,o,!1,null,"48a574a6",null);i["a"]=l.exports}}]);
\ No newline at end of file
......@@ -71,7 +71,7 @@ export default {
name: this.information.fullName,
gender: this.information.sex,
birthday: this.information.birthDate,
certiType: this.information.policyIdType,
certiType: this.information.policyIdType ? this.information.policyIdType : this.information.idType,
certiNo: this.information.idNo
};
url += "&data=" + encryptContent(data);
......