12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b32185c"],{"3b8d":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("795b"),a=n.n(r);function i(t,e,n,r,i,o,s){try{var c=t[o](s),u=c.value}catch(l){return void n(l)}c.done?e(u):a.a.resolve(u).then(r,i)}function o(t){return function(){var e=this,n=arguments;return new a.a(function(r,a){var o=t.apply(e,n);function s(t){i(o,r,a,s,c,"next",t)}function c(t){i(o,r,a,s,c,"throw",t)}s(void 0)})}}},"61f7":function(t,e,n){"use strict";n.d(e,"e",function(){return o}),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")),i=(n("a481"),function(t,e){t.message=function(t){return e.replace("%s",t||"")}});function o(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)}i(o,"请输入%s"),i(s,"请输入正确的链接"),i(c,"请输入正确的邮箱地址"),i(u,"%s必须是字母"),i(l,"%s只能包含由字母、数字,以及 - 和 _"),i(p,"%s只能包含字母、数字"),i(m,"%s格式不正确"),i(v,"%s只能是汉字"),i(d,"%s只能包含汉字、字母"),i(f,"%s只能包含汉字、字母和数字"),i(h,"%s只能包含由汉字、字母、数字,以及 - 和 _"),i(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]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="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"},o,i)},i(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:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(t,e,n,r){var a=e&&e.prototype instanceof f?e:f,i=Object.create(a.prototype),o=new L(r||[]);return i._invoke=k(t,n,o),i}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[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(E([])));b&&b!==n&&r.call(b,i)&&(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,i,o){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,i,o)},function(t){e("throw",t,i,o)}):Promise.resolve(l).then(function(t){c.value=t,i(c)},function(t){return e("throw",t,i,o)})}o(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,i){if(r===m)throw new Error("Generator is already running");if(r===v){if("throw"===a)throw i;return P()}n.method=a,n.arg=i;while(1){var o=n.delegate;if(o){var s=O(o,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 i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):i:(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 $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function E(t){if(t){var n=t[i];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=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 o.next=o}}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[o]=function(){return this},t.AsyncIterator=C,t.async=function(e,n,r,a){var i=new C(c(e,n,r,a));return t.isGeneratorFunction(n)?i:i.next().then(function(t){return t.done?t.value:i.next()})},_(x),x[s]="Generator",x[i]=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,L.prototype={constructor:L,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($),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.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 i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(o)},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),$(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;$(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-red",on:{click:function(n){return t.swichNav(r,e)}}},[n("div",{staticClass:"line bg-color-red",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-red",on:{click:t.submitted}},[t._v("提现")])]),n("div",{staticClass:"list",attrs:{hidden:1!==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.weixin,expression:"post.weixin"}],attrs:{placeholder:"请输入微信号"},domProps:{value:t.post.weixin},on:{input:function(e){e.target.composing||t.$set(t.post,"weixin",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-red",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-red",on:{click:t.submitted}},[t._v("提现")])])])])},a=[],i=(n("7f7f"),n("96cf"),n("3b8d")),o=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(o["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(i["a"])(regeneratorRuntime.mark(function t(){var e,n,r,a,i,o,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,i=this.post.cardnum,o=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:i,name:a,money:r});case 11:l={extract_type:u.post.extract_type,bankname:e,cardnum:i,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:o,money:r});case 33:m={extract_type:u.post.extract_type,weixin:o,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(o["K"])(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}}]);
|