| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a6578bf0"],{"0f62":function(t,e,o){t.exports=o.p+"static/img/usdt.5d129354.png"},1148:function(t,e,o){"use strict";var a=o("a691"),r=o("1d80");t.exports="".repeat||function(t){var e=String(r(this)),o="",s=a(t);if(s<0||s==1/0)throw RangeError("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(o+=e);return o}},2785:function(t,e,o){},"408a":function(t,e,o){var a=o("c6b6");t.exports=function(t){if("number"!=typeof t&&"Number"!=a(t))throw TypeError("Incorrect invocation");return+t}},"73af":function(t,e,o){"use strict";o("2785")},b680:function(t,e,o){"use strict";var a=o("23e7"),r=o("a691"),s=o("408a"),n=o("1148"),i=o("d039"),l=1..toFixed,c=Math.floor,u=function(t,e,o){return 0===e?o:e%2===1?u(t,e-1,o*t):u(t*t,e/2,o)},d=function(t){var e=0,o=t;while(o>=4096)e+=12,o/=4096;while(o>=2)e+=1,o/=2;return e},m=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i((function(){l.call({})}));a({target:"Number",proto:!0,forced:m},{toFixed:function(t){var e,o,a,i,l=s(this),m=r(t),p=[0,0,0,0,0,0],f="",h="0",g=function(t,e){var o=-1,a=e;while(++o<6)a+=t*p[o],p[o]=a%1e7,a=c(a/1e7)},b=function(t){var e=6,o=0;while(--e>=0)o+=p[e],p[e]=c(o/t),o=o%t*1e7},_=function(){var t=6,e="";while(--t>=0)if(""!==e||0===t||0!==p[t]){var o=String(p[t]);e=""===e?o:e+n.call("0",7-o.length)+o}return e};if(m<0||m>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(f="-",l=-l),l>1e-21)if(e=d(l*u(2,69,1))-69,o=e<0?l*u(2,-e,1):l/u(2,e,1),o*=4503599627370496,e=52-e,e>0){g(0,o),a=m;while(a>=7)g(1e7,0),a-=7;g(u(10,a,1),0),a=e-1;while(a>=23)b(1<<23),a-=23;b(1<<a),g(1,1),b(2),h=_()}else g(0,o),g(1<<-e,0),h=_()+n.call("0",m);return m>0?(i=h.length,h=f+(i<=m?"0."+n.call("0",m-i)+h:h.slice(0,i-m)+"."+h.slice(i-m))):h=f+h,h}})},ddfe:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-wrapper"},[a("el-card",{attrs:{shadow:"never"}},[a("el-row",{attrs:{gutter:15}},[a("el-col",{staticClass:"el-wallet",attrs:{md:24}},[a("el-col",{staticClass:"el-wallet-item",attrs:{md:8,sm:12}},[a("img",{staticClass:"usdt",attrs:{src:o("0f62"),alt:""}}),a("span",{staticClass:"info"},[t._v(" USDT总额:"+t._s(t.userInfo.usdt_num)),a("br"),t._v(" 保证金:"+t._s(t.userInfo.bond)+" ")])]),a("el-col",{attrs:{md:8,sm:12}}),a("el-col",{attrs:{md:8,sm:12}})],1)],1),a("el-row",{attrs:{gutter:15}},[a("el-col",{attrs:{md:24,sm:24}},[a("div",{staticClass:"tips"},[a("div",{staticClass:"title"},[t._v("提示:")]),a("div",{staticClass:"info",domProps:{innerHTML:t._s(t.config.coin_out_tips)}})]),a("div",{staticClass:"alert"},[a("el-alert",{attrs:{title:"请核对您的提币地址是否正确,以免对您对资产造成无必要的损失",type:"warning","show-icon":""}})],1),a("div",{staticClass:"wallet-contacts"},[a("span",{staticClass:"label"},[t._v("类型:")]),a("el-button-group",{staticClass:"el-types"},[a("el-button",{attrs:{size:"small",type:1==t.table.where.contact_type?"primary":"default"},on:{click:function(e){(t.table.where.contact_type=1)&&t.$refs.table.reload()}}},[t._v("USDT-TRC20 ")]),a("el-button",{attrs:{size:"small",type:2==t.table.where.contact_type?"primary":"default"},on:{click:function(e){(t.table.where.contact_type=2)&&t.$refs.table.reload()}}},[t._v("USDT-ERC20 ")])],1)],1),a("div",{staticClass:"wallet"},[a("el-form",{ref:"coinForm",attrs:{model:t.coinForm,rules:t.editRules,"label-width":"100px"}},[a("el-row",{attrs:{gutter:15}},[a("el-col",{attrs:{sm:16}},[a("el-form-item",{attrs:{label:"提币地址:",prop:"to_address"}},[a("el-input",{attrs:{placeholder:"请输入提币地址",clearable:""},model:{value:t.coinForm.to_address,callback:function(e){t.$set(t.coinForm,"to_address",e)},expression:"coinForm.to_address"}})],1),a("el-form-item",{attrs:{label:"提币数量:",prop:"num"}},[a("el-input",{attrs:{placeholder:"请输入提币数量",clearable:""},on:{input:function(e){return t.countFree()}},model:{value:t.coinForm.num,callback:function(e){t.$set(t.coinForm,"num",e)},expression:"coinForm.num"}},[a("template",{slot:"append"},[t._v("USDT")])],2)],1),a("el-form-item",{attrs:{label:"提币手续费:",prop:"free"}},[a("el-input",{attrs:{placeholder:"提币手续费",disabled:!0},model:{value:t.coinForm.free,callback:function(e){t.$set(t.coinForm,"free",e)},expression:"coinForm.free"}},[a("template",{slot:"append"},[t._v("USDT")])],2),a("span",{staticClass:"ele-text-placeholder"},[t._v("手续费"+t._s(t.config.coin_out_free)+"%,会依照市场价格浮动汇率而随时进行调整")])],1),a("el-form-item",{attrs:{label:"交易密码:",prop:"trade_password"}},[a("el-input",{attrs:{type:"password",placeholder:"请输入交易密码",clearable:""},model:{value:t.coinForm.trade_password,callback:function(e){t.$set(t.coinForm,"trade_password",e)},expression:"coinForm.trade_password"}})],1),a("el-form-item",{attrs:{label:"谷歌验证码:",prop:"google_code"}},[a("el-input",{attrs:{placeholder:"请输入谷歌验证码",clearable:""},model:{value:t.coinForm.google_code,callback:function(e){t.$set(t.coinForm,"google_code",e)},expression:"coinForm.google_code"}})],1),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticClass:"submit",attrs:{type:"primary"},on:{click:function(e){return t.withdrawSubmit()}}},[t._v("提交申请 ")])],1)],1)],1)],1)],1)])],1),a("ele-data-table",{ref:"table",attrs:{config:t.table,choose:t.choose,height:"calc(100vh - 315px)","highlight-current-row":""},on:{"update:choose":function(e){t.choose=e}},scopedSlots:t._u([{key:"default",fn:function(e){e.index;return[a("el-table-column",{attrs:{prop:"time_text",label:"提币时间","show-overflow-tooltip":"","min-width":"150"}}),a("el-table-column",{attrs:{prop:"to_address",label:"提币地址","show-overflow-tooltip":"","min-width":"250"}}),a("el-table-column",{attrs:{prop:"contact_type",label:"类型",resizable:!1,"min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return[1==o.contact_type?a("span",[t._v("TRC20")]):2==o.contact_type?a("span",[t._v("ERC20")]):t._e()]}}],null,!0)}),a("el-table-column",{attrs:{prop:"num",label:"提币量(USDT)","show-overflow-tooltip":"","min-width":"150"}}),a("el-table-column",{attrs:{prop:"free",label:"手续费(USDT)","show-overflow-tooltip":"","min-width":"150"}}),a("el-table-column",{attrs:{prop:"status",label:"状态",resizable:!1,"min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return[1==o.status?a("span",{staticClass:"ele-text-success"},[t._v("成功")]):3==o.status?a("span",{staticClass:"ele-text-primary"},[t._v("待审核")]):4==o.status?a("span",{staticClass:"ele-text-warning"},[t._v("待打款")]):a("span",{staticClass:"ele-text-danger"},[t._v("失败")])]}}],null,!0)})]}}])})],1)],1)},r=[],s=(o("b680"),{name:"SysWithdraw",data:function(){return{loading:!1,table:{url:"/coinlog/index",where:{type:1,coin_type:1,contact_type:1,change_type:2},page:{limit:30}},config:{coin_in_tips:""},coinForm:{contact_type:1},editRules:{to_address:[{required:!0,message:"请输入提币地址",trigger:"blur"}],num:[{required:!0,message:"请输入提币数量",trigger:"blur"}],trade_password:[{required:!0,message:"请输入交易密码",trigger:"blur"}],google_code:[{required:!0,message:"请输入谷歌验证码",trigger:"blur"}]},timerId:null,choose:[],userInfo:{}}},created:function(){this.getData(),this.getConfig()},mounted:function(){this.getDataList()},methods:{getDataList:function(){var t=this;clearInterval(this.timerId);var e=13e3+parseInt(2e3*Math.random());this.timerId=setInterval((function(){t.$refs.table&&t.$refs.table.reload()}),e)},copy:function(t){var e=this;e.$message.closeAll(),this.$copyText(t).then((function(t){e.$message.success("复制成功")}),(function(t){e.$message.error("复制失败")}))},countFree:function(){this.coinForm.num>0&&(this.coinForm.free=this.config.coin_out_free>0?parseFloat(this.config.coin_out_free*this.coinForm.num/100).toFixed(2):"0.00")},getData:function(){var t=this,e=this.$loading({lock:!0});this.$http.get("/member/info",{}).then((function(o){e.close(),!0===o.data.success?t.userInfo=o.data.data:t.$message.error(o.data.msg)})).catch((function(o){e.close(),t.$message.error(o.message)}))},getConfig:function(){var t=this,e=this.$loading({lock:!0});this.$http.post("/index/tradeConfig",{}).then((function(o){e.close(),!0===o.data.success?t.config=o.data.data:t.$message.error(o.data.msg)})).catch((function(o){e.close(),t.$message.error(o.message)}))},withdrawSubmit:function(){var t=this,e=this;this.$refs["coinForm"].validate((function(o){o&&t.$confirm("确定要提交该提现请求吗?","提示",{type:"warning"}).then((function(){var o=t.$loading({lock:!0});e.coinForm.contact_type=e.table.where.contact_type,e.coinForm.change_type=2,t.$http.post("/trade/withdraw",e.coinForm).then((function(a){o.close(),!0===a.data.success?(t.$message.success(a.data.msg),setTimeout((function(){e.coinForm.trade_password="",e.coinForm.google_code="",e.getData(),e.$refs.table.reload()}),1200)):t.$message.error(a.data.msg)})).catch((function(e){o.close(),t.$message.error(e.message)}))})).catch((function(){return 0}))}))}}}),n=s,i=(o("73af"),o("2877")),l=Object(i["a"])(n,a,r,!1,null,"5c33c9ac",null);e["default"]=l.exports}}]);
|