chunk-4a777bc2.095e43ab.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a777bc2"],{"014b":function(t,e,n){"use strict";var r=n("e53d"),o=n("07e3"),i=n("8e60"),a=n("63b6"),c=n("9138"),s=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"),y=n("f772"),w=n("36c3"),O=n("1bc3"),j=n("aebd"),T=n("a159"),k=n("0395"),S=n("bf0b"),x=n("d9f6"),P=n("c3a1"),_=S.f,E=x.f,C=k.f,H=r.Symbol,N=r.JSON,$=N&&N.stringify,F="prototype",I=h("_hidden"),M=h("toPrimitive"),R={}.propertyIsEnumerable,U=f("symbol-registry"),D=f("symbols"),J=f("op-symbols"),z=Object[F],B="function"==typeof H,A=r.QObject,K=!A||!A[F]||!A[F].findChild,Y=i&&u(function(){return 7!=T(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=_(z,e);r&&delete z[e],E(t,e,n),r&&t!==z&&E(z,e,r)}:E,W=function(t){var e=D[t]=T(H[F]);return e._k=t,e},q=B&&"symbol"==typeof H.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof H},L=function(t,e,n){return t===z&&L(J,e,n),v(t),e=O(e,!0),v(n),o(D,e)?(n.enumerable?(o(t,I)&&t[I][e]&&(t[I][e]=!1),n=T(n,{enumerable:j(0,!1)})):(o(t,I)||E(t,I,j(1,{})),t[I][e]=!0),Y(t,e,n)):E(t,e,n)},V=function(t,e){v(t);var n,r=m(e=w(e)),o=0,i=r.length;while(i>o)L(t,n=r[o++],e[n]);return t},G=function(t,e){return void 0===e?T(t):V(T(t),e)},Q=function(t){var e=R.call(this,t=O(t,!0));return!(this===z&&o(D,t)&&!o(J,t))&&(!(e||!o(this,t)||!o(D,t)||o(this,I)&&this[I][t])||e)},X=function(t,e){if(t=w(t),e=O(e,!0),t!==z||!o(D,e)||o(J,e)){var n=_(t,e);return!n||!o(D,e)||o(t,I)&&t[I][e]||(n.enumerable=!0),n}},Z=function(t){var e,n=C(w(t)),r=[],i=0;while(n.length>i)o(D,e=n[i++])||e==I||e==s||r.push(e);return r},tt=function(t){var e,n=t===z,r=C(n?J:w(t)),i=[],a=0;while(r.length>a)!o(D,e=r[a++])||n&&!o(z,e)||i.push(D[e]);return i};B||(H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(J,n),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),Y(this,t,j(1,n))};return i&&K&&Y(z,t,{configurable:!0,set:e}),W(t)},c(H[F],"toString",function(){return this._k}),S.f=X,x.f=L,n("6abf").f=k.f=Z,n("355d").f=Q,n("9aa9").f=tt,i&&!n("b8e3")&&c(z,"propertyIsEnumerable",Q,!0),p.f=function(t){return W(h(t))}),a(a.G+a.W+a.F*!B,{Symbol:H});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++]);a(a.S+a.F*!B,"Symbol",{for:function(t){return o(U,t+="")?U[t]:U[t]=H(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){K=!0},useSimple:function(){K=!1}}),a(a.S+a.F*!B,"Object",{create:G,defineProperty:L,defineProperties:V,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),N&&a(a.S+a.F*(!B||u(function(){var t=H();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],(y(e)||void 0!==t)&&!q(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,$.apply(N,r)}}),H[F][M]||n("35e8")(H[F],M,H[F].valueOf),d(H,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},"0395":function(t,e,n){var r=n("36c3"),o=n("6abf").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?c(t):o(r(t))}},"24ec":function(t,e,n){"use strict";n.d(e,"i",function(){return c}),n.d(e,"e",function(){return s}),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 y}),n.d(e,"d",function(){return w}),n.d(e,"h",function(){return O}),n.d(e,"b",function(){return j});var r=n("8982"),o="/industryParkApi",i="/wx/user",a="/wx/frameUser";function c(t){return Object(r["a"])({url:o+i+"/login_by_app_main",method:"post",data:t})}function s(t){return Object(r["a"])({url:o+i+"/editMyInformation",method:"post",data:t})}function u(t){return Object(r["a"])({url:o+i+"/changePassword",method:"post",data:t})}function f(t){return Object(r["a"])({url:o+a+"/getById",method:"post",data:t})}function d(t){return Object(r["a"])({url:o+i+"/getById",method:"post",data:t})}function l(t){return Object(r["a"])({url:o+i+"/wechatUnBind",method:"post",data:t})}function h(t){return Object(r["a"])({url:o+i+"/unbound",method:"post",data:t})}function p(t){return Object(r["a"])({url:o+i+"/unbound2",method:"post",data:t})}function b(t){return Object(r["a"])({url:o+i+"/wechatBind",method:"post",data:t})}function m(t){return Object(r["a"])({url:o+i+"/binding",method:"post",data:t})}function g(t){return Object(r["a"])({url:o+a+"/editPassword",method:"post",data:t})}function v(t){return Object(r["a"])({url:o+i+"/send",method:"post",data:t})}function y(t){return Object(r["a"])({url:o+i+"/register_by_account",method:"post",data:t})}function w(t){return Object(r["a"])({url:o+i+"/checkAccount",method:"post",data:t})}function O(t){return Object(r["a"])({url:o+i+"/userInfo/"+t,method:"post"})}function j(t){return Object(r["a"])({url:o+i+"/bizInfo/"+t,method:"post"})}},"268f":function(t,e,n){t.exports=n("fde4")},"47ee":function(t,e,n){var r=n("c3a1"),o=n("9aa9"),i=n("355d");t.exports=function(t){var e=r(t),n=o.f;if(n){var a,c=n(t),s=i.f,u=0;while(c.length>u)s.call(t,a=c[u++])&&e.push(a)}return e}},4844:function(t,e,n){"use strict";var r=n("c11e"),o=n.n(r);o.a},"58ac":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",[n("div",{staticClass:"form-input"},[t._m(0),n("input",{directives:[{name:"model",rawName:"v-model",value:t.account,expression:"account"}],attrs:{type:"text",placeholder:"请输入手机号"},domProps:{value:t.account},on:{input:function(e){e.target.composing||(t.account=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:"请输入密码"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}}),n("p",{staticClass:"right",on:{click:function(e){return t.$router.push({path:"/forgetPassword",query:{type:"1"}})}}},[t._v("\n 忘记密码\n ")])])])]),n("div",{staticClass:"login-button"},[n("p",[n("button",{staticClass:"but-type1",attrs:{type:"info"},on:{click:t.loginMain}},[t._v("登录")])]),n("p",[n("button",{staticClass:"but-type2",on:{click:function(e){return t.userRegister()}}},[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("\n 《服务协议条款及隐私条款》\n ")])])])},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-zuo"})])])}],i=(n("a481"),n("cebc")),a=n("2f62"),c=n("24ec"),s=n("3089"),u=(n("5cab"),{data:function(){return{checked:!1,showPicker:!1,userType:"2",userTypeName:"个人用户",userTypes:[{text:"企业用户",value:"1"},{text:"个人用户",value:"2"}],account:"",password:"",isOriginHei:!0,screenHeight:document.documentElement.clientHeight,originHeight:document.documentElement.clientHeight}},mounted:function(){console.log("_this.$router_:",this.$router);var t=this;if(window.onresize=function(){return function(){t.screenHeight=document.documentElement.clientHeight}()},window.history&&window.history.pushState&&window.history.state.url!=document.URL){var e={title:"title",url:document.URL};window.history.pushState(e,"title","#")}},destroyed:function(){},watch:{screenHeight:function(t){this.originHeight>t+100?this.isOriginHei=!1:"1"==this.userType?this.isOriginHei=!1:this.isOriginHei=!0}},methods:Object(i["a"])({},Object(a["b"])({login:"user/login"}),{loginMain:function(){var t=this,e=this;return this.account&&this.password?"2"==this.userType&&!1===this.checked?(Object(s["Toast"])("请阅读并同意服务协议条款及隐私条款"),!1):(this.$auth.setUserType(this.$auth.TYPE_USER),void Object(c["i"])({userType:this.userType,userName:this.account,password:this.password,code:"",type:this.$auth.TYPE_USER}).then(function(n){0===n.errno&&n.data?(e.login(n.data),e.$router.push({path:"/home-app"}),window.history&&window.history.length):(t.userType=1,t.loginMain())})):(Object(s["Toast"])("请填写账号和密码"),!1)},goBack:function(){},userRegister:function(){this.$router.replace("/register")},onConfirm:function(t){this.userType=t.value,this.userTypeName=t.text,this.showPicker=!1,"1"==this.userType?this.isOriginHei=!1:this.isOriginHei=!0},bizPass:function(){Object(s["Toast"])("请联系园区管理员")}})}),f=u,d=(n("4844"),n("2877")),l=Object(d["a"])(f,r,o,!1,null,"5f34f460",null);e["default"]=l.exports},6718:function(t,e,n){var r=n("e53d"),o=n("584a"),i=n("b8e3"),a=n("ccb9"),c=n("d9f6").f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:a.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),i=n("bc3a"),a=n.n(i),c=n("4328"),s=n.n(c),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:s.a.stringify(t.data)};return e&&(n.data=t.data),t.headers&&(n.headers=t.headers),new o.a(function(e,r){a()(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){a.a.defaults.withCredentials=!0,a()(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)})})}},bf0b:function(t,e,n){var r=n("355d"),o=n("aebd"),i=n("36c3"),a=n("1bc3"),c=n("07e3"),s=n("794b"),u=Object.getOwnPropertyDescriptor;e.f=n("8e60")?u:function(t,e){if(t=i(t),e=a(e,!0),s)try{return u(t,e)}catch(n){}if(c(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)}})},c11e:function(t,e,n){},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),i=n("e265"),a=n.n(i),c=n("a4bb"),s=n.n(c),u=n("bd86");function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=s()(n);"function"===typeof a.a&&(r=r.concat(a()(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"),i=n("07e3"),a=n("d9f6").f,c=0,s=Object.isExtensible||function(){return!0},u=!n("294c")(function(){return s(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++c,w:{}}})},d=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[r].i},l=function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return u&&p.NEED&&s(t)&&!i(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)}}}]);