chunk-03b2ddff.6968fde0.js 13 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-03b2ddff"],{"3b8d":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("795b"),o=n.n(r);function a(t,e,n,r,a,i,c){try{var u=t[i](c),s=u.value}catch(h){return void n(h)}u.done?e(s):o.a.resolve(s).then(r,a)}function i(t){return function(){var e=this,n=arguments;return new o.a(function(r,o){var i=t.apply(e,n);function c(t){a(i,r,o,c,u,"next",t)}function u(t){a(i,r,o,c,u,"throw",t)}c(void 0)})}}},"3d16":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:"ChangePassword"},[n("div",{staticClass:"list"},[n("div",{staticClass:"item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.phone,expression:"phone"}],attrs:{type:"number",placeholder:"填写手机号码"},domProps:{value:t.phone},on:{input:function(e){e.target.composing||(t.phone=e.target.value)}}})]),n("div",{staticClass:"item acea-row row-between-wrapper"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.captcha,expression:"captcha"}],staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"},domProps:{value:t.captcha},on:{input:function(e){e.target.composing||(t.captcha=e.target.value)}}}),n("button",{staticClass:"code font-color-green",class:!0===t.disabled?"on":"",attrs:{disabled:t.disabled},on:{click:t.code}},[t._v("\n "+t._s(t.text)+"\n ")])])]),n("div",{staticClass:"confirmBnt bg-color-green",on:{click:t.confirm}},[t._v("确认绑定")])])},o=[],a=(n("a481"),n("96cf"),n("3b8d")),i=n("2f62"),c=n("f750"),u=n("61f7"),s=n("cba2"),h=n("c24f"),l={name:"BindingPhone",components:{},props:{},data:function(){return{captcha:"",phone:""}},mixins:[c["a"]],computed:Object(i["b"])(["userInfo"]),mounted:function(){},methods:{confirm:function(){var t=Object(a["a"])(regeneratorRuntime.mark(function t(){var e,n,r,o=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this,n=e.phone,r=e.captcha,t.prev=2,t.next=5,e.$validator({phone:[Object(u["b"])(u["b"].message("手机号码")),Object(u["a"])(u["a"].message())],captcha:[Object(u["e"])(u["e"].message("验证码")),Object(u["a"])(u["a"].message("验证码"))]}).validate({phone:n,captcha:r});case 5:t.next=10;break;case 7:return t.prev=7,t.t0=t["catch"](2),t.abrupt("return",Object(s["b"])(t.t0));case 10:Object(h["a"])({phone:this.phone,captcha:this.captcha}).then(function(t){void 0!==t.data&&t.data.is_bind?e.$dialog.confirm({mes:t.msg,opts:[{txt:"确认绑定",color:!1,callback:function(){Object(h["a"])({phone:o.phone,captcha:o.captcha,step:1}).then(function(t){e.$dialog.success(t.msg).then(function(){e.$router.replace({name:"PersonalData"})})}).catch(function(t){e.$dialog.error(t.msg).then(function(){e.$router.replace({name:"PersonalData"})})})}},{txt:"取消",color:!1,callback:function(){e.$dialog.error("已取消绑定").then(function(){e.$router.replace({name:"PersonalData"})})}}]}):e.$dialog.success(t.msg).then(function(){e.$router.replace({name:"PersonalData"})})}).catch(function(t){e.$dialog.error(t.msg)});case 11:case"end":return t.stop()}},t,this,[[2,7]])}));function e(){return t.apply(this,arguments)}return e}(),code:function(){var t=Object(a["a"])(regeneratorRuntime.mark(function t(){var e,n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this,n=e.phone,t.prev=2,t.next=5,e.$validator({phone:[Object(u["e"])(u["e"].message("手机号码")),Object(u["b"])(u["b"].message())]}).validate({phone:n});case 5:t.next=10;break;case 7:return t.prev=7,t.t0=t["catch"](2),t.abrupt("return",Object(s["b"])(t.t0));case 10:Object(h["Q"])({phone:n}).then(function(t){e.$dialog.success(t.msg),e.sendCode()}).catch(function(t){e.$dialog.error(t.msg)});case 11:case"end":return t.stop()}},t,this,[[2,7]])}));function e(){return t.apply(this,arguments)}return e}()}},f=l,p=n("2877"),d=Object(p["a"])(f,r,o,!1,null,null,null);e["default"]=d.exports},"61f7":function(t,e,n){"use strict";n.d(e,"e",function(){return i}),n.d(e,"a",function(){return l}),n.d(e,"d",function(){return f}),n.d(e,"b",function(){return m});var r=n("bd86"),o=(n("ac6a"),n("456d"),n("cebc")),a=(n("a481"),function(t,e){t.message=function(t){return e.replace("%s",t||"")}});function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o["a"])({required:!0,message:t,type:"string"},e)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o["a"])({type:"url",message:t},e)}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o["a"])({type:"email",message:t},e)}function s(t){return b.pattern(/^[\w]+$/,t)}function h(t){return b.pattern(/^[\w\d_-]+$/,t)}function l(t){return b.pattern(/^[\w\d]+$/,t)}function f(t){return b.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}function p(t){return b.pattern(/^[\u4e00-\u9fa5]+$/,t)}function d(t){return b.pattern(/^[\u4e00-\u9fa5\w]+$/,t)}function v(t){return b.pattern(/^[\u4e00-\u9fa5\w\d]+$/,t)}function g(t){return b.pattern(/^[\u4e00-\u9fa5\w\d-_]+$/,t)}function m(t){return b.pattern(/^1(3|4|5|7|8|9|6)\d{9}$/i,t)}a(i,"请输入%s"),a(c,"请输入正确的链接"),a(u,"请输入正确的邮箱地址"),a(s,"%s必须是字母"),a(h,"%s只能包含由字母、数字,以及 - 和 _"),a(l,"%s只能包含字母、数字"),a(f,"%s格式不正确"),a(p,"%s只能是汉字"),a(d,"%s只能包含汉字、字母"),a(v,"%s只能包含汉字、字母和数字"),a(g,"%s只能包含由汉字、字母、数字,以及 - 和 _"),a(m,"请输入正确的手机号码");var y={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},b=Object.keys(y).reduce(function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="range"===e?{min:t[0],max:t[1]}:Object(r["a"])({},e,t);return Object(o["a"])({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},i,a)},a(t[e],y[e]),t},{});e["c"]=b},"795b":function(t,e,n){t.exports=n("696e")},"96cf":function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),i=new k(r||[]);return a._invoke=L(t,n,i),a}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=u;var h="suspendedStart",l="suspendedYield",f="executing",p="completed",d={};function v(){}function g(){}function m(){}var y={};y[a]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(P([])));w&&w!==n&&r.call(w,a)&&(y=w);var x=m.prototype=v.prototype=Object.create(y);function O(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function j(t){function e(n,o,a,i){var c=s(t[n],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"===typeof h&&r.call(h,"__await")?Promise.resolve(h.__await).then(function(t){e("next",t,a,i)},function(t){e("throw",t,a,i)}):Promise.resolve(h).then(function(t){u.value=t,a(u)},function(t){return e("throw",t,a,i)})}i(c.arg)}var n;function o(t,r){function o(){return new Promise(function(n,o){e(t,r,n,o)})}return n=n?n.then(o,o):o()}this._invoke=o}function L(t,e,n){var r=h;return function(o,a){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw a;return C()}n.method=o,n.arg=a;while(1){var i=n.delegate;if(i){var c=$(i,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=s(t,e,n);if("normal"===u.type){if(r=n.done?p:l,u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}function $(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,$(t,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(t){if(t){var n=t[a];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){while(++o<t.length)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}return{next:C}}function C(){return{value:e,done:!0}}return g.prototype=x.constructor=m,m.constructor=g,m[c]=g.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},O(j.prototype),j.prototype[i]=function(){return this},t.AsyncIterator=j,t.async=function(e,n,r,o){var a=new j(u(e,n,r,o));return t.isGeneratorFunction(n)?a:a.next().then(function(t){return t.done?t.value:a.next()})},O(x),x[c]="Generator",x[a]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},f750:function(t,e,n){"use strict";e["a"]={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text="剩余 "+e+"s";var n=setInterval(function(){e-=1,e<0&&clearInterval(n),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")},1e3)}}}}}}]);
  2. //# sourceMappingURL=chunk-03b2ddff.6968fde0.js.map