mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-13 20:02:49 +00:00
2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-009e81b0"],{1384:function(e,n,t){},1865:function(e,n,t){"use strict";var a=t("1384"),o=t.n(a);o.a},"64e8":function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"recharge"},[t("div",{staticClass:"nav acea-row row-around row-middle"},e._l(e.navRecharge,function(n,a){return t("div",{key:a,staticClass:"item",class:e.active===a?"on":"",on:{click:function(n){return e.navRecharges(a)}}},[e._v("\n "+e._s(n)+"\n ")])}),0),t("div",{staticClass:"info-wrapper"},[t("div",{staticClass:"money"},[t("span",[e._v("¥")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.money,expression:"money"}],attrs:{type:"number",placeholder:"0.00"},domProps:{value:e.money},on:{input:function(n){n.target.composing||(e.money=n.target.value)}}})]),t("div",{staticClass:"tips"},[e._v("\n 提示:当前余额为"),t("span",[e._v("¥"+e._s(e.now_money||0))])]),t("div",{staticClass:"pay-btn bg-color-red",on:{click:e.recharge}},[e._v("立即充值")])])])])},o=[],c=(t("a481"),t("c5f6"),t("2f62")),i=t("74f9"),s=t("ed08"),r=t("c24f"),u=t("9fd0"),l={name:"Recharge",components:{},props:{},data:function(){return{navRecharge:["账户充值","佣金导入"],active:0,payType:["weixin"],from:Object(s["d"])()?"weixin":"weixinh5",money:"",now_money:""}},computed:Object(c["b"])(["userInfo"]),mounted:function(){this.now_money=this.userInfo.now_money},methods:{navRecharges:function(e){this.active=e},recharge:function(){var e=this,n=this,t=Number(this.money);return 0===t?n.$dialog.toast({mes:"请输入您要充值的金额"}):t<.01?n.$dialog.toast({mes:"充值金额不能低于0.01"}):void Object(r["N"])({price:t,from:n.from}).then(function(a){var o=a.data;"weixinh5"==o.type?(location.replace(o.data.mweb_url),e.$dialog.confirm({mes:"充值余额",opts:[{txt:"已充值",color:!1,callback:function(){n.$router.replace({path:"/user/account"})}},{txt:"查看余额",color:!1,callback:function(){n.$router.replace({path:"/user/account"})}}]})):Object(i["pay"])(o.data).finally(function(){n.now_money=Object(u["a"])(t,parseInt(n.userInfo.now_money)),n.$dialog.toast({mes:"支付成功"})}).catch(function(){n.$dialog.toast({mes:"支付失败"})})}).catch(function(e){n.$dialog.toast({mes:e.msg})})}}},m=l,d=(t("1865"),t("2877")),p=Object(d["a"])(m,a,o,!1,null,"50b800de",null);n["default"]=p.exports}}]);
|
|
//# sourceMappingURL=chunk-009e81b0.8e7b7046.js.map
|