(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b4166b8"],{"0441":function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"third-party-header"},[s("div",{staticClass:"company-logo"},[s("img",{staticClass:"logo",attrs:{src:e.companyLogoBlueSrc}})])]),s("div",{staticClass:"register"},[e.checkClientIdFlag?s("div",{staticClass:"content"},[s("div",{directives:[{name:"show",rawName:"v-show",value:!e.existFlage,expression:"!existFlage"}],staticClass:"box"},[s("div",{staticClass:"form-wrap fl"},[s("a-form-model",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[s("a-form-model-item",{attrs:{"wrapper-col":{span:18,offset:6}}},[s("h3",{staticClass:"login-title"},[e._v("账号密码登录")])]),s("a-form-model-item",{attrs:{label:"账号",prop:"elsAccount"}},[s("a-input",{attrs:{size:"large",autoFocus:"",placeholder:"请输入账号"},model:{value:e.form.elsAccount,callback:function(t){e.$set(e.form,"elsAccount",t)},expression:"form.elsAccount"}})],1),s("a-form-model-item",{attrs:{size:"large",label:"子账号",prop:"subAccount"}},[s("a-input",{attrs:{size:"large",placeholder:"请输入子账号"},model:{value:e.form.subAccount,callback:function(t){e.$set(e.form,"subAccount",t)},expression:"form.subAccount"}})],1),s("a-form-model-item",{attrs:{label:"密码",prop:"password","has-feedback":""}},[s("a-input",{attrs:{size:"large",placeholder:"请输入密码",type:"password",autocomplete:"off"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1),s("a-form-model-item",{attrs:{"wrapper-col":{span:18,offset:6}}},[s("a-button",{attrs:{size:"large",type:"primary",block:"",shape:"round"},on:{click:e.onSubmit}},[e._v("\n                授权并登录\n              ")]),s("p",{staticClass:"forget-password-wrap"},[s("span",[e._v("忘记密码")])])],1)],1)],1),s("a-divider",{staticClass:"divider-wrap fl",attrs:{type:"vertical",dashed:!0}}),s("div",{staticClass:"extra fl"},[s("p",{staticClass:"qqt-login qqt-login-title"},[e._v("欢迎您使用探路者登录")]),s("a-divider",{attrs:{dashed:!0}}),e._m(0),s("a-divider",{attrs:{dashed:!0}}),s("p",{staticClass:"qqt-login"},[s("a-checkbox",{attrs:{"default-checked":"",disabled:""}}),s("span",{staticClass:"agree-tip"},[e._v("获得您的昵称、头像、性别")])],1),s("p",{staticClass:"qqt-login"},[e._v("授权后表明你已同意\n            "),s("a",{staticClass:"link",attrs:{href:"javascript: void(0)"},on:{click:function(t){e.visible=!0}}},[e._v("探路者登录服务协议")])])],1),s("div",{staticClass:"clear-both"})],1),s("div",{directives:[{name:"show",rawName:"v-show",value:e.existFlage,expression:"existFlage"}],staticClass:"text-center"},[s("img",{attrs:{src:"https://gw.alipayobjects.com/zos/rmsportal/KpnpchXsobRgLElEozzI.svg",alt:""}}),s("span",{staticClass:"client-id-wrap"},[e._v("~~噢噢~~Client Id 不存在")])])]):e._e(),s("field-select-modal",{ref:"fieldSelectModal"}),s("a-modal",{attrs:{title:"服务协议",width:800,footer:!1},on:{ok:function(t){e.visible=!1}},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[s("div",{staticStyle:{whiteSpace:"pre-wrap",lineHeight:"1.4"}},[e._v(" "+e._s(e.word)+" ")])])],1)])},i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("p",{staticClass:"qqt-login"},[s("a",{staticClass:"link",attrs:{href:"javascript: void(0)"}},[e._v("探路者")]),s("span",{staticClass:"agree-tip"},[e._v("将获得以下权限")])])}],r=s("0fea"),l=s("b45d"),o=s("f69f"),c={components:{fieldSelectModal:l["default"]},data:function(){return{companyLogoBlueSrc:o["a"],word:o["d"],visible:!1,labelCol:{span:6},wrapperCol:{span:18},form:{elsAccount:"",subAccount:"",password:""},rules:{elsAccount:[{required:!0,message:"请输入账号",trigger:"blur"}],subAccount:[{required:!0,message:"请输入子账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},responseType:"",clientId:"",redirectUri:"",checkClientIdFlag:!1,existFlage:!1}},mounted:function(){var e=this.$route.query;this.responseType=e.response_type,this.clientId=e.client_id,this.redirectUri=e.redirect_uri,this.checkClientId()},methods:{checkClientId:function(){var e=this,t="/oauth2/chekClient",s={clientId:this.clientId};Object(r["c"])(t,s).then((function(t){e.checkClientIdFlag=!0,t&&(t.success&&"false"===t.message?e.existFlage=!0:e.existFlage=!1)}))},onSubmit:function(){var e=this,t=this;this.$refs.form.validate((function(s){if(s){var a="/oauth2/oauthLogin",i=Object.assign({},e.form);i.client_id=t.clientId,i.responseType=t.responseType,i.redirectUri=decodeURIComponent(t.redirectUri),Object(r["c"])(a,i).then((function(e){e&&(e.success?(t.$info({title:"授权",content:"授权成功，感谢支持"}),window.open(e.message,"_self")):t.$message.error(e.message))}))}}))}}},n=c,d=(s("97f9"),s("0b56")),p=Object(d["a"])(n,a,i,!1,null,"02148b5a",null);t["default"]=p.exports},"97f9":function(e,t,s){"use strict";s("fd7f")},fd7f:function(e,t,s){}}]);