chunk-35d5973c.92482433.js 18 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35d5973c"],{"57f0":function(t,e,n){"use strict";function r(t,e,n,r,a,i,o){try{var s=t[i](o),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,a)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(a,i){var o=t.apply(e,n);function s(t){r(o,a,i,s,c,"next",t)}function c(t){r(o,a,i,s,c,"throw",t)}s(void 0)}))}}n.d(e,"a",(function(){return a}))},"61f7":function(t,e,n){"use strict";n.d(e,"e",(function(){return s})),n.d(e,"a",(function(){return m})),n.d(e,"d",(function(){return v})),n.d(e,"b",(function(){return g}));n("5ab2"),n("6d57"),n("e10e");var r=n("289c");n("f548");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){Object(r["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var o=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i({required:!0,message:t,type:"string"},e)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i({type:"url",message:t},e)}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i({type:"email",message:t},e)}function p(t){return b.pattern(/^[\w]+$/,t)}function l(t){return b.pattern(/^[\w\d_-]+$/,t)}function m(t){return b.pattern(/^[\w\d]+$/,t)}function v(t){return b.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}function d(t){return b.pattern(/^[\u4e00-\u9fa5]+$/,t)}function f(t){return b.pattern(/^[\u4e00-\u9fa5\w]+$/,t)}function h(t){return b.pattern(/^[\u4e00-\u9fa5\w\d]+$/,t)}function y(t){return b.pattern(/^[\u4e00-\u9fa5\w\d-_]+$/,t)}function g(t){return b.pattern(/^1(3|4|5|7|8|9|6)\d{9}$/i,t)}o(s,"请输入%s"),o(c,"请输入正确的链接"),o(u,"请输入正确的邮箱地址"),o(p,"%s必须是字母"),o(l,"%s只能包含由字母、数字,以及 - 和 _"),o(m,"%s只能包含字母、数字"),o(v,"%s格式不正确"),o(d,"%s只能是汉字"),o(f,"%s只能包含汉字、字母"),o(h,"%s只能包含汉字、字母和数字"),o(y,"%s只能包含由汉字、字母、数字,以及 - 和 _"),o(g,"请输入正确的手机号码");var w={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},b=Object.keys(w).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]:{},o="range"===e?{min:t[0],max:t[1]}:Object(r["a"])({},e,t);return i({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o,{},a)},o(t[e],w[e]),t}),{});e["c"]=b},"63ff":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 $(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 p="suspendedStart",l="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(L([])));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,p=c.value;return p&&"object"===typeof p&&r.call(p,"__await")?Promise.resolve(p.__await).then((function(t){e("next",t,i,o)}),(function(t){e("throw",t,i,o)})):Promise.resolve(p).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=p;return function(a,i){if(r===m)throw new Error("Generator is already running");if(r===v){if("throw"===a)throw i;return E()}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===p)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:l,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 P(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 L(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:E}}function E(){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=L,$.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(P),!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),P(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;P(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(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("cc57"),n("63ff"),n("57f0")),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,p,l,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:p={extract_type:u.post.extract_type,bankname:e,cardnum:i,name:a,money:r},u.save(p),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:l={extract_type:u.post.extract_type,alipay_code:n,name:a,money:r},u.save(l),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["M"])(t).then((function(t){e.$dialog.message(t.msg),e.$router.push({path:"/user/audit"})}),(function(t){e.$dialog.message(t.msg)}))}}},p=u,l=n("623f"),m=Object(l["a"])(p,r,a,!1,null,null,null);e["default"]=m.exports}}]);
  2. //# sourceMappingURL=chunk-35d5973c.92482433.js.map