bztang-admin/addons/yun_shop/static/app/js/chunk-45da134d.66423a5a.js

1 line
6.5 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-45da134d"],{"02d1":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"consensus-activity-withdraw"},[a("c-title",{attrs:{text:t.text}}),1==t.type||5==t.type?a("div",{staticClass:"head"},[t._v(" 当前"+t._s(t.yuan_name)+""+t._s(t.usable_yuan)+" "),1!=t.type&&5!=t.type||1!=t.open?t._e():[t._v(" ,当前"+t._s(t.yuan_withdraw_limit_name)+""+t._s(t.yuan_withdraw_quota)+" ")]],2):t._e(),3==t.type||4==t.type||6==t.type?a("div",{staticClass:"head"},[t._v("当前"+t._s(t.income_name)+""+t._s(t.income))]):2==t.type?a("div",{staticClass:"head"},[t._v("当前"+t._s(t.yuan_withdraw_limit_name)+""+t._s(t.yuan_withdraw_quota))]):t._e(),a("div",{staticClass:"main"},[2==t.type||4==t.type?a("div",{staticClass:"member"},[a("span",{staticStyle:{"flex-shrink":"0"}},[t._v("受让人ID")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.uid,expression:"uid"}],attrs:{type:"text",placeholder:"请输入"},domProps:{value:t.uid},on:{input:function(e){e.target.composing||(t.uid=e.target.value)}}})]):t._e(),a("p",{staticClass:"left fz26"},[t._v(" "+t._s(1==t.type?"提现"+t.yuan_name:2==t.type||4==t.type?"转让数量":3==t.type||5==t.type?"转入数量":"提现"+t.income_name)+" ")]),a("div",{staticClass:"content"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.count,expression:"count"}],attrs:{type:"text"},domProps:{value:t.count},on:{focus:t.onFocus,input:function(e){e.target.composing||(t.count=e.target.value)}}}),a("span",{staticClass:"all",on:{click:t.all_handle}},[t._v(t._s(1==t.type||6==t.type?"全部提现":"全部"))])]),1==t.type||5==t.type&&1==t.open?a("p",{staticClass:"tips"},[t._v("需要扣除"+t._s(t.count)+t._s(t.yuan_withdraw_limit_name))]):3==t.type||4==t.type?a("p",{staticClass:"tips"},[t._v("手续费"+t._s(t.income_to_yuan_fee_rate)+"%")]):a("div",{staticClass:"h50"}),a("van-button",{attrs:{block:"",color:"#F15353",round:""},on:{click:t.confirm}},[t._v("确定")])],1)],1)},i=[],s=(a("a9e3"),{data:function(){return{text:"元积分提现",count:0,type:null,uid:"",income_to_yuan_fee_rate:"",income_name:"",yuan_name:"",income:"",yuan_withdraw_limit_name:"",yuan_withdraw_quota:0,usable_yuan:0,open:1}},activated:function(){this.type=Number(this.$route.params.num),String(this.$route.params.open)&&(this.open=Number(this.$route.params.open)),this.count=0,this.getData()},methods:{onFocus:function(){0==Number(this.count)&&(this.count="")},getData:function(){var t=this,e="";1==this.type||2==this.type||5==this.type?e="plugin.wise-yuan-trade.frontend.yuan-point.index":3!=this.type&&4!=this.type&&6!=this.type||(e="plugin.wise-yuan-trade.frontend.income-point.index"),$http.get(e,"","").then((function(e){if(e.result){var a=e.data;1==t.type||2==t.type||5==t.type?1==t.type||5==t.type?(t.yuan_name=a.yuan_name,t.yuan_withdraw_limit_name=a.yuan_withdraw_limit_name,t.yuan_withdraw_quota=a.yuan_withdraw_quota,t.usable_yuan=a.usable_yuan,1==t.type?t.text="".concat(a.yuan_name,"提现"):$http.get("plugin.wise-yuan-trade.frontend.income-point.index").then((function(e){var a=e.data;if(1!==e.result)return t.$toast(a.msg);t.text="转入".concat(a.income_name)}))):(t.yuan_withdraw_quota=a.yuan_withdraw_quota,t.yuan_withdraw_limit_name=a.yuan_withdraw_limit_name,t.text="会员转让"):(t.income=a.income,t.income_to_yuan_fee_rate=a.income_to_yuan_fee_rate,6==t.type?t.text="".concat(a.income_name,"提现"):4==t.type?(t.text="会员转让",t.income_to_yuan_fee_rate=a.income_mutual_transfer_fee_rate||0):t.text="转入".concat(a.yuan_name),t.income_name=a.income_name)}else t.$toast(e.msg)}))},all_handle:function(){1==this.type||5==this.type?this.count=this.usable_yuan:2==this.type?this.count=this.yuan_withdraw_quota:this.count=this.income},confirm:function(){var t=this,e="",a={amount:this.count};1==this.type?e="plugin.wise-yuan-trade.frontend.yuan-point.withdraw":2==this.type?(e="plugin.wise-yuan-trade.frontend.yuan-point.yuan-quota-transfer",a.uid=this.uid):4==this.type?(e="plugin.wise-yuan-trade.frontend.income-point.mutual-transfer",a.uid=this.uid):e=5==this.type?"plugin.wise-yuan-trade.frontend.yuan-point.yuan-to-income":6==this.type?"plugin.wise-yuan-trade.frontend.income-point.withdraw":"plugin.wise-yuan-trade.frontend.income-point.to-yuan",$http.post(e,a,"").then((function(e){t.$toast(e.msg),e.result&&(t.count=0,t.getData())}))}}}),o=s,u=(a("866a"),a("2877")),r=Object(u["a"])(o,n,i,!1,null,"3e59a4ee",null);e["default"]=r.exports},5624:function(t,e,a){var n=a("f0f5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("a0e20bb0",n,!0,{sourceMap:!1,shadowMode:!1})},"866a":function(t,e,a){"use strict";a("5624")},f0f5:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".consensus-activity-withdraw[data-v-3e59a4ee]{padding:.625rem .75rem}.consensus-activity-withdraw .member[data-v-3e59a4ee]{padding-bottom:1rem;border-bottom:1px solid #ccc;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:1.25rem}.consensus-activity-withdraw .member input[data-v-3e59a4ee]{border:none;margin-left:.7813rem}.consensus-activity-withdraw .h50[data-v-3e59a4ee]{height:1.5625rem}.consensus-activity-withdraw .tips[data-v-3e59a4ee]{color:#6e6e79;font-size:.8125rem;margin:.625rem 0 1.5625rem;text-align:left}.consensus-activity-withdraw .all[data-v-3e59a4ee]{color:#f15353;font-size:.8125rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:.625rem}.consensus-activity-withdraw .content[data-v-3e59a4ee]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1.3125rem 0 .9375rem;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;border-bottom:1px solid #ccc}.consensus-activity-withdraw .content input[data-v-3e59a4ee]{border:none;font-size:1.5rem;font-weight:700;width:100%}.consensus-activity-withdraw .fz26[data-v-3e59a4ee]{font-size:.8125rem}.consensus-activity-withdraw .left[data-v-3e59a4ee]{text-align:left}.consensus-activity-withdraw .main[data-v-3e59a4ee]{margin-top:.625rem;padding:.9375rem .7813rem;background:#fff;border-radius:.625rem}.consensus-activity-withdraw .head[data-v-3e59a4ee]{background:#fff;border-radius:.625rem;padding:1.0938rem .75rem;text-align:left}",""]),t.exports=e}}]);