bztang-admin/addons/yun_shop/static/app/js/chunk-461c456a.b8e0a41b.js

3 lines
16 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-461c456a"],{"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 c=e[o](i),s=c.value}catch(f){return void r(f)}c.done?t(s):Promise.resolve(s).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 c(e){n(i,a,o,c,s,"next",e)}function s(e){n(i,a,o,c,s,"throw",e)}c(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},"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},8699:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,"#balance_recharge .content .transfer_info[data-v-7ec0cd95]{background:#fff;padding-left:.875rem;font-size:16px}#balance_recharge .content .transfer_info .info_a[data-v-7ec0cd95],#balance_recharge .content .transfer_info .info_b[data-v-7ec0cd95]{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-7ec0cd95]:first-child,#balance_recharge .content .transfer_info .info_b span[data-v-7ec0cd95]:first-child{width:6.875rem;display:block;text-align:left}#balance_recharge .content .transfer_info .info_a input[data-v-7ec0cd95],#balance_recharge .content .transfer_info .info_b input[data-v-7ec0cd95]{border:none;width:15.625rem}#balance_recharge .content .transfer_sum[data-v-7ec0cd95]{background:#fff;padding:.625rem .875rem}#balance_recharge .content .transfer_sum span[data-v-7ec0cd95]{display:block;font-size:16px;line-height:2.5rem;text-align:left}#balance_recharge .content .transfer_sum .sum[data-v-7ec0cd95]{text-align:left;font-size:24px}#balance_recharge .content .transfer_sum .sum input[data-v-7ec0cd95]{margin-left:.375rem;line-height:3.75rem;width:90%;font-size:36px;border:none}#balance_recharge .content .personal_info[data-v-7ec0cd95]{margin-top:.625rem;background:#fff;padding-left:.875rem}#balance_recharge .content .personal_info li[data-v-7ec0cd95]{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-7ec0cd95]:first-child{display:block;width:6.875rem}#balance_recharge .content .personal_info li[data-v-7ec0cd95]:last-child{border:none}#balance_recharge .content .btn[data-v-7ec0cd95]{width:21.5625rem;margin:1.25rem auto;height:2.875rem;border-radius:.25rem;font-size:16px;color:#fff;background:#f15353;border:none}#balance_recharge .my_wrapper[data-v-7ec0cd95]{background:#fff;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0 .875rem}#balance_recharge .my_wrapper span[data-v-7ec0cd95]{text-align:left;font-size:16px}#balance_recharge .my_wrapper .my-value[data-v-7ec0cd95]{-webkit-box-flex:2;-webkit-flex:2;-ms-flex:2;flex:2;text-align:left}#balance_recharge .my_wrapper .my-value span[data-v-7ec0cd95]{color:#f15353}#balance_recharge #wrapper[data-v-7ec0cd95]{border-bottom:.0625rem solid #d9d9d9;margin-top:.625rem}#balance_recharge .confirm-transfer-popup[data-v-7ec0cd95]{padding:1rem}#balance_recharge .confirm-transfer-popup .confirm-transfer-popup-li[data-v-7ec0cd95]{font-size:12px;text-align:left;margin-bottom:10px}#balance_recharge .confirm-transfer-popup .confirm-transfer-popup-warn[data-v-7ec0cd95]{text-align:center;color:#f15353;font-size:16px}",""]),e.exports=t},"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},9728:function(e,t,r){var n=r("8699");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("499e").default;a("5bbbbfa7",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",c=o.asyncIterator||"@@asyncIterator",s=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(O){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 C(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 j()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===d)continue;return c}}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 s=u(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(e,r,i),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=l;var d={};function p(){}function h(){}function m(){}var b={};f(b,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(E([])));v&&v!==t&&r.call(v,i)&&(b=v);var g=m.prototype=p.prototype=Object.create(b);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,c,s){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,c,s)}),(function(e){a("throw",e,c,s)})):t.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return a("throw",e,c,s)}))}s(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 C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function E(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:j}}function j(){return{value:void 0,done:!0}}return h.prototype=m,f(g,"constructor",m),f(m,"constructor",h),h.displayName=f(m,s,"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,m):(e.__proto__=m,f(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},_(w.prototype),f(w.prototype,c,(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()}))},_(g),f(g,s,"Generator"),f(g,i,(function(){return this})),f(g,"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=E,C.prototype={constructor:C,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 c=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)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:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}},d650: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:"转账"}}),r("div",{staticClass:"content"},[r("ul",{staticClass:"transfer_info"},[r("li",{staticClass:"info_a"},[r("span",[e._v("当前"+e._s(e.balanceLang)+"")]),r("span",[e._v(e._s(e.balance)+"元")])]),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("转账金额")]),r("div",{staticClass:"sum"},[e._v(e._s(e.$i18n.t("money"))),r("input",{directives:[{name:"model",rawName:"v-model",value:e.info_form.transfer_money,expression:"info_form.transfer_money"}],attrs:{type:"text",placeholder:""},domProps:{value:e.info_form.transfer_money},on:{input:function(t){t.target.composing||e.$set(e.info_form,"transfer_money",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.beforeConfirm}},[e._v(" 确认转账 ")])]),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}}),r("van-dialog",{attrs:{title:"","show-cancel-button":""},on:{confirm:e.confirm},model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}},[r("div",{staticClass:"confirm-transfer-popup"},[r("div",{staticClass:"confirm-transfer-popup-li"},[e._v("受让人ID"+e._s(e.transfer_id))]),r("div",{staticClass:"confirm-transfer-popup-li"},[e._v("受让人昵称:"+e._s(e.memberInfo.nickname))]),r("div",{staticClass:"confirm-transfer-popup-li"},[e._v("受让人姓名:"+e._s(e.memberInfo.realname))]),r("div",{staticClass:"confirm-transfer-popup-li"},[e._v("转账金额:"+e._s(e.info_form.transfer_money))]),r("div",{staticClass:"confirm-transfer-popup-warn"},[e._v("您是否确定转账?")])])])],1)},a=[],o=r("c7eb"),i=r("1da1"),c=(r("e7e5"),r("d399")),s=(r("d3b7"),r("6968")),f=r("ebf1"),l=r("2fc4"),u={data:function(){return{toi:this.fun.getKeyByI(),balance:0,info_form:{transfer_id:"",transfer_money:""},transfer_id:"",memberInfo:"",balanceLang:this.fun.getBalanceLang(),payKeyboardShow:!1,need_password:!1,has_password:!1,showConfirm:!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:Object(c["a"])(e.msg)}),(function(e){Object(c["a"])(e.msg)}))}},methods:{beforeConfirm:function(){var e=this;parseFloat(this.info_form.transfer_money)>parseFloat(this.balance)?this.$dialog.alert({message:"转让金额不可大于您的余额"}):void 0==this.transfer_id||this.transfer_id<=0||0==this.transfer_id.length?this.$dialog.alert({message:"转让id不可为空"}):void 0==this.info_form.transfer_money||this.info_form.transfer_money<=0||0==this.info_form.length?this.$dialog.alert({message:"转让金额不可低于0元"}):1!=this.need_password||0!=this.has_password?this.showConfirm=!0:this.$dialog.confirm({message:"请先设置支付密码"}).then((function(){e.$router.push(e.fun.getUrl("set_balance_password",{}))}))},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,n={recipient:e.transfer_id,transfer_money:e.info_form.transfer_money},1!=e.need_password){t.next=7;break}return t.next=5,e.getPayKeyboardPassword();case 5:a=t.sent,n.password=a;case 7:$http.get("finance.balance.transfer",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 8:case"end":return t.stop()}}),t)})))()},payComplete:function(e){l["payKeyboardAsync"].complete(e)},getPayKeyboardPassword:function(){return this.payKeyboardShow=!0,new Promise((function(e,t){l["payKeyboardAsync"].addCompleteFn((function(t){e(t)}))}))},getBalence:function(){var e=this;$http.get("finance.balance.member-balance",{}," ").then((function(t){1===t.result&&(e.balance=t.data.credit2,e.need_password=t.data.need_password,e.has_password=t.data.has_password)})).catch((function(e){}))}},activated:function(){this.toi=this.fun.getKeyByI(),this.getBalence()},components:{cTitle:s["a"],payKeyboard:f["a"]}},d=u,p=d,h=(r("dae8"),r("2877")),m=Object(h["a"])(p,n,a,!1,null,"7ec0cd95",null);t["default"]=m.exports},dae8:function(e,t,r){"use strict";r("9728")}}]);