(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f84f7542"],{"46af":function(e,t,r){},"4f49":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"d",(function(){return s})),r.d(t,"b",(function(){return c})),r.d(t,"c",(function(){return o})),r.d(t,"h",(function(){return u})),r.d(t,"f",(function(){return i})),r.d(t,"g",(function(){return d})),r.d(t,"e",(function(){return f}));var n=r("fde9");function a(e){return Object(n["a"])({url:"api-yonghu/user/certification/bankcard/list",method:"get",params:e})}function s(e){return Object(n["a"])({url:"api-yonghu/user/certification/bankcard/unbind",method:"post",data:JSON.stringify(e)})}function c(e){return Object(n["a"])({url:"api-yonghu/user/wallet/has-pwd",method:"get",params:e})}function o(e){return Object(n["a"])({url:"api-yonghu/user/wallet/pwd-set",method:"post",data:JSON.stringify(e)})}function u(e){return Object(n["a"])({url:"api-yonghu/user/wallet/pwd-verify",method:"get",params:e})}function i(e){return Object(n["a"])({url:"api-yonghu/user/wallet/pwd-update",method:"post",data:JSON.stringify(e)})}function d(e){return Object(n["a"])({url:"api-yonghu/user/wallet/forget-pwd/certification-verify",method:"get",params:e})}function f(e){return Object(n["a"])({url:"api-yonghu/user/wallet/forget-pwd/update",method:"post",data:JSON.stringify(e)})}},"745b":function(e,t,r){e.exports=r.p+"img/loading.6447480d.gif"},7512:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"memberLoading"},[n("img",{staticClass:"loading",attrs:{src:r("745b")}})])}],s=(r("a481"),r("c0d6"),r("5f87")),c=r("76a0"),o=r("9567"),u=r("aadd"),i=r("4f49"),d={name:"memberLoading",data:function(){return{memberAgent:0,userId:0,userInfo:{isHetong4:0,countryCode:"",userType:"",flagToken:"",accessMode:"",flagSource:""}}},created:function(){Object(s["b"])()},mounted:function(){Object(u["a"])("memberAgent")&&(this.memberAgent=Object(u["a"])("memberAgent")),Object(u["a"])("userId")&&(this.userId=Object(u["a"])("userId"),this.$store.commit("setUser",{userId:this.userId})),Object(u["a"])("accessToken")&&(this.flagToken=Object(u["a"])("accessToken"),this.$store.commit("GETFLAGTOKEN",this.flagToken)),Object(u["a"])("clientId")?this.$store.commit("GETCLIENTID",Object(u["a"])("clientId")):this.$store.commit("GETCLIENTID",20004),Object(u["a"])("accessMode")&&(this.accessMode=Object(u["a"])("accessMode"),this.$store.commit("setAccessMode",this.accessMode)),Object(u["a"])("source")&&(this.flagSource=Object(u["a"])("source"),this.$store.commit("setflagSource",this.flagSource)),1==this.memberAgent?"vlook"==this.accessMode?this.$router.replace("/member"):"flag"==this.accessMode&&("account"==this.flagSource?this.$router.replace("user/account"):"bankCard"==this.flagSource?this.$router.replace("user/account/bankCard"):"password"==this.flagSource&&this.getUserPwd()):this.getUserInfo()},methods:{getUserInfo:function(){var e=this,t={userId:this.userId};c["Indicator"].open(),Object(o["a"])(t).then((function(t){if(console.log(t),c["Indicator"].close(),t.resp_code)return Object(c["Toast"])(t.resp_msg);var r=t.datas;e.userInfo=r,1==r.isHetong4?e.$router.replace("/member/agreement/success"):e.$router.replace("/member/agreement")})).catch((function(e){return c["Indicator"].close(),Object(c["Toast"])(e.resp_msg)}))},getFddHetong:function(){var e={userId:this.userId,userType:this.userInfo.userType,subjectType:2,source:"app",hetongType:"flag"};c["Indicator"].open(),Object(o["c"])(e).then((function(e){if(console.log(e),c["Indicator"].close(),e.resp_code)return Object(c["Toast"])(e.resp_msg);window.location.href=e.datas.url})).catch((function(e){return c["Indicator"].close(),Object(c["Toast"])(e.resp_msg)}))},getUserPwd:function(){var e=this;c["Indicator"].open({text:"加载中...",spinnerType:"fading-circle"}),Object(i["b"])({}).then((function(t){if(c["Indicator"].close(),console.log(t),0!=t.code)return Object(c["Toast"])({message:t.msg,duration:4e3,className:"toastFail"});null!=t.data&&(e.hasPassword=t.data.hasPassword),t.data.hasPassword?e.$router.replace("setting/password/editor"):e.$router.replace("setting/password")})).catch((function(e){return c["Indicator"].close(),Object(c["Toast"])({message:e.msg,duration:4e3,className:"toastFail"})}))}}},f=d,l=(r("bec3"),r("2877")),g=Object(l["a"])(f,n,a,!1,null,null,null);t["default"]=g.exports},9567:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return s})),r.d(t,"b",(function(){return c})),r.d(t,"d",(function(){return o}));var n=r("40ec");function a(e){return Object(n["a"])({url:"api-agent/agent/flag/detail",method:"get",params:e})}function s(e){return Object(n["a"])({url:"api-agent/fdd/make/sign/url",method:"get",params:e})}function c(e){return Object(n["a"])({url:"query/agent/agreement/tp/"+e,method:"get"})}function o(e){return Object(n["a"])({url:"api-agent/agent/hetong/save",method:"post",data:JSON.stringify(e)})}},bec3:function(e,t,r){"use strict";var n=r("46af"),a=r.n(n);a.a}}]);