22.0e776b7ae6c3e735ad78.js 17 KB

12
  1. webpackJsonp([22],{G4KD:function(e,t,n){"use strict";function o(e){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return e&&!0===e.constructor.prototype.isBigNumber||!1}function r(e){return e&&"object"===o(e)&&!0===Object.getPrototypeOf(e).isComplex||!1}function s(e){return e&&"object"===o(e)&&!0===Object.getPrototypeOf(e).isFraction||!1}function a(e){return e&&!0===e.constructor.prototype.isUnit||!1}Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=function(e){return"number"==typeof e},t.isBigNumber=i,t.isComplex=r,t.isFraction=s,t.isUnit=a,t.isString=function(e){return"string"==typeof e},t.isMatrix=u,t.isCollection=function(e){return Array.isArray(e)||u(e)},t.isDenseMatrix=function(e){return e&&e.isDenseMatrix&&!0===e.constructor.prototype.isMatrix||!1},t.isSparseMatrix=function(e){return e&&e.isSparseMatrix&&!0===e.constructor.prototype.isMatrix||!1},t.isRange=d,t.isIndex=l,t.isBoolean=function(e){return"boolean"==typeof e},t.isResultSet=p,t.isHelp=f,t.isFunction=function(e){return"function"==typeof e},t.isDate=function(e){return e instanceof Date},t.isRegExp=function(e){return e instanceof RegExp},t.isObject=function(e){return!(!e||"object"!==o(e)||e.constructor!==Object||r(e)||s(e))},t.isNull=function(e){return null===e},t.isUndefined=function(e){return void 0===e},t.isAccessorNode=function(e){return e&&!0===e.isAccessorNode&&!0===e.constructor.prototype.isNode||!1},t.isArrayNode=function(e){return e&&!0===e.isArrayNode&&!0===e.constructor.prototype.isNode||!1},t.isAssignmentNode=function(e){return e&&!0===e.isAssignmentNode&&!0===e.constructor.prototype.isNode||!1},t.isBlockNode=function(e){return e&&!0===e.isBlockNode&&!0===e.constructor.prototype.isNode||!1},t.isConditionalNode=function(e){return e&&!0===e.isConditionalNode&&!0===e.constructor.prototype.isNode||!1},t.isConstantNode=function(e){return e&&!0===e.isConstantNode&&!0===e.constructor.prototype.isNode||!1},t.isFunctionAssignmentNode=function(e){return e&&!0===e.isFunctionAssignmentNode&&!0===e.constructor.prototype.isNode||!1},t.isFunctionNode=function(e){return e&&!0===e.isFunctionNode&&!0===e.constructor.prototype.isNode||!1},t.isIndexNode=function(e){return e&&!0===e.isIndexNode&&!0===e.constructor.prototype.isNode||!1},t.isNode=m,t.isObjectNode=function(e){return e&&!0===e.isObjectNode&&!0===e.constructor.prototype.isNode||!1},t.isOperatorNode=function(e){return e&&!0===e.isOperatorNode&&!0===e.constructor.prototype.isNode||!1},t.isParenthesisNode=function(e){return e&&!0===e.isParenthesisNode&&!0===e.constructor.prototype.isNode||!1},t.isRangeNode=function(e){return e&&!0===e.isRangeNode&&!0===e.constructor.prototype.isNode||!1},t.isSymbolNode=function(e){return e&&!0===e.isSymbolNode&&!0===e.constructor.prototype.isNode||!1},t.isChain=h,t.typeOf=function(e){var t=o(e);if("object"===t)return null===e?"null":Array.isArray(e)?"Array":e instanceof Date?"Date":e instanceof RegExp?"RegExp":i(e)?"BigNumber":r(e)?"Complex":s(e)?"Fraction":u(e)?"Matrix":a(e)?"Unit":l(e)?"Index":d(e)?"Range":p(e)?"ResultSet":m(e)?e.type:h(e)?"Chain":f(e)?"Help":"Object";return"function"===t?"Function":t},t.isArray=void 0;var c=Array.isArray;function u(e){return e&&!0===e.constructor.prototype.isMatrix||!1}function d(e){return e&&!0===e.constructor.prototype.isRange||!1}function l(e){return e&&!0===e.constructor.prototype.isIndex||!1}function p(e){return e&&!0===e.constructor.prototype.isResultSet||!1}function f(e){return e&&!0===e.constructor.prototype.isHelp||!1}function m(e){return e&&!0===e.isNode&&!0===e.constructor.prototype.isNode||!1}function h(e){return e&&!0===e.constructor.prototype.isChain||!1}t.isArray=c},WDoz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAccessorNode",{enumerable:!0,get:function(){return o.isAccessorNode}}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return o.isArray}}),Object.defineProperty(t,"isArrayNode",{enumerable:!0,get:function(){return o.isArrayNode}}),Object.defineProperty(t,"isAssignmentNode",{enumerable:!0,get:function(){return o.isAssignmentNode}}),Object.defineProperty(t,"isBigNumber",{enumerable:!0,get:function(){return o.isBigNumber}}),Object.defineProperty(t,"isBlockNode",{enumerable:!0,get:function(){return o.isBlockNode}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return o.isBoolean}}),Object.defineProperty(t,"isChain",{enumerable:!0,get:function(){return o.isChain}}),Object.defineProperty(t,"isCollection",{enumerable:!0,get:function(){return o.isCollection}}),Object.defineProperty(t,"isComplex",{enumerable:!0,get:function(){return o.isComplex}}),Object.defineProperty(t,"isConditionalNode",{enumerable:!0,get:function(){return o.isConditionalNode}}),Object.defineProperty(t,"isConstantNode",{enumerable:!0,get:function(){return o.isConstantNode}}),Object.defineProperty(t,"isDate",{enumerable:!0,get:function(){return o.isDate}}),Object.defineProperty(t,"isDenseMatrix",{enumerable:!0,get:function(){return o.isDenseMatrix}}),Object.defineProperty(t,"isFraction",{enumerable:!0,get:function(){return o.isFraction}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return o.isFunction}}),Object.defineProperty(t,"isFunctionAssignmentNode",{enumerable:!0,get:function(){return o.isFunctionAssignmentNode}}),Object.defineProperty(t,"isFunctionNode",{enumerable:!0,get:function(){return o.isFunctionNode}}),Object.defineProperty(t,"isHelp",{enumerable:!0,get:function(){return o.isHelp}}),Object.defineProperty(t,"isIndex",{enumerable:!0,get:function(){return o.isIndex}}),Object.defineProperty(t,"isIndexNode",{enumerable:!0,get:function(){return o.isIndexNode}}),Object.defineProperty(t,"isMatrix",{enumerable:!0,get:function(){return o.isMatrix}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return o.isNode}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return o.isNull}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return o.isNumber}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return o.isString}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return o.isUndefined}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return o.isObject}}),Object.defineProperty(t,"isObjectNode",{enumerable:!0,get:function(){return o.isObjectNode}}),Object.defineProperty(t,"isOperatorNode",{enumerable:!0,get:function(){return o.isOperatorNode}}),Object.defineProperty(t,"isParenthesisNode",{enumerable:!0,get:function(){return o.isParenthesisNode}}),Object.defineProperty(t,"isRange",{enumerable:!0,get:function(){return o.isRange}}),Object.defineProperty(t,"isRangeNode",{enumerable:!0,get:function(){return o.isRangeNode}}),Object.defineProperty(t,"isRegExp",{enumerable:!0,get:function(){return o.isRegExp}}),Object.defineProperty(t,"isResultSet",{enumerable:!0,get:function(){return o.isResultSet}}),Object.defineProperty(t,"isSparseMatrix",{enumerable:!0,get:function(){return o.isSparseMatrix}}),Object.defineProperty(t,"isSymbolNode",{enumerable:!0,get:function(){return o.isSymbolNode}}),Object.defineProperty(t,"isUnit",{enumerable:!0,get:function(){return o.isUnit}});var o=n("G4KD")},Y9Q5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("fZjL"),i=n.n(o),r=n("TIfe"),s=(n("wQWh"),n("WDoz"),{name:"Register",data:function(){return{makeCodeUrl:"",makeCodeShow:!1,makeCode:"",bagUrl:n("hCCb"),choose:[],password:"",password1:"",code:"",phone:"",email:"",type:"2",countryCode:0,verification_code:"",showPopup:!1,codeList:[],countdown:this.$t("获取验证码"),countrySearch:"",commonData:{},canplay:!0,typeCode:"邮箱注册",showtype:!1}},mounted:function(){var e="en";-1!=navigator.language.toLowerCase().indexOf("zh")&&(e="zh");var t=window.global.baseUrl,n=t[i()(t)[0]];for(var o in t)o==e&&(n=t[o]);this.makeCodeUrl=n+"/api/v1/captcha/index",this.canplays();var s=this.$route.query.i;this.code=s||"",this.recordAccess(),this.handleCode(),this.commonData=Object(r.b)("commonData"),"1"==this.commonData.register_by_mobile?(this.choose=[{text:"手机",type:"1"},{text:"邮箱",type:"2"}],this.type=1,this.typeCode="手机号注册"):(this.type=2,this.typeCode="邮箱注册",this.choose=[{text:"邮箱",type:"2"}])},methods:{canplays:function(){this.canplay=!0},recordAccess:function(){if(this.code){var e={spread_code:this.code};this.$api.recruitment.recordAccess(e).then(function(e){})}},makeCodeShowPop:function(){var e=this.type,t=this.phone,n=this.email;if("1"==e){if(!/^[0-9]*$/.test(t))return this.$toast.fail(this.$t("请输入格式正确的手机号"))}else if("2"==e){if(!/\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/.test(n))return this.$toast.fail(this.$t("请输入格式正确的邮箱"))}this.makeCodeShow=!0,this.makeCodeClick()},makeCodeClick:function(){var e="en";-1!=navigator.language.toLowerCase().indexOf("zh")&&(e="zh");var t=window.global.baseUrl,n=t[i()(t)[0]];for(var o in t)o==e&&(n=t[o]);var r=n+"/api/v1/captcha/index",s=(new Date).getTime();this.makeCodeUrl=r+"?"+s},handleRegister:function(){var e=this,t=this.password1,n=this.password,o=this.code,i=this.type,r=this.phone,s=this.email,a=this.countryCode,c=this.verification_code,u="";if("1"==i&&r){if(!/^[0-9]*$/.test(r))return this.$toast.fail(this.$t("请输入格式正确的手机号"));u=r}else if("2"==i&&s){if(!/\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/.test(s))return this.$toast.fail(this.$t("请输入格式正确的邮箱"));u=s}if(n.length<8)return this.$toast.fail(this.$t("请输入大于8位数的密码"));if(n!==t)return this.$toast.fail(this.$t("两次密码不一致"));if(u&&n){var d={group:"h5",password:n,username:u,code:o,type:i,verification_code:c};"1"==this.type&&(d.country_code=a),this.$api.auth.register(d).then(function(t){e.$toast.loading(),e.$store.dispatch("login",t.data),setTimeout(function(){e.$toast.clear(),e.$router.push("/home")},1e3)})}else this.$toast("The mandatory field cannot be empty")},handleCode:function(){var e=this;this.$api.auth.countryCode().then(function(t){e.countryCode=t.data.list[0].code,e.codeList=t.data.list})},searchCode:function(){var e=this;this.$api.auth.countryCode().then(function(t){if(e.countrySearch)if(isNaN(e.countrySearch)){var n=[];t.data.list.map(function(t){-1!=t.country_name.indexOf(e.countrySearch)&&n.push(t)}),e.codeList=n}else{var o=[];t.data.list.map(function(t){-1!=t.code.indexOf(e.countrySearch)&&o.push(t)}),e.codeList=o}else e.codeList=t.data.list})},checkCode:function(e){this.countryCode=e.code,this.showPopup=!1},handleVerificationCode:function(){var e=this;if(e.countdown==e.$t("获取验证码")){var t=180;e.countdown=t+"s";var n=setInterval(function(){--t>0?e.countdown=t+"s":(t=180,e.countdown=e.$t("获取验证码"),clearInterval(n))},1e3),o=this.type,i=this.phone,r=this.email,s=this.countryCode;if("1"==o){if(""==e.phone)return this.$toast.fail(this.$t("请输入格式正确的手机号"));if(!/^[0-9]*$/.test(i))return this.$toast.fail(this.$t("请输入格式正确的手机号"))}else if("2"==o){if(""==e.email)return this.$toast.fail(this.$t("请输入格式正确的邮箱"));if(!/\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/.test(r))return this.$toast.fail(this.$t("请输入格式正确的邮箱"))}var a={group:"h5",type:parseInt(o),username:"1"==o?i:r,country_code:"1"==o?s:"",captcha:1234};this.$api.auth.verificationCode(a).then(function(e){})}},handleReset:function(){this.password="",this.code="",this.phone="",this.email="",this.verification_code="",this.username=""}}}),a={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"register"},[n("van-icon",{staticClass:"register_close",attrs:{color:"var(--textColor)",name:"arrow-left"},on:{click:function(t){e.$router.go(-1)}}}),e._v(" "),n("div",{staticClass:"bag"}),e._v(" "),n("div",{staticClass:"cont"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content_text"},[e._v(e._s(e.$t("注册账户")))]),e._v(" "),n("div",{staticClass:"content_enter"},[n("div",{staticClass:"input-item"},[n("p",[e._v(e._s(e.$t("账号")))]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],attrs:{type:"text",placeholder:e.$t("请输入邮箱")},domProps:{value:e.email},on:{input:function(t){t.target.composing||(e.email=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"input-item"},[n("p",[e._v(e._s(e.$t("密码")))]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{type:"password",placeholder:e.$t("输入账户密码")},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"input-tips"},[e._v("\n "+e._s(e.$t("请输入为8-20位,必须包含字母、数字和特殊字符"))+"\n ")]),e._v(" "),n("div",{staticClass:"input-item"},[n("p",[e._v(e._s(e.$t("确认密码")))]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.password1,expression:"password1"}],attrs:{type:"password",placeholder:e.$t("再次输入账户密码")},domProps:{value:e.password1},on:{input:function(t){t.target.composing||(e.password1=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"input-tips"},[e._v("\n "+e._s(e.$t("请输入为8-20位,必须包含字母、数字和特殊字符"))+"\n ")]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"1"==e.commonData.register_code,expression:"commonData.register_code == '1'"}],staticClass:"input-item space-between"},[n("div",{staticClass:"yzm"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.verification_code,expression:"verification_code"}],attrs:{type:"text",placeholder:e.$t("请输入验证码"),maxlength:"10"},domProps:{value:e.verification_code},on:{input:function(t){t.target.composing||(e.verification_code=t.target.value)}}}),e._v(" "),n("div",{staticClass:"code-btn radius-round",class:e.countdown!=e.$t("获取验证码")?"dis":"",on:{click:e.handleVerificationCode}},[e._v("\n "+e._s(e.countdown)+"\n ")])])]),e._v(" "),n("div",{staticClass:"input-item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],attrs:{type:"number",placeholder:e.$t("请输入邀请码(选填)")},domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"content_enter_btn",on:{click:e.handleRegister}},[e._v("\n "+e._s(e.$t("注册"))+"\n ")])]),e._v(" "),n("van-popup",{staticClass:"code-popup",attrs:{position:"bottom",round:""},model:{value:e.showPopup,callback:function(t){e.showPopup=t},expression:"showPopup"}},[n("van-cell",{staticClass:"input-search"},[n("template",{attrs:{slot:"title"},slot:"title"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.countrySearch,expression:"countrySearch"}],attrs:{type:"text",placeholder:e.$t("查询")},domProps:{value:e.countrySearch},on:{input:function(t){t.target.composing||(e.countrySearch=t.target.value)}}}),e._v(" "),n("i",{staticClass:"fa fa-search fa-lg",attrs:{"aria-hidden":"true"},on:{click:e.searchCode}})])],2),e._v(" "),n("div",{staticClass:"codeList"},e._l(e.codeList,function(t,o){return n("van-cell",{key:o,on:{click:function(n){e.checkCode(t)}}},[n("template",{attrs:{slot:"title"},slot:"title"},[n("div",{staticClass:"flex space-between",class:e.countryCode==t.code?"active":""},[n("span",[e._v(e._s(t.country_name))]),e._v(" "),n("span",[e._v(e._s(t.code))])])])],2)}))],1),e._v(" "),n("van-popup",{staticClass:"makeCode",attrs:{"close-on-click-overlay":!1},model:{value:e.makeCodeShow,callback:function(t){e.makeCodeShow=t},expression:"makeCodeShow"}},[n("p",{staticClass:"makeCode_title"},[e._v(e._s(e.$t("验证码")))]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.makeCode,expression:"makeCode"}],staticClass:"makeCode_in",attrs:{type:"text",maxlength:"8",placeholder:e.$t("请输入验证码")},domProps:{value:e.makeCode},on:{input:function(t){t.target.composing||(e.makeCode=t.target.value)}}}),e._v(" "),n("p",{staticClass:"makeCode_tips"},[e._v("\n "+e._s(e.$t("输入下方正确的图形验证后,获取邮箱验证码进行注册"))+"\n ")]),e._v(" "),n("div",{staticClass:"makeCode_code"},[n("img",{attrs:{src:e.makeCodeUrl,alt:""}}),e._v(" "),n("span",{on:{click:e.makeCodeClick}},[e._v(e._s(e.$t("换一张")))])]),e._v(" "),n("div",{staticClass:"makeCode_btn"},[n("span",{staticClass:"makeCode_btn_t",on:{click:e.handleVerificationCode}},[e._v(e._s(e.$t("提交")))])])]),e._v(" "),n("van-popup",{staticClass:"type-popup",attrs:{position:"bottom",round:""},model:{value:e.showtype,callback:function(t){e.showtype=t},expression:"showtype"}},[n("div",{staticClass:"email-r",on:{click:function(t){e.changeType("2")}}},[e._v("\n "+e._s(e.$t("邮箱注册"))+"\n ")]),e._v(" "),n("div",{staticClass:"email-l",on:{click:function(t){e.changeType("1")}}},[e._v("\n "+e._s(e.$t("手机号注册"))+"\n ")])])],1)])],1)},staticRenderFns:[]};var c=n("VU/8")(s,a,!1,function(e){n("iPyu")},"data-v-eb991a08",null);t.default=c.exports},hCCb:function(e,t,n){e.exports=n.p+"static/img/login_bag2.ebec7a0.png"},iPyu:function(e,t){}});
  2. //# sourceMappingURL=22.0e776b7ae6c3e735ad78.js.map