chunk-0b32185c.eb88b5ff.js 17 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b32185c"],{"3b8d":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("795b"),a=n.n(r);function o(t,e,n,r,o,i,s){try{var c=t[i](s),u=c.value}catch(l){return void n(l)}c.done?e(u):a.a.resolve(u).then(r,o)}function i(t){return function(){var e=this,n=arguments;return new a.a(function(r,a){var i=t.apply(e,n);function s(t){o(i,r,a,s,c,"next",t)}function c(t){o(i,r,a,s,c,"throw",t)}s(void 0)})}}},"61f7":function(t,e,n){"use strict";n.d(e,"e",function(){return i}),n.d(e,"a",function(){return p}),n.d(e,"d",function(){return m}),n.d(e,"b",function(){return y});var r=n("bd86"),a=(n("ac6a"),n("456d"),n("cebc")),o=(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(a["a"])({required:!0,message:t,type:"string"},e)}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a["a"])({type:"url",message:t},e)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a["a"])({type:"email",message:t},e)}function u(t){return w.pattern(/^[\w]+$/,t)}function l(t){return w.pattern(/^[\w\d_-]+$/,t)}function p(t){return w.pattern(/^[\w\d]+$/,t)}function m(t){return w.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}function v(t){return w.pattern(/^[\u4e00-\u9fa5]+$/,t)}function d(t){return w.pattern(/^[\u4e00-\u9fa5\w]+$/,t)}function f(t){return w.pattern(/^[\u4e00-\u9fa5\w\d]+$/,t)}function h(t){return w.pattern(/^[\u4e00-\u9fa5\w\d-_]+$/,t)}function y(t){return w.pattern(/^1(3|4|5|7|8|9|6)\d{9}$/i,t)}o(i,"请输入%s"),o(s,"请输入正确的链接"),o(c,"请输入正确的邮箱地址"),o(u,"%s必须是字母"),o(l,"%s只能包含由字母、数字,以及 - 和 _"),o(p,"%s只能包含字母、数字"),o(m,"%s格式不正确"),o(v,"%s只能是汉字"),o(d,"%s只能包含汉字、字母"),o(f,"%s只能包含汉字、字母和数字"),o(h,"%s只能包含由汉字、字母、数字,以及 - 和 _"),o(y,"请输入正确的手机号码");var g={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},w=Object.keys(g).reduce(function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=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(a["a"])({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},i,o)},o(t[e],g[e]),t},{});e["c"]=w},"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,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(t,e,n,r){var a=e&&e.prototype instanceof f?e:f,o=Object.create(a.prototype),i=new $(r||[]);return o._invoke=k(t,n,i),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=c;var l="suspendedStart",p="suspendedYield",m="executing",v="completed",d={};function f(){}function h(){}function y(){}var g={};g[o]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(E([])));b&&b!==n&&r.call(b,o)&&(g=b);var x=y.prototype=f.prototype=Object.create(g);function _(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function C(t){function e(n,a,o,i){var s=u(t[n],t,a);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"===typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,o,i)},function(t){e("throw",t,o,i)}):Promise.resolve(l).then(function(t){c.value=t,o(c)},function(t){return e("throw",t,o,i)})}i(s.arg)}var n;function a(t,r){function a(){return new Promise(function(n,a){e(t,r,n,a)})}return n=n?n.then(a,a):a()}this._invoke=a}function k(t,e,n){var r=l;return function(a,o){if(r===m)throw new Error("Generator is already running");if(r===v){if("throw"===a)throw o;return P()}n.method=a,n.arg=o;while(1){var i=n.delegate;if(i){var s=O(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var c=u(t,e,n);if("normal"===c.type){if(r=n.done?v:p,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}function O(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,O(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 a=u(r,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,d;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function j(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function E(t){if(t){var n=t[o];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function n(){while(++a<t.length)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}return{next:P}}function P(){return{value:e,done:!0}}return h.prototype=x.constructor=y,y.constructor=h,y[s]=h.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},_(C.prototype),C.prototype[i]=function(){return this},t.AsyncIterator=C,t.async=function(e,n,r,a){var o=new C(c(e,n,r,a));return t.isGeneratorFunction(n)?o:o.next().then(function(t){return t.done?t.value:o.next()})},_(x),x[s]="Generator",x[o]=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=E,$.prototype={constructor:$,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(L),!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 a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.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),L(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 a=r.arg;L(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=r}catch(a){Function("r","regeneratorRuntime = r")(r)}},c2af: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:"cash-withdrawal"},[n("div",{staticClass:"nav acea-row"},t._l(t.navList,function(e,r){return n("div",{key:r,staticClass:"item font-color-green",on:{click:function(n){return t.swichNav(r,e)}}},[n("div",{staticClass:"line bg-color-green",class:t.currentTab===r?"on":""}),n("div",{staticClass:"iconfont",class:e.icon+" "+(t.currentTab===r?"on":"")}),n("div",[t._v(t._s(e.name))])])}),0),n("div",{staticClass:"wrapper"},[n("div",{staticClass:"list",attrs:{hidden:0!==t.currentTab}},[n("div",{staticClass:"item acea-row row-between-wrapper"},[n("div",{staticClass:"name"},[t._v("持卡人")]),n("div",{staticClass:"input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.post.name,expression:"post.name"}],attrs:{placeholder:"请输入持卡人姓名"},domProps:{value:t.post.name},on:{input:function(e){e.target.composing||t.$set(t.post,"name",e.target.value)}}})])]),n("div",{staticClass:"item acea-row row-between-wrapper"},[n("div",{staticClass:"name"},[t._v("卡号")]),n("div",{staticClass:"input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.post.cardnum,expression:"post.cardnum"}],attrs:{placeholder:"请填写卡号"},domProps:{value:t.post.cardnum},on:{input:function(e){e.target.composing||t.$set(t.post,"cardnum",e.target.value)}}})])]),n("div",{staticClass:"item acea-row row-between-wrapper"},[n("div",{staticClass:"name"},[t._v("银行")]),n("div",{staticClass:"input"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.post.bankname,expression:"post.bankname"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){var e="_value"in t?t._value:t.value;return e});t.$set(t.post,"bankname",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:""}},[t._v("请选择银行")]),t._l(t.banks,function(e,r){return n("option",{key:r,attrs:{value:"item"}},[t._v(t._s(e))])})],2)])]),n("div",{staticClass:"item acea-row row-between-wrapper"},[n("div",{staticClass:"name"},[t._v("提现")]),n("div",{staticClass:"input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.post.money,expression:"post.money"}],attrs:{placeholder:"最低提现金额"+t.minPrice},domProps:{value:t.post.money},on:{input:function(e){e.target.composing||t.$set(t.post,"money",e.target.value)}}})])]),n("div",{staticClass:"tip"},[t._v("当前可提现金额: "+t._s(t.commissionCount))]),n("div",{staticClass:"bnt bg-color-green",on:{click:t.submitted}},[t._v("提现")])]),n("div",{staticClass:"list",attrs:{hidden:1!==t.currentTab}},[n("div",{staticClass:"tip2"},[t._v("当前可提现金额: "+t._s(t.commissionCount))]),n("div",{staticClass:"value"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.post.money,expression:"post.money"}],attrs:{placeholder:"0"},domProps:{value:t.post.money},on:{input:function(e){e.target.composing||t.$set(t.post,"money",e.target.value)}}})]),n("div",{staticClass:"bnt bg-color-green",on:{click:t.submitted}},[t._v("提现")])]),n("div",{staticClass:"list",attrs:{hidden:2!==t.currentTab}},[n("div",{staticClass:"item acea-row row-between-wrapper"},[n("div",{staticClass:"name"},[t._v("用户名")]),n("div",{staticClass:"input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.post.name,expression:"post.name"}],attrs:{placeholder:"请填写您的支付宝用户名"},domProps:{value:t.post.name},on:{input:function(e){e.target.composing||t.$set(t.post,"name",e.target.value)}}})])]),n("div",{staticClass:"item acea-row row-between-wrapper"},[n("div",{staticClass:"name"},[t._v("账号")]),n("div",{staticClass:"input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.post.alipay_code,expression:"post.alipay_code"}],attrs:{placeholder:"请填写您的支付宝账号"},domProps:{value:t.post.alipay_code},on:{input:function(e){e.target.composing||t.$set(t.post,"alipay_code",e.target.value)}}})])]),n("div",{staticClass:"item acea-row row-between-wrapper"},[n("div",{staticClass:"name"},[t._v("提现")]),n("div",{staticClass:"input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.post.money,expression:"post.money"}],attrs:{placeholder:"最低提现金额"+t.minPrice},domProps:{value:t.post.money},on:{input:function(e){e.target.composing||t.$set(t.post,"money",e.target.value)}}})])]),n("div",{staticClass:"tip"},[t._v("当前可提现金额: "+t._s(t.commissionCount))]),n("div",{staticClass:"bnt bg-color-green",on:{click:t.submitted}},[t._v("提现")])])])])},a=[],o=(n("7f7f"),n("96cf"),n("3b8d")),i=n("c24f"),s=n("61f7"),c=n("cba2"),u={name:"UserCash",components:{},props:{},data:function(){return{navList:[{name:"银行卡",type:"bank",icon:"icon-yinhangqia"},{name:"微信",type:"weixin",icon:"icon-weixin2"},{name:"支付宝",type:"alipay",icon:"icon-icon34"}],post:{extract_type:"bank",alipay_code:"",money:"",name:"",bankname:"",cardnum:"",weixin:""},currentTab:0,minPrice:0,banks:[],commissionCount:0}},mounted:function(){this.getBank()},methods:{swichNav:function(t,e){this.currentTab=t,this.post.extract_type=e.type},getBank:function(){var t=this;Object(i["i"])().then(function(e){t.banks=e.data.extractBank,t.minPrice=e.data.minPrice,t.commissionCount=e.data.commissionCount},function(e){t.$dialog.message(e.msg)})},submitted:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(){var e,n,r,a,o,i,u,l,p,m;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.post.bankname,n=this.post.alipay_code,r=this.post.money,a=this.post.name,o=this.post.cardnum,i=this.post.weixin,u=this,!(parseFloat(r)<parseFloat(u.commissionCount)||0==parseFloat(u.commissionCount))){t.next=3;break}return t.abrupt("return",u.$dialog.message("余额不足"));case 3:if(!(parseFloat(r)<parseFloat(u.minPrice))){t.next=5;break}return t.abrupt("return",u.$dialog.message("最低提现金额"+u.minPrice));case 5:t.t0=u.post.extract_type,t.next="bank"===t.t0?8:"alipay"===t.t0?19:"weixin"===t.t0?30:41;break;case 8:return t.prev=8,t.next=11,this.$validator({name:[s["e"].message("持卡人姓名")],cardnum:[Object(s["e"])(s["e"].message("卡号"))],bankname:[Object(s["e"])(Object(s["e"])("请选择提现银行"))],money:[s["e"].message("提现金额")]}).validate({bankname:e,cardnum:o,name:a,money:r});case 11:l={extract_type:u.post.extract_type,bankname:e,cardnum:o,name:a,money:r},u.save(l),t.next=18;break;case 15:return t.prev=15,t.t1=t["catch"](8),t.abrupt("return",Object(c["b"])(t.t1));case 18:return t.abrupt("break",41);case 19:return t.prev=19,t.next=22,this.$validator({name:[Object(s["e"])(s["e"].message("支付宝用户名"))],alipay_code:[Object(s["e"])(s["e"].message("支付宝账号"))],money:[Object(s["e"])(s["e"].message("提现金额"))]}).validate({name:a,alipay_code:n,money:r});case 22:p={extract_type:u.post.extract_type,alipay_code:n,name:a,money:r},u.save(p),t.next=29;break;case 26:return t.prev=26,t.t2=t["catch"](19),t.abrupt("return",Object(c["b"])(t.t2));case 29:return t.abrupt("break",41);case 30:return t.prev=30,t.next=33,this.$validator({weixin:[Object(s["e"])(s["e"].message("提现微信号"))],money:[Object(s["e"])(s["e"].message("提现金额"))]}).validate({weixin:i,money:r});case 33:m={extract_type:u.post.extract_type,weixin:i,money:r},u.save(m),t.next=40;break;case 37:return t.prev=37,t.t3=t["catch"](30),t.abrupt("return",Object(c["b"])(t.t3));case 40:return t.abrupt("break",41);case 41:case"end":return t.stop()}},t,this,[[8,15],[19,26],[30,37]])}));function e(){return t.apply(this,arguments)}return e}(),save:function(t){var e=this;Object(i["I"])(t).then(function(t){e.$dialog.message(t.msg),e.router.push({path:"/user/audit"})},function(t){e.$dialog.message(t.msg)})}}},l=u,p=n("2877"),m=Object(p["a"])(l,r,a,!1,null,null,null);e["default"]=m.exports}}]);
  2. //# sourceMappingURL=chunk-0b32185c.eb88b5ff.js.map