chunk-21f8a3dc.1ea029f2.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21f8a3dc"],{"014b":function(t,e,n){"use strict";var r=n("e53d"),o=n("07e3"),a=n("8e60"),i=n("63b6"),s=n("9138"),c=n("ebfd").KEY,u=n("294c"),f=n("dbdb"),d=n("45f2"),l=n("62a0"),h=n("5168"),p=n("ccb9"),b=n("6718"),m=n("47ee"),v=n("9003"),g=n("e4ae"),w=n("f772"),y=n("36c3"),O=n("1bc3"),j=n("aebd"),k=n("a159"),C=n("0395"),T=n("bf0b"),N=n("d9f6"),P=n("c3a1"),x=T.f,S=N.f,_=C.f,E=r.Symbol,H=r.JSON,$=H&&H.stringify,I="prototype",F=h("_hidden"),D=h("toPrimitive"),A={}.propertyIsEnumerable,J=f("symbol-registry"),z=f("symbols"),M=f("op-symbols"),q=Object[I],B="function"==typeof E,K=r.QObject,U=!K||!K[I]||!K[I].findChild,V=a&&u(function(){return 7!=k(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=x(q,e);r&&delete q[e],S(t,e,n),r&&t!==q&&S(q,e,r)}:S,W=function(t){var e=z[t]=k(E[I]);return e._k=t,e},R=B&&"symbol"==typeof E.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof E},Y=function(t,e,n){return t===q&&Y(M,e,n),g(t),e=O(e,!0),g(n),o(z,e)?(n.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),n=k(n,{enumerable:j(0,!1)})):(o(t,F)||S(t,F,j(1,{})),t[F][e]=!0),V(t,e,n)):S(t,e,n)},Z=function(t,e){g(t);var n,r=m(e=y(e)),o=0,a=r.length;while(a>o)Y(t,n=r[o++],e[n]);return t},G=function(t,e){return void 0===e?k(t):Z(k(t),e)},Q=function(t){var e=A.call(this,t=O(t,!0));return!(this===q&&o(z,t)&&!o(M,t))&&(!(e||!o(this,t)||!o(z,t)||o(this,F)&&this[F][t])||e)},L=function(t,e){if(t=y(t),e=O(e,!0),t!==q||!o(z,e)||o(M,e)){var n=x(t,e);return!n||!o(z,e)||o(t,F)&&t[F][e]||(n.enumerable=!0),n}},X=function(t){var e,n=_(y(t)),r=[],a=0;while(n.length>a)o(z,e=n[a++])||e==F||e==c||r.push(e);return r},tt=function(t){var e,n=t===q,r=_(n?M:y(t)),a=[],i=0;while(r.length>i)!o(z,e=r[i++])||n&&!o(q,e)||a.push(z[e]);return a};B||(E=function(){if(this instanceof E)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(n){this===q&&e.call(M,n),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),V(this,t,j(1,n))};return a&&U&&V(q,t,{configurable:!0,set:e}),W(t)},s(E[I],"toString",function(){return this._k}),T.f=L,N.f=Y,n("6abf").f=C.f=X,n("355d").f=Q,n("9aa9").f=tt,a&&!n("b8e3")&&s(q,"propertyIsEnumerable",Q,!0),p.f=function(t){return W(h(t))}),i(i.G+i.W+i.F*!B,{Symbol:E});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var rt=P(h.store),ot=0;rt.length>ot;)b(rt[ot++]);i(i.S+i.F*!B,"Symbol",{for:function(t){return o(J,t+="")?J[t]:J[t]=E(t)},keyFor:function(t){if(!R(t))throw TypeError(t+" is not a symbol!");for(var e in J)if(J[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),i(i.S+i.F*!B,"Object",{create:G,defineProperty:Y,defineProperties:Z,getOwnPropertyDescriptor:L,getOwnPropertyNames:X,getOwnPropertySymbols:tt}),H&&i(i.S+i.F*(!B||u(function(){var t=E();return"[null]"!=$([t])||"{}"!=$({a:t})||"{}"!=$(Object(t))})),"JSON",{stringify:function(t){var e,n,r=[t],o=1;while(arguments.length>o)r.push(arguments[o++]);if(n=e=r[1],(w(e)||void 0!==t)&&!R(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!R(e))return e}),r[1]=e,$.apply(H,r)}}),E[I][D]||n("35e8")(E[I],D,E[I].valueOf),d(E,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},"0395":function(t,e,n){var r=n("36c3"),o=n("6abf").f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(e){return i.slice()}};t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?s(t):o(r(t))}},"24ec":function(t,e,n){"use strict";n.d(e,"i",function(){return s}),n.d(e,"e",function(){return c}),n.d(e,"c",function(){return u}),n.d(e,"j",function(){return f}),n.d(e,"g",function(){return d}),n.d(e,"p",function(){return l}),n.d(e,"m",function(){return h}),n.d(e,"n",function(){return p}),n.d(e,"o",function(){return b}),n.d(e,"a",function(){return m}),n.d(e,"f",function(){return v}),n.d(e,"l",function(){return g}),n.d(e,"k",function(){return w}),n.d(e,"d",function(){return y}),n.d(e,"h",function(){return O}),n.d(e,"b",function(){return j});var r=n("8982"),o="/industryParkApi",a="/wx/user",i="/wx/frameUser";function s(t){return Object(r["a"])({url:o+a+"/login_by_app_main",method:"post",data:t})}function c(t){return Object(r["a"])({url:o+a+"/editMyInformation",method:"post",data:t})}function u(t){return Object(r["a"])({url:o+a+"/changePassword",method:"post",data:t})}function f(t){return Object(r["a"])({url:o+i+"/getById",method:"post",data:t})}function d(t){return Object(r["a"])({url:o+a+"/getById",method:"post",data:t})}function l(t){return Object(r["a"])({url:o+a+"/wechatUnBind",method:"post",data:t})}function h(t){return Object(r["a"])({url:o+a+"/unbound",method:"post",data:t})}function p(t){return Object(r["a"])({url:o+a+"/unbound2",method:"post",data:t})}function b(t){return Object(r["a"])({url:o+a+"/wechatBind",method:"post",data:t})}function m(t){return Object(r["a"])({url:o+a+"/binding",method:"post",data:t})}function v(t){return Object(r["a"])({url:o+i+"/editPassword",method:"post",data:t})}function g(t){return Object(r["a"])({url:o+a+"/send",method:"post",data:t})}function w(t){return Object(r["a"])({url:o+a+"/register_by_account",method:"post",data:t})}function y(t){return Object(r["a"])({url:o+a+"/checkAccount",method:"post",data:t})}function O(t){return Object(r["a"])({url:o+a+"/userInfo/"+t,method:"post"})}function j(t){return Object(r["a"])({url:o+a+"/bizInfo/"+t,method:"post"})}},"268f":function(t,e,n){t.exports=n("fde4")},"343e":function(t,e,n){"use strict";var r=n("9cd0"),o=n.n(r);o.a},"3ae4":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"login"},[n("div",{staticClass:"login-form"},[n("div",{staticClass:"title"},[t._v("注册账号")]),n("div",{staticClass:"form-input"},[t._m(0),n("input",{directives:[{name:"model",rawName:"v-model",value:t.phoneNo,expression:"phoneNo"}],attrs:{type:"text",placeholder:"请输入手机号",maxlength:"11",oninput:"value=value.replace(/[^\\d]/g,'')"},domProps:{value:t.phoneNo},on:{input:function(e){e.target.composing||(t.phoneNo=e.target.value)}}})]),n("div",{staticClass:"form-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.userName,expression:"userName"}],attrs:{type:"text",placeholder:"请输入姓名"},domProps:{value:t.userName},on:{input:function(e){e.target.composing||(t.userName=e.target.value)}}})]),n("div",{staticClass:"form-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",placeholder:"请设置 8-12位字母数字组合密码"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),n("div",{staticClass:"form-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.checkPassword,expression:"checkPassword"}],attrs:{type:"password",placeholder:"请再输入一次密码"},domProps:{value:t.checkPassword},on:{input:function(e){e.target.composing||(t.checkPassword=e.target.value)}}})]),n("div",{staticClass:"form-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.phoneCode,expression:"phoneCode"}],attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:t.phoneCode},on:{input:function(e){e.target.composing||(t.phoneCode=e.target.value)}}}),t.isShow?n("p",{staticClass:"right"},[t._v(t._s(t.voCode))]):n("p",{staticClass:"right",on:{click:t.getPhoneCode}},[t._v(t._s(t.voCode))])])]),n("div",{staticClass:"login-button"},[n("p",[n("button",{staticClass:"but-type1",attrs:{type:"info"},on:{click:t.register}},[t._v("提交")])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOriginHei,expression:"isOriginHei"}],staticClass:"foot-pact"},[n("div",{staticClass:"check"},[n("van-checkbox",{attrs:{"checked-color":"#2A3980"},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}})],1),n("div",{staticClass:"text1"},[t._v("已阅读并同意")]),n("div",{staticClass:"text2",on:{click:function(e){return t.$router.push("/term")}}},[t._v("《服务协议条款及隐私条款》")])])])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"left"},[n("span",[t._v(" +86 ")]),n("span",[n("i",{staticClass:"iconfont icon-close"})])])}],a=n("cebc"),i=n("24ec"),s=n("2f62"),c=n("3089"),u={data:function(){return{checked:!1,isShow:!1,phoneNo:"",userName:"",password:"",checkPassword:"",phoneCode:"",code:"",type:"",voCode:"发送验证码",totalTime:60,isOriginHei:!0,screenHeight:document.documentElement.clientHeight,originHeight:document.documentElement.clientHeight}},mounted:function(){var t=this;t.$route.query.type&&(t.type=t.$route.query.type),t.code=t.$route.query.code,console.log(t.code),window.onresize=function(){return function(){t.screenHeight=document.documentElement.clientHeight}()}},watch:{screenHeight:function(t){this.originHeight>t+100?this.isOriginHei=!1:this.isOriginHei=!0}},methods:Object(a["a"])({},Object(s["b"])({login:"user/login"}),{getPhoneCode:function(){var t=this;if(""===this.phoneNo)return Object(c["Toast"])("请填写手机号码"),!1;var e=/1[3,4,5,7,8][0-9]{9}$/;if(!1===e.test(this.phoneNo))return Object(c["Toast"])("请填写正确手机号码"),!1;this.isShow=!0,Object(i["l"])({phoneNo:this.phoneNo,type:this.type}).then(function(e){if(0===e.errno&&e.data)var n=window.setInterval(function(){t.totalTime--,t.voCode=t.totalTime+"s后重新发送",0===t.totalTime&&(window.clearInterval(n),t.voCode="重新发送验证码",t.totalTime=60,t.isShow=!1)},1e3);else Object(c["Toast"])(e.errmsg)})},register:function(){if(""===this.phoneNo)return Object(c["Toast"])("请填写手机号码"),!1;var t=/1[3,4,5,7,8][0-9]{9}$/;if(!1===t.test(this.phoneNo))return Object(c["Toast"])("请填写正确手机号码"),!1;if(!1===this.checked)return Object(c["Toast"])("请阅读并同意服务协议条款及隐私条款"),!1;if(""===this.password)return Object(c["Toast"])("请填写密码"),!1;var e=/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,12}$/;if(!1===e.test(this.password))return Object(c["Toast"])("请填写正确格式的密码"),!1;if(this.password!==this.checkPassword)return Object(c["Toast"])("确认密码与密码不一致"),!1;if(""===this.phoneCode)return Object(c["Toast"])("请输入验证码"),!1;var n=this;Object(i["k"])({phoneNo:this.phoneNo,trueName:this.userName,password:this.password,phoneVerificationCode:this.phoneCode,code:this.code,type:this.type}).then(function(t){0===t.errno&&t.data?("1"==n.type?Object(c["Toast"])("密码修改成功"):(Object(c["Toast"])("注册成功"),n.login(t.data)),window.history&&window.history.length>1?window.history.back():n.$router.push({path:"/home-app"})):Object(c["Toast"])(t.errmsg)})}})},f=u,d=(n("343e"),n("2877")),l=Object(d["a"])(f,r,o,!1,null,"e808d20c",null);e["default"]=l.exports},"47ee":function(t,e,n){var r=n("c3a1"),o=n("9aa9"),a=n("355d");t.exports=function(t){var e=r(t),n=o.f;if(n){var i,s=n(t),c=a.f,u=0;while(s.length>u)c.call(t,i=s[u++])&&e.push(i)}return e}},6718:function(t,e,n){var r=n("e53d"),o=n("584a"),a=n("b8e3"),i=n("ccb9"),s=n("d9f6").f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},"6abf":function(t,e,n){var r=n("e6f3"),o=n("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},8982:function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return p});var r=n("795b"),o=n.n(r),a=n("bc3a"),i=n.n(a),s=n("4328"),c=n.n(s),u=n("4360"),f=n("5cab"),d=n("a18c"),l=n("3089");function h(t,e){t.headers||(t.headers={}),t.headers&&f["a"].getToken()&&(t.headers["RC-Token"]=f["a"].getToken());var n={method:t.method,url:t.url,data:c.a.stringify(t.data)};return e&&(n.data=t.data),t.headers&&(n.headers=t.headers),new o.a(function(e,r){i()(n).then(function(t){if(t&&t.data&&200===t.status){var n=t.data;switch(n.errno){case 501:Object(l["Toast"])(n.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),r(n.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(l["Toast"])(n.errmsg),r(n.errmsg);break}e(n)}else console.log(t),r(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(l["Toast"])(e),r(e,n)})})}function p(t){t.headers||(t.headers={}),t.headers&&f["a"].getToken()&&(t.headers["RC-Token"]=f["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new o.a(function(n,r){i.a.defaults.withCredentials=!0,i()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(l["Toast"])(e.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),r(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(l["Toast"])(e.errmsg),r(e.errmsg);break}n(e)}else console.log(t),r(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(l["Toast"])(e),r(e,n)})})}},"9cd0":function(t,e,n){},bf0b:function(t,e,n){var r=n("355d"),o=n("aebd"),a=n("36c3"),i=n("1bc3"),s=n("07e3"),c=n("794b"),u=Object.getOwnPropertyDescriptor;e.f=n("8e60")?u:function(t,e){if(t=a(t),e=i(e,!0),c)try{return u(t,e)}catch(n){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},bf90:function(t,e,n){var r=n("36c3"),o=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},ccb9:function(t,e,n){e.f=n("5168")},cebc:function(t,e,n){"use strict";n.d(e,"a",function(){return f});var r=n("268f"),o=n.n(r),a=n("e265"),i=n.n(a),s=n("a4bb"),c=n.n(s),u=n("bd86");function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=c()(n);"function"===typeof i.a&&(r=r.concat(i()(n).filter(function(t){return o()(n,t).enumerable}))),r.forEach(function(e){Object(u["a"])(t,e,n[e])})}return t}},e265:function(t,e,n){t.exports=n("ed33")},ebfd:function(t,e,n){var r=n("62a0")("meta"),o=n("f772"),a=n("07e3"),i=n("d9f6").f,s=0,c=Object.isExtensible||function(){return!0},u=!n("294c")(function(){return c(Object.preventExtensions({}))}),f=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},d=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},l=function(t,e){if(!a(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return u&&p.NEED&&c(t)&&!a(t,r)&&f(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:d,getWeak:l,onFreeze:h}},ed33:function(t,e,n){n("014b"),t.exports=n("584a").Object.getOwnPropertySymbols},fde4:function(t,e,n){n("bf90");var r=n("584a").Object;t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}}}]);