chunk-3177a48a.bd01afae9a2e2fe6fb2b.js 20 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3177a48a"],{1148:function(e,t,n){"use strict";var r=n("a691"),o=n("1d80");e.exports="".repeat||function(e){var t=String(o(this)),n="",u=r(e);if(u<0||u==1/0)throw RangeError("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(t+=t))1&u&&(n+=t);return n}},"285d":function(e,t,n){"use strict";var r=n("2f07"),o=n.n(r);o.a},"2f07":function(e,t,n){},"37be":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._m(0),n("div",{},[n("h3",{staticClass:"title"},[e._v("手续费分佣配置详情 "),n("el-button",{staticClass:"addClick",on:{click:e.appendHandleClose}},[e._v("添加")])],1),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.dataList,border:"","cell-style":{textAlign:"center"},"header-cell-style":{textAlign:"center"},"min-height":"150"}},[e._v(" > "),n("el-table-column",{attrs:{prop:"id",label:"ID",width:"50"}}),n("el-table-column",{attrs:{prop:"level",label:"等级",width:"180"}}),n("el-table-column",{attrs:{prop:"level_name",label:"等级名称"}}),n("el-table-column",{attrs:{prop:"child_count",label:"需满足的下级有效注册(人数)"}}),n("el-table-column",{attrs:{prop:"level_one_rate",label:"1级分佣(%)"}}),n("el-table-column",{attrs:{prop:"level_two_rate",label:"2级分佣(%)"}}),n("el-table-column",{attrs:{prop:"level_three_rate",label:"3级分佣(%)"}}),n("el-table-column",{attrs:{prop:"reward",label:"额外奖励金额 (USDT)"}}),n("el-table-column",{attrs:{prop:"added_by",label:"添加人"}}),n("el-table-column",{attrs:{prop:"updated_by",label:"更新人"}}),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(e.timestampToDatetime(t.row.created_at)))])]}}])}),e._v(". "),n("el-table-column",{attrs:{prop:"updated_at",label:"更新时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(e.timestampToDatetime(t.row.updated_at)))])]}}])}),n("el-table-column",{attrs:{prop:"status",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{on:{change:function(n){return e.derailClick(t.row)}},model:{value:t.row.is_status,callback:function(n){e.$set(t.row,"is_status",n)},expression:"scope.row.is_status"}})]}}])}),n("el-table-column",{attrs:{label:"操作",width:"300px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"handleIcon"},[n("el-button",{staticClass:"edit",on:{click:function(n){return e.editClick(t.row)}}},[e._v("编辑")]),n("el-button",{attrs:{type:"danger"},on:{click:function(n){return e.headDelete(t.row)}}},[e._v("删除")])],1)]}}])})],1)],1),n("el-dialog",{attrs:{title:"等级分佣设置",visible:e.appendPopup,width:"40%","before-close":e.appendHandleClose},on:{"update:visible":function(t){e.appendPopup=t}}},[n("div",{staticClass:"appendDetails"},[n("el-form",{ref:"compile",staticClass:"demo-ruleForm",attrs:{"status-icon":"",model:e.compile,rules:e.compile,"label-width":"200px"}},[n("el-form-item",{attrs:{label:"等级"}},[n("el-input",{staticClass:"number",attrs:{min:0,max:100,type:"number",placeholder:"请输入等级"},nativeOn:{keyup:function(t){return e.proving2(t)}},model:{value:e.compile.level,callback:function(t){e.$set(e.compile,"level",t)},expression:"compile.level"}})],1),n("el-form-item",{attrs:{label:"等级名字"}},[n("el-input",{attrs:{placeholder:"请输入等级名字"},model:{value:e.compile.level_name,callback:function(t){e.$set(e.compile,"level_name",t)},expression:"compile.level_name"}})],1),n("el-form-item",{attrs:{label:"需满足的下级有效注册(人数)"}},[n("el-input",{staticClass:"number",attrs:{min:0,max:100,type:"number",placeholder:"请输入需满足的下级有效注册"},nativeOn:{keyup:function(t){return e.proving2(t)}},model:{value:e.compile.child_count,callback:function(t){e.$set(e.compile,"child_count",t)},expression:"compile.child_count"}})],1),n("el-form-item",{attrs:{label:"额外奖励金额"}},[n("el-input",{staticClass:"number",attrs:{type:"number",oninput:"if(value>1000)value=1000",placeholder:"请输入额外奖励金额"},nativeOn:{keyup:function(t){return e.proving2(t)}},model:{value:e.compile.reward,callback:function(t){e.$set(e.compile,"reward",t)},expression:"compile.reward"}})],1),n("el-form-item",{attrs:{label:"1级分佣(%)"}},[n("el-input",{staticClass:"number",attrs:{min:0,max:100,type:"number",oninput:"if(value>100)value=100",placeholder:"请输入1级分佣"},model:{value:e.compile.level_one_rate,callback:function(t){e.$set(e.compile,"level_one_rate",t)},expression:"compile.level_one_rate"}})],1),n("el-form-item",{attrs:{label:"2级分佣(%)"}},[n("el-input",{staticClass:"number",attrs:{min:0,max:100,type:"number",oninput:"if(value>100)value=100",placeholder:"请输入2级分佣"},nativeOn:{keyup:function(t){return e.proving2(t)}},model:{value:e.compile.level_two_rate,callback:function(t){e.$set(e.compile,"level_two_rate",t)},expression:"compile.level_two_rate"}})],1),n("el-form-item",{attrs:{label:"3级分佣(%)"}},[n("el-input",{staticClass:"number",attrs:{min:0,max:100,type:"number",oninput:"if(value>100)value=100",placeholder:"请输入3级分佣"},nativeOn:{keyup:function(t){return e.proving2(t)}},model:{value:e.compile.level_three_rate,callback:function(t){e.$set(e.compile,"level_three_rate",t)},expression:"compile.level_three_rate"}})],1)],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.appendHandleClose}},[e._v("取 消")]),e.addButton?n("el-button",{attrs:{type:"primary"},on:{click:e.append}},[e._v("确 定")]):n("el-button",{attrs:{type:"primary"},on:{click:e.amend}},[e._v("确 定")])],1)])],1)},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header"},[n("h3",[e._v("邀请等级设置")]),n("p",{staticClass:"tips"},[e._v("根据等级,可获得的手续费的收益不同")])])}],u=(n("4160"),n("a9e3"),n("b680"),n("159b"),n("ade3")),a=n("f201"),l=n("9ea4"),i=n("c466"),c={name:"brokerage",components:{TopTitle:l["a"]},data:function(){return{dataList:[],appendPopup:!1,compile:{id:"",level:"",level_name:"",child_count:"",reward:"",level_one_rate:"",level_two_rate:"",level_three_rate:""},addButton:!0}},computed:{},watch:{},mounted:function(){this.install()},methods:Object(u["a"])({install:function(){var e=this;Object(a["b"])().then((function(t){var n=t.data.list,r=[];n.forEach((function(e){1==e.status?e.is_status=!0:e.is_status=!1,r.push(e)})),e.dataList=r}))},derailClick:function(e){var t=this;console.log(e.is_status);var n="";n=1==e.is_status?"1":"0";this.compile;var r={id:e.id},o={status:n};Object(a["v"])(r,o).then((function(e){t.install(),t.$message({type:"success",message:e.message})}))},timestampToDatetime:function(e){return Object(i["a"])(e,!0)},headDelete:function(e){var t=this;console.log(e);var n={id:e.id},r={status:2};this.$confirm("确定删除该条数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(a["v"])(n,r).then((function(e){t.install(),t.$message({type:"success",message:"删除成功!"})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},appendHandleClose:function(){this.appendPopup=!this.appendPopup,this.addButton=!0,this.compile={id:"",level:"",level_name:"",child_count:"",reward:"",level_one_rate:"",level_two_rate:"",level_three_rate:""}},editClick:function(e){this.appendPopup=!0,this.addButton=!1,this.compile=e},getBit:function(e,t){var n=Number(e);return n=n.toFixed(t),n},proving2:function(e){var t=window.event?e.keyCode:e.which;String.fromCharCode(t);189!=t&&109!=t||(this.$message.warning("禁止输入负数"),e.target.value=0)},append:function(){var e=this,t=this.compile,n={level:t.level,level_name:t.level_name,child_count:t.child_count,reward:t.reward,level_one_rate:t.level_one_rate,level_two_rate:t.level_two_rate,level_three_rate:t.level_three_rate};Object(a["u"])(n).then((function(t){e.install(),e.$message({type:"success",message:t.message}),e.appendHandleClose()}))},amend:function(){var e=this,t=this.compile,n={id:t.id},r={level:t.level,level_name:t.level_name,child_count:t.child_count,reward:t.reward,level_one_rate:t.level_one_rate,level_two_rate:t.level_two_rate,level_three_rate:t.level_three_rate};Object(a["v"])(n,r).then((function(t){e.install(),e.$message({type:"success",message:t.message}),e.appendHandleClose()}))}},"timestampToDatetime",(function(e){return Object(i["a"])(e,!0)})),beforeCreate:function(){},created:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},d=c,s=(n("285d"),n("2877")),p=Object(s["a"])(d,r,o,!1,null,"3ec1b72e",null);t["default"]=p.exports},"408a":function(e,t,n){var r=n("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},b680:function(e,t,n){"use strict";var r=n("23e7"),o=n("a691"),u=n("408a"),a=n("1148"),l=n("d039"),i=1..toFixed,c=Math.floor,d=function(e,t,n){return 0===t?n:t%2===1?d(e,t-1,n*e):d(e*e,t/2,n)},s=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},p=i&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!l((function(){i.call({})}));r({target:"Number",proto:!0,forced:p},{toFixed:function(e){var t,n,r,l,i=u(this),p=o(e),f=[0,0,0,0,0,0],b="",m="0",h=function(e,t){var n=-1,r=t;while(++n<6)r+=e*f[n],f[n]=r%1e7,r=c(r/1e7)},v=function(e){var t=6,n=0;while(--t>=0)n+=f[t],f[t]=c(n/e),n=n%e*1e7},_=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==f[e]){var n=String(f[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(p<0||p>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(b="-",i=-i),i>1e-21)if(t=s(i*d(2,69,1))-69,n=t<0?i*d(2,-t,1):i/d(2,t,1),n*=4503599627370496,t=52-t,t>0){h(0,n),r=p;while(r>=7)h(1e7,0),r-=7;h(d(10,r,1),0),r=t-1;while(r>=23)v(1<<23),r-=23;v(1<<r),h(1,1),v(2),m=_()}else h(0,n),h(1<<-t,0),m=_()+a.call("0",p);return p>0?(l=m.length,m=b+(l<=p?"0."+a.call("0",p-l)+m:m.slice(0,l-p)+"."+m.slice(l-p))):m=b+m,m}})},f201:function(e,t,n){"use strict";n.d(t,"U",(function(){return o})),n.d(t,"j",(function(){return u})),n.d(t,"zb",(function(){return a})),n.d(t,"B",(function(){return l})),n.d(t,"k",(function(){return i})),n.d(t,"vb",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"i",(function(){return s})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"e",(function(){return b})),n.d(t,"h",(function(){return m})),n.d(t,"b",(function(){return h})),n.d(t,"v",(function(){return v})),n.d(t,"u",(function(){return _})),n.d(t,"x",(function(){return O})),n.d(t,"w",(function(){return g})),n.d(t,"y",(function(){return j})),n.d(t,"sb",(function(){return w})),n.d(t,"fb",(function(){return x})),n.d(t,"ob",(function(){return y})),n.d(t,"o",(function(){return k})),n.d(t,"xb",(function(){return C})),n.d(t,"wb",(function(){return T})),n.d(t,"yb",(function(){return S})),n.d(t,"rb",(function(){return P})),n.d(t,"qb",(function(){return $})),n.d(t,"pb",(function(){return D})),n.d(t,"T",(function(){return E})),n.d(t,"tb",(function(){return F})),n.d(t,"R",(function(){return B})),n.d(t,"Q",(function(){return H})),n.d(t,"S",(function(){return N})),n.d(t,"A",(function(){return I})),n.d(t,"z",(function(){return L})),n.d(t,"t",(function(){return A})),n.d(t,"N",(function(){return J})),n.d(t,"P",(function(){return M})),n.d(t,"eb",(function(){return R})),n.d(t,"n",(function(){return U})),n.d(t,"a",(function(){return q})),n.d(t,"l",(function(){return z})),n.d(t,"d",(function(){return W})),n.d(t,"m",(function(){return G})),n.d(t,"O",(function(){return K})),n.d(t,"ib",(function(){return Q})),n.d(t,"nb",(function(){return V})),n.d(t,"jb",(function(){return X})),n.d(t,"lb",(function(){return Y})),n.d(t,"kb",(function(){return Z})),n.d(t,"gb",(function(){return ee})),n.d(t,"mb",(function(){return te})),n.d(t,"hb",(function(){return ne})),n.d(t,"db",(function(){return re})),n.d(t,"cb",(function(){return oe})),n.d(t,"Z",(function(){return ue})),n.d(t,"ab",(function(){return ae})),n.d(t,"bb",(function(){return le})),n.d(t,"H",(function(){return ie})),n.d(t,"D",(function(){return ce})),n.d(t,"C",(function(){return de})),n.d(t,"G",(function(){return se})),n.d(t,"F",(function(){return pe})),n.d(t,"E",(function(){return fe})),n.d(t,"I",(function(){return be})),n.d(t,"L",(function(){return me})),n.d(t,"K",(function(){return he})),n.d(t,"J",(function(){return ve})),n.d(t,"M",(function(){return _e})),n.d(t,"r",(function(){return Oe})),n.d(t,"p",(function(){return ge})),n.d(t,"s",(function(){return je})),n.d(t,"q",(function(){return we})),n.d(t,"V",(function(){return xe})),n.d(t,"Y",(function(){return ye})),n.d(t,"X",(function(){return ke})),n.d(t,"W",(function(){return Ce})),n.d(t,"ub",(function(){return Te}));var r=n("b775");function o(e){return Object(r["b"])({url:"/common-dic/update2",method:"POST",data:e})}function u(e){return Object(r["b"])({url:"/withdrawal-net/index",method:"get",params:e})}function a(e){return Object(r["b"])({url:"/withdrawal-net/create",method:"POST",data:e})}function l(e,t){return Object(r["b"])({url:"/withdrawal-net/update",method:"put",params:e,data:t})}function i(e){return Object(r["b"])({url:"/common-dic/index2",method:"get",params:e})}function c(e){return Object(r["b"])({url:"/withdrawal-net/delete",method:"delete",params:e})}function d(e){return Object(r["b"])({url:"/coin/index",method:"get",params:e})}function s(e,t){return Object(r["b"])({url:"/coin/update",method:"put",params:e,data:t})}function p(e){return Object(r["b"])({url:"/coin-recharge-net",method:"get",params:e})}function f(e){return Object(r["b"])({url:"/coin-recharge-net/delete",method:"delete",params:e})}function b(e){return Object(r["b"])({url:"/coin/net",method:"get",params:e})}function m(e){return Object(r["b"])({url:"/coin-recharge-net/create",method:"POST",data:e})}function h(e){return Object(r["b"])({url:"/invite-level/index",method:"get",params:e})}function v(e,t){return Object(r["b"])({url:"/invite-level/update",method:"put",params:e,data:t})}function _(e){return Object(r["b"])({url:"/invite-level/create",method:"POST",data:e})}function O(e){return Object(r["b"])({url:"/invite-profit-static/index",method:"get",params:e})}function g(e){return Object(r["b"])({url:"/invite-profit-static/detail",method:"get",params:e})}function j(e){return Object(r["b"])({url:"/invite-profit-static/profit",method:"get",params:e})}function w(e){return Object(r["b"])({url:"/wallet/transfer-log",method:"get",params:e})}function x(e){return Object(r["b"])({url:"/wallet/transfer-export",method:"get",responseType:"blob",params:e})}function y(e){return Object(r["b"])({url:"/wallet/flash-exchange-log",method:"get",params:e})}function k(e){return Object(r["b"])({url:"/wallet/flash-exchange-export",method:"get",responseType:"blob",params:e})}function C(e){return Object(r["b"])({url:"/withdraw/index",method:"get",params:e})}function T(e){return Object(r["b"])({url:"/withdraw/export",method:"get",responseType:"blob",params:e})}function S(e,t){return Object(r["b"])({url:"/withdraw/update",method:"put",params:e,data:t})}function P(e){return Object(r["b"])({url:"/wallet/operate-log",method:"get",params:e})}function $(e){return Object(r["b"])({url:"/wallet/operate",method:"POST",data:e})}function D(e){return Object(r["b"])({url:"/wallet/modify-wallet-operate-remark",method:"PATCH",data:e})}function E(e){return Object(r["b"])({url:"/wallet/operate-export",method:"get",responseType:"blob",params:e})}function F(e){return Object(r["b"])({url:"/withdraw/abandon",method:"POST",data:e})}function B(e){return Object(r["b"])({url:"/recharge/confirm",method:"POST",data:e})}function H(e){return Object(r["b"])({url:"/recharge/abandon",method:"POST",data:e})}function N(e){return Object(r["b"])({url:"/recharge/export",method:"get",responseType:"blob",params:e})}function I(e){return Object(r["b"])({url:"/invite-profit-static/log",method:"get",params:e})}function L(e){return Object(r["b"])({url:"/invite-profit-static/change-type",method:"get",params:e})}function A(e){return Object(r["b"])({url:"/futures-order/index",method:"get",params:e})}function J(e){return Object(r["b"])({url:"/futures-order/close",method:"POST",data:e})}function M(e){return Object(r["b"])({url:"/futures-order/cancel-close",method:"POST",data:e})}function R(e){return Object(r["b"])({url:"/coin-control/index",method:"get",params:e})}function U(e,t){return Object(r["b"])({url:"/coin-control/update",method:"put",params:e,data:t})}function q(e){return Object(r["b"])({url:"/coin-control/create",method:"post",data:e})}function z(e,t){return Object(r["b"])({url:"/coin-control/delete",method:"DELETE",params:e,data:t})}function W(e){return Object(r["b"])({url:"/coin-control/coin",method:"get",params:e})}function G(e){return Object(r["b"])({url:"/futures-order/close-fee",method:"get",params:e})}function K(e){return Object(r["b"])({url:"/futures-order/close-all",method:"POST",params:e})}function Q(e){return Object(r["b"])({url:"/tutorial/index",method:"get",params:e})}function V(e){return Object(r["b"])({url:"/tutorial-type/index",method:"get",params:e})}function X(e){return Object(r["b"])({url:"/tutorial-type/create",method:"POST",data:e})}function Y(e,t){return Object(r["b"])({url:"/tutorial-type/update",method:"put",params:e,data:t})}function Z(e){return Object(r["b"])({url:"/tutorial-type/delete",method:"delete",params:e})}function ee(e){return Object(r["b"])({url:"/tutorial/create",method:"POST",data:e})}function te(e,t){return Object(r["b"])({url:"/tutorial/update",method:"put",params:e,data:t})}function ne(e){return Object(r["b"])({url:"/tutorial/delete",method:"delete",params:e})}function re(e){return Object(r["b"])({url:"/task/index",method:"get",params:e})}function oe(e,t){return Object(r["b"])({url:"/task/update",method:"put",params:e,data:t})}function ue(e){return Object(r["b"])({url:"/task/create",method:"POST",data:e})}function ae(e){return Object(r["b"])({url:"/task/delete",method:"delete",params:e})}function le(e){return Object(r["b"])({url:"/task-member/index",method:"get",params:e})}function ie(e){return Object(r["b"])({url:"/option-order/index",method:"get",params:e})}function ce(e){return Object(r["b"])({url:"/option-coin/index",method:"get",params:e})}function de(e){return Object(r["b"])({url:"/option-coin/coin",method:"get",params:e})}function se(e,t){return Object(r["b"])({url:"/option-coin/update",method:"put",params:e,data:t})}function pe(e){return Object(r["b"])({url:"/option-coin/delete",method:"delete",params:e})}function fe(e){return Object(r["b"])({url:"/option-coin/create",method:"post",data:e})}function be(e){return Object(r["b"])({url:"/option-rule/index",method:"get",params:e})}function me(e,t){return Object(r["b"])({url:"/option-rule/update",method:"put",params:e,data:t})}function he(e){return Object(r["b"])({url:"/option-rule/delete",method:"delete",params:e})}function ve(e){return Object(r["b"])({url:"/option-rule/create",method:"post",data:e})}function _e(e){return Object(r["b"])({url:"/option-order/statistics",method:"get"})}function Oe(e){return Object(r["b"])({url:"/footer/index",method:"get",params:e})}function ge(e){return Object(r["b"])({url:"/footer/create",method:"post",data:e})}function je(e,t){return Object(r["b"])({url:"/footer/update",method:"put",params:e,data:t})}function we(e){return Object(r["b"])({url:"/footer/delete",method:"delete",params:e})}function xe(e){return Object(r["b"])({url:"/spread-level/index",method:"get",params:e})}function ye(e,t){return Object(r["b"])({url:"/spread-level/update",method:"put",params:e,data:t})}function ke(e){return Object(r["b"])({url:"/spread-level/delete",method:"delete",params:e})}function Ce(e){return Object(r["b"])({url:"/spread-level/create",method:"post",data:e})}function Te(e){return Object(r["b"])({url:"/withdraw-account/index",method:"get",params:e})}}}]);