3 lines
16 KiB
JavaScript
3 lines
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d0c5b590"],{1068:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"balance_recharge"}},[r("c-title",{attrs:{hide:!1,text:e.integral+"转账"}}),r("div",{staticStyle:{height:"10px"}}),r("div",{staticClass:"content"},[r("ul",{staticClass:"transfer_info"},[r("li",{staticClass:"info_a"},[r("span",[e._v("当前"+e._s(e.integral?e.integral:"积分")+":")]),r("span",[e._v(e._s(e.credit1))])]),r("li",{staticClass:"info_b"},[r("span",[e._v("受让人ID:")]),r("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.transfer_id,expression:"transfer_id",modifiers:{lazy:!0}}],attrs:{type:"text",placeholder:"请输入受让人ID"},domProps:{value:e.transfer_id},on:{change:function(t){e.transfer_id=t.target.value}}})])]),r("div",{staticClass:"transfer_sum"},[r("span",[e._v("转账"+e._s(e.integral?e.integral:"积分"))]),r("div",{staticClass:"sum"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.info_form.transfer_point,expression:"info_form.transfer_point"}],attrs:{type:"text",placeholder:"0.00"},domProps:{value:e.info_form.transfer_point},on:{input:function(t){t.target.composing||e.$set(e.info_form,"transfer_point",t.target.value)}}})])]),e.memberInfo?r("ul",{staticClass:"personal_info"},[r("li",[r("span",[e._v("昵称:")]),r("span",[e._v(e._s(e.memberInfo.nickname))])]),r("li",[r("span",[e._v("姓名:")]),r("span",[e._v(e._s(e.memberInfo.realname))])])]):e._e(),r("button",{staticClass:"btn custom_color",attrs:{type:"button"},on:{click:e.confirm}},[e._v(" 确认转账 ")]),r("p",{staticClass:"notes"},[e._v(" 注:转账"+e._s(e.integral?e.integral:"积分")+"不能小于0, 且为整数。"),r("br"),e._v(" 转让手续费比率为"+e._s(100*e.rate)+"%,"),r("br"),e._v(" 您实际转账到数为:"+e._s(e.info_form.transfer_point-e.info_form.transfer_point*e.rate)+" ")])]),r("pay-keyboard",{attrs:{payKeyboardShow:e.payKeyboardShow},on:{"update:payKeyboardShow":function(t){e.payKeyboardShow=t},"update:pay-keyboard-show":function(t){e.payKeyboardShow=t},complete:e.payComplete}})],1)},a=[],o=r("c7eb"),i=r("1da1"),s=(r("d3b7"),r("6968")),c=r("ebf1"),f=r("2fc4"),l={data:function(){return{credit1:"0.00",toi:this.fun.getKeyByI(),balance:0,info_form:{transfer_id:"",transfer_point:""},transfer_id:"",memberInfo:"",integral:window.localStorage.integral,rate:0,nick_name:"",payKeyboardShow:!1,need_password:!1,has_password:!1}},watch:{transfer_id:function(e){var t=this;$http.get("member.member.memberInfo",{i:this.fun.getKeyByI(),type:this.fun.getTyep(),uid:this.transfer_id},"获取用户中").then((function(e){1===e.result&&(t.memberInfo=e.data)}),(function(e){}))}},methods:{initData:function(){this.credit1="0.00",this.info_form.transfer_point=""},getIntegral:function(){var e=this;$http.get("finance.point-page.index",{i:this.fun.getKeyByI(),type:this.fun.getTyep()},"加载中").then((function(t){1==t.result?(e.credit1=t.data.credit1,e.transfer=t.data.transfer,e.rate=t.data.rate,e.need_password=t.data.need_password,e.has_password=t.data.has_password):e.$dialog.alert({message:t.msg})}),(function(t){e.$dialog.alert({message:t.msg})}))},payComplete:function(e){f["payKeyboardAsync"].complete(e)},getPayKeyboardPassword:function(){return this.payKeyboardShow=!0,new Promise((function(e,t){f["payKeyboardAsync"].addCompleteFn((function(t){e(t)}))}))},confirm:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){var r,n,a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e,!(parseFloat(e.info_form.transfer_point)>parseFloat(e.credit1))){t.next=4;break}return r.$dialog.alert({message:"转让积分不可大于您的积分"}),t.abrupt("return");case 4:if(!(void 0==e.transfer_id||e.transfer_id<=0||0==e.transfer_id.length)){t.next=7;break}return r.$dialog.alert({message:"转让id不可为空"}),t.abrupt("return");case 7:if(!(void 0==e.info_form.transfer_point||e.info_form.transfer_point<=0||0==e.info_form.length)){t.next=10;break}return r.$dialog.alert({message:"转让积分不可低于0元"}),t.abrupt("return");case 10:if(1!=e.need_password||0!=e.has_password){t.next=13;break}return r.$dialog.confirm({message:"请先设置支付密码"}).then((function(){r.$router.push(r.fun.getUrl("set_balance_password",{}))})),t.abrupt("return");case 13:if(n={i:e.fun.getKeyByI(),type:e.fun.getTyep(),recipient:e.transfer_id,transfer_point:e.info_form.transfer_point},1!=e.need_password){t.next=19;break}return t.next=17,e.getPayKeyboardPassword();case 17:a=t.sent,n.password=a;case 19:$http.get("finance.point-transfer.index",n," ").then((function(e){1==e.result?r.$dialog.alert({message:e.msg}).then((function(){r.$router.go(-1)})):r.$dialog.alert({message:e.msg})}),(function(e){}));case 20:case"end":return t.stop()}}),t)})))()}},activated:function(){this.toi=this.fun.getKeyByI(),this.initData(),this.getIntegral(),this.fun.setWXTitle(this.integral+"转账")},components:{cTitle:s["a"],payKeyboard:c["a"]}},u=l,d=u,p=(r("5c5f"),r("2877")),h=Object(p["a"])(d,n,a,!1,null,"1ab0de5e",null);t["default"]=h.exports},"1da1":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("d3b7");function n(e,t,r,n,a,o,i){try{var s=e[o](i),c=s.value}catch(f){return void r(f)}s.done?t(c):Promise.resolve(c).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,c,"next",e)}function c(e){n(i,a,o,s,c,"throw",e)}s(void 0)}))}}},"2fc4":function(e,t,r){var n=r("970b").default,a=r("5bc3").default,o=function(){"use strict";function e(){n(this,e),this.completeFn=null}return a(e,[{key:"addCompleteFn",value:function(e){this.completeFn=e}},{key:"complete",value:function(e){this.completeFn(e)}}]),e}(),i=new o;t.payKeyboardAsync=i},"330d":function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,"#balance_recharge .content .transfer_info[data-v-1ab0de5e]{background:#fff;padding-left:.875rem;font-size:16px}#balance_recharge .content .transfer_info .info_a[data-v-1ab0de5e],#balance_recharge .content .transfer_info .info_b[data-v-1ab0de5e]{line-height:2.875rem;border-bottom:.0625rem solid #ebebeb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}#balance_recharge .content .transfer_info .info_a span[data-v-1ab0de5e]:first-child,#balance_recharge .content .transfer_info .info_b span[data-v-1ab0de5e]:first-child{width:6.875rem;display:block;text-align:left}#balance_recharge .content .transfer_info .info_a input[data-v-1ab0de5e],#balance_recharge .content .transfer_info .info_b input[data-v-1ab0de5e]{border:none;width:15.625rem}#balance_recharge .content .transfer_sum[data-v-1ab0de5e]{background:#fff;padding:.625rem .875rem}#balance_recharge .content .transfer_sum span[data-v-1ab0de5e]{display:block;font-size:16px;line-height:2.5rem;text-align:left}#balance_recharge .content .transfer_sum .sum[data-v-1ab0de5e]{text-align:left;font-size:24px}#balance_recharge .content .transfer_sum .sum input[data-v-1ab0de5e]{margin-left:.375rem;line-height:3.75rem;width:90%;font-size:36px;border:none}#balance_recharge .content .personal_info[data-v-1ab0de5e]{margin-top:.625rem;background:#fff;padding-left:.875rem}#balance_recharge .content .personal_info li[data-v-1ab0de5e]{line-height:2.875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:16px;border-bottom:.0625rem solid #ebebeb;text-align:left}#balance_recharge .content .personal_info li span[data-v-1ab0de5e]:first-child{display:block;width:6.875rem}#balance_recharge .content .personal_info li[data-v-1ab0de5e]:last-child{border:none}#balance_recharge .content .btn[data-v-1ab0de5e]{width:21.5625rem;margin:1.25rem auto;height:2.875rem;border-radius:.25rem;font-size:16px;color:#fff;background:#f15353;border:none}#balance_recharge .content .notes[data-v-1ab0de5e]{color:#8c8c8c;line-height:1.125rem}#balance_recharge .my_wrapper[data-v-1ab0de5e]{background:#fff;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0 .875rem;line-height:2.875rem}#balance_recharge .my_wrapper span[data-v-1ab0de5e]{width:80px;text-align:left;font-size:16px}#balance_recharge .my_wrapper .my-value[data-v-1ab0de5e]{-webkit-box-flex:2;-webkit-flex:2;-ms-flex:2;flex:2;text-align:left}#balance_recharge .my_wrapper .my-value span[data-v-1ab0de5e]{color:#f15353}#balance_recharge #wrapper[data-v-1ab0de5e]{margin-top:.625rem}",""]),e.exports=t},"5bc3":function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5c5f":function(e,t,r){"use strict";r("bec6")},"970b":function(e,t,r){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r("d9e2"),e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},bec6:function(e,t,r){var n=r("330d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("499e").default;a("3866f5bd",n,!0,{sourceMap:!1,shadowMode:!1})},c7eb:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("d9e2"),r("3410"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var n=r("53ca");function a(){
|
||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||
a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(I){f=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),i=new E(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return O()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var s=x(i,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,i),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var d={};function p(){}function h(){}function b(){}var m={};f(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(j([])));g&&g!==t&&r.call(g,i)&&(m=g);var v=b.prototype=p.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function a(o,i,s,c){var f=u(e[o],e,i);if("throw"!==f.type){var l=f.arg,d=l.value;return d&&"object"==Object(n["a"])(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,c)}),(function(e){a("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return a("throw",e,s,c)}))}c(f.arg)}var o;this._invoke=function(e,r){function n(){return new t((function(t,n){a(e,r,t,n)}))}return o=o?o.then(n,n):n()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function j(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=b,f(v,"constructor",b),f(b,"constructor",h),h.displayName=f(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,f(e,c,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},_(w.prototype),f(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new w(l(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(v),f(v,c,"Generator"),f(v,i,(function(){return this})),f(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){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"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;L(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:j(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}}}]); |