chunk-4b60774f.65c94546.js 5.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b60774f"],{"0f62":function(t,e,s){t.exports=s.p+"static/img/usdt.5d129354.png"},"2bbb":function(t,e,s){"use strict";s("613a")},"613a":function(t,e,s){},6820:function(t,e,s){"use strict";s.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:s("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_in_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"},[1==t.table.where.contact_type?a("div",{staticClass:"address"},[a("p",[a("span",{staticClass:"label"},[t._v("存币地址:")]),t._v(" "),a("span",[t._v(t._s(t.userInfo.trc_address))])]),t._v(" "),a("span",{staticClass:"copy",on:{click:function(e){return t.copy(t.userInfo.trc_address)}}},[t._v("复制")])]):t._e(),2==t.table.where.contact_type?a("div",{staticClass:"address"},[a("p",[a("span",{staticClass:"label"},[t._v("存币地址:")]),t._v(" "),a("span",[t._v(t._s(t.userInfo.erc_hexaddress))])]),t._v(" "),a("span",{staticClass:"copy",on:{click:function(e){return t.copy(t.userInfo.erc_hexaddress)}}},[t._v("复制")])]):t._e(),1==t.table.where.contact_type?a("div",{staticClass:"qrcode-box"},[a("img",{staticClass:"qrcode",attrs:{src:t.userInfo.trc_qrcode,alt:""}})]):2==t.table.where.contact_type?a("div",{staticClass:"qrcode-box"},[a("img",{staticClass:"qrcode",attrs:{src:t.userInfo.erc_qrcode,alt:""}})]):t._e()])])],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:"from_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 s=e.row;return[1==s.contact_type?a("span",[t._v("TRC20")]):2==s.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:"status",label:"状态",resizable:!1,"min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[1==s.status?a("span",{staticClass:"ele-text-success"},[t._v("成功")]):a("span",{staticClass:"ele-text-danger"},[t._v("失败")])]}}],null,!0)})]}}])})],1)],1)},o=[],n={name:"SysDeposit",data:function(){return{loading:!1,table:{url:"/coinlog/index",where:{type:1,coin_type:1,contact_type:1,change_type:1},page:{limit:30}},config:{coin_in_tips:""},formData:{contact_type:1},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=12e3+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("复制失败")}))},getData:function(){var t=this,e=this.$loading({lock:!0});this.$http.get("/member/info",{}).then((function(s){e.close(),!0===s.data.success?t.userInfo=s.data.data:t.$message.error(s.data.msg)})).catch((function(s){e.close(),t.$message.error(s.message)}))},getConfig:function(){var t=this,e=this.$loading({lock:!0});this.$http.post("/index/tradeConfig",{}).then((function(s){e.close(),!0===s.data.success?t.config=s.data.data:t.$message.error(s.data.msg)})).catch((function(s){e.close(),t.$message.error(s.message)}))}}},c=n,l=(s("2bbb"),s("2877")),r=Object(l["a"])(c,a,o,!1,null,"41adcdbd",null);e["default"]=r.exports}}]);