chunk-b4f0cc80.2952d5db.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b4f0cc80"],{"014b":function(t,e,n){"use strict";var o=n("e53d"),r=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"),g=n("9003"),v=n("e4ae"),w=n("f772"),y=n("36c3"),O=n("1bc3"),j=n("aebd"),T=n("a159"),P=n("0395"),N=n("bf0b"),C=n("d9f6"),k=n("c3a1"),S=N.f,x=C.f,_=P.f,E=o.Symbol,H=o.JSON,$=H&&H.stringify,I="prototype",F=h("_hidden"),D=h("toPrimitive"),J={}.propertyIsEnumerable,z=f("symbol-registry"),A=f("symbols"),M=f("op-symbols"),q=Object[I],B="function"==typeof E,K=o.QObject,U=!K||!K[I]||!K[I].findChild,V=a&&u(function(){return 7!=T(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a})?function(t,e,n){var o=S(q,e);o&&delete q[e],x(t,e,n),o&&t!==q&&x(q,e,o)}:x,W=function(t){var e=A[t]=T(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),v(t),e=O(e,!0),v(n),r(A,e)?(n.enumerable?(r(t,F)&&t[F][e]&&(t[F][e]=!1),n=T(n,{enumerable:j(0,!1)})):(r(t,F)||x(t,F,j(1,{})),t[F][e]=!0),V(t,e,n)):x(t,e,n)},Z=function(t,e){v(t);var n,o=m(e=y(e)),r=0,a=o.length;while(a>r)Y(t,n=o[r++],e[n]);return t},G=function(t,e){return void 0===e?T(t):Z(T(t),e)},Q=function(t){var e=J.call(this,t=O(t,!0));return!(this===q&&r(A,t)&&!r(M,t))&&(!(e||!r(this,t)||!r(A,t)||r(this,F)&&this[F][t])||e)},L=function(t,e){if(t=y(t),e=O(e,!0),t!==q||!r(A,e)||r(M,e)){var n=S(t,e);return!n||!r(A,e)||r(t,F)&&t[F][e]||(n.enumerable=!0),n}},X=function(t){var e,n=_(y(t)),o=[],a=0;while(n.length>a)r(A,e=n[a++])||e==F||e==c||o.push(e);return o},tt=function(t){var e,n=t===q,o=_(n?M:y(t)),a=[],i=0;while(o.length>i)!r(A,e=o[i++])||n&&!r(q,e)||a.push(A[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),r(this,F)&&r(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}),N.f=L,C.f=Y,n("6abf").f=P.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 ot=k(h.store),rt=0;ot.length>rt;)b(ot[rt++]);i(i.S+i.F*!B,"Symbol",{for:function(t){return r(z,t+="")?z[t]:z[t]=E(t)},keyFor:function(t){if(!R(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[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,o=[t],r=1;while(arguments.length>r)o.push(arguments[r++]);if(n=e=o[1],(w(e)||void 0!==t)&&!R(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!R(e))return e}),o[1]=e,$.apply(H,o)}}),E[I][D]||n("35e8")(E[I],D,E[I].valueOf),d(E,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},"0395":function(t,e,n){var o=n("36c3"),r=n("6abf").f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(e){return i.slice()}};t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?s(t):r(o(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 g}),n.d(e,"l",function(){return v}),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 o=n("8982"),r="/industryParkApi",a="/wx/user",i="/wx/frameUser";function s(t){return Object(o["a"])({url:r+a+"/login_by_app_main",method:"post",data:t})}function c(t){return Object(o["a"])({url:r+a+"/editMyInformation",method:"post",data:t})}function u(t){return Object(o["a"])({url:r+a+"/changePassword",method:"post",data:t})}function f(t){return Object(o["a"])({url:r+i+"/getById",method:"post",data:t})}function d(t){return Object(o["a"])({url:r+a+"/getById",method:"post",data:t})}function l(t){return Object(o["a"])({url:r+a+"/wechatUnBind",method:"post",data:t})}function h(t){return Object(o["a"])({url:r+a+"/unbound",method:"post",data:t})}function p(t){return Object(o["a"])({url:r+a+"/unbound2",method:"post",data:t})}function b(t){return Object(o["a"])({url:r+a+"/wechatBind",method:"post",data:t})}function m(t){return Object(o["a"])({url:r+a+"/binding",method:"post",data:t})}function g(t){return Object(o["a"])({url:r+i+"/editPassword",method:"post",data:t})}function v(t){return Object(o["a"])({url:r+a+"/send",method:"post",data:t})}function w(t){return Object(o["a"])({url:r+a+"/register_by_account",method:"post",data:t})}function y(t){return Object(o["a"])({url:r+a+"/checkAccount",method:"post",data:t})}function O(t){return Object(o["a"])({url:r+a+"/userInfo/"+t,method:"post"})}function j(t){return Object(o["a"])({url:r+a+"/bizInfo/"+t,method:"post"})}},"268f":function(t,e,n){t.exports=n("fde4")},"47ee":function(t,e,n){var o=n("c3a1"),r=n("9aa9"),a=n("355d");t.exports=function(t){var e=o(t),n=r.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 o=n("e53d"),r=n("584a"),a=n("b8e3"),i=n("ccb9"),s=n("d9f6").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=a?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},"6abf":function(t,e,n){var o=n("e6f3"),r=n("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},"6daa":function(t,e,n){},8982:function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return p});var o=n("795b"),r=n.n(o),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 r.a(function(e,o){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),o(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),o(n.errmsg);break}e(n)}else console.log(t),o(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(l["Toast"])(e),o(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 r.a(function(n,o){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),o(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),o(e.errmsg);break}n(e)}else console.log(t),o(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(l["Toast"])(e),o(e,n)})})}},a4ff:function(t,e,n){"use strict";n.r(e);var o=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)},function(e){return t.checkPhone()}]}})]),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",staticStyle:{color:"#9a9a9a"}},[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("提交")])])])])},r=[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{isShow:!1,phoneNo:"",userName:"",password:"",checkPassword:"",phoneCode:"",code:"",type:"",voCode:"发送验证码",totalTime:60,isPhone:!0,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"}),{checkPhone:function(){var t=this;11===this.phoneNo.length&&Object(i["d"])({account:this.phoneNo}).then(function(e){0===e.errno&&e.data?t.isPhone=!1:(Object(c["Toast"])("该账号不存在,请先注册"),t.isPhone=!0)})},getPhoneCode:function(){var t=this;if(""===this.phoneNo)return Object(c["Toast"])("请填写手机号码"),!1;var e=/1[3,4,5,7,8][0-9]{9}$/;return!1===e.test(this.phoneNo)?(Object(c["Toast"])("请填写正确手机号码"),!1):this.isPhone?(Object(c["Toast"])("该账号不存在,请先注册"),!1):(this.isShow=!0,void 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(this.isPhone)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(),window.history.back()):n.$router.push({path:"/home"})):Object(c["Toast"])(t.errmsg)})}})},f=u,d=(n("ed97"),n("2877")),l=Object(d["a"])(f,o,r,!1,null,"36a1d9d8",null);e["default"]=l.exports},bf0b:function(t,e,n){var o=n("355d"),r=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 r(!o.f.call(t,e),t[e])}},bf90:function(t,e,n){var o=n("36c3"),r=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",function(){return function(t,e){return r(o(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 o=n("268f"),r=n.n(o),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]:{},o=c()(n);"function"===typeof i.a&&(o=o.concat(i()(n).filter(function(t){return r()(n,t).enumerable}))),o.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 o=n("62a0")("meta"),r=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,o,{value:{i:"O"+ ++s,w:{}}})},d=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,o)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[o].i},l=function(t,e){if(!a(t,o)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[o].w},h=function(t){return u&&p.NEED&&c(t)&&!a(t,o)&&f(t),t},p=t.exports={KEY:o,NEED:!1,fastKey:d,getWeak:l,onFreeze:h}},ed33:function(t,e,n){n("014b"),t.exports=n("584a").Object.getOwnPropertySymbols},ed97:function(t,e,n){"use strict";var o=n("6daa"),r=n.n(o);r.a},fde4:function(t,e,n){n("bf90");var o=n("584a").Object;t.exports=function(t,e){return o.getOwnPropertyDescriptor(t,e)}}}]);