webpackJsonp([23],{HQMs:function(s,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("ZS1H"),i=e("lGGP"),d={components:{AoAssetReturn:a.a},data:function(){return{address_title:this.$t("asset.address_title"),address_txt:this.$t("asset.address_txt"),address_btn:this.$t("asset.address_btn"),address_td:this.$t("asset.address_td"),options:[],value:"",address:"",message:"",id:1,page:1,list:[],is_down:!1,showSave:!1}},mounted:function(){var s=this;this.id=this.$store.state.__data.id,this.getAddressList(),Object(i.n)({id:this.id}).then(function(t){t.unshift({id:-1,name:"USDT"}),s.options=t.map(function(s){return{value:s.id,label:s.name}})})},methods:{add:function(){var s=this;this.showSave=!1;var t={type:this.id,value:this.value,address:this.address,message:this.message};Object(i.a)(t).then(function(t){s.list.unshift(t)})},del:function(s){var t=this,e=this.list[s].id;Object(i.g)({id:e}).then(function(e){t.list.splice(s,1)})},edit:function(s){this.showSave=!0,this.saveIndex=s;var t=this.list[this.saveIndex],e=this.options.find(function(s){return s.label==t.currency});this.value=e.value,this.address=t.address,this.message=t.message},save:function(){var s=this,t={id:this.list[this.saveIndex].id,type:this.id,value:this.value,address:this.address,message:this.message};Object(i.h)(t).then(function(t){s.showSave=!1,s.list[s.saveIndex]=t})},more:function(){1!=this.is_down&&(this.page++,this.getAddressList())},getAddressList:function(){var s=this;Object(i.k)({id:this.id,page:this.page}).then(function(t){t.length>0?s.list=s.list.concat(t):s.is_down=!0})}}},n={render:function(){var s=this,t=s.$createElement,e=s._self._c||t;return e("div",{staticClass:"ao-asset-money"},[e("ao-asset-return"),s._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"header"},[e("div",{staticClass:"col"},[e("div",[s._v(s._s(s.address_title))]),s._v(" "),e("el-select",{attrs:{placeholder:s.address_txt[0]},model:{value:s.value,callback:function(t){s.value=t},expression:"value"}},s._l(s.options,function(s){return e("el-option",{key:s.value,attrs:{label:s.label,value:s.value}})}),1)],1),s._v(" "),e("div",{staticClass:"col col-5"},[e("div",[s._v(s._s(s.address_txt[1]))]),s._v(" "),e("el-input",{attrs:{placeholder:s.address_txt[2]},model:{value:s.address,callback:function(t){s.address=t},expression:"address"}})],1),s._v(" "),e("div",{staticClass:"col col-5"},[e("div",[s._v(s._s(s.address_txt[3]))]),s._v(" "),e("el-input",{attrs:{placeholder:s.address_txt[2]},model:{value:s.message,callback:function(t){s.message=t},expression:"message"}})],1)]),s._v(" "),e("div",{staticClass:"btn"},[e("el-button",{attrs:{type:"primary"},on:{click:s.add}},[s._v(s._s(s.address_btn[0]))]),s._v(" "),e("el-button",{directives:[{name:"show",rawName:"v-show",value:s.showSave,expression:"showSave"}],attrs:{type:"primary"},on:{click:s.save}},[s._v(s._s(s.address_btn[1]))])],1),s._v(" "),e("div",{staticClass:"title"},[s._v(s._s(s.address_txt[4]))]),s._v(" "),e("div",{staticClass:"table"},[e("div",{staticClass:"theader"},[e("div",{staticClass:"th"},[e("div",{staticClass:"td left"},[s._v(s._s(s.address_td[0]))]),s._v(" "),e("div",{staticClass:"td td-3 center"},[s._v(s._s(s.address_td[1]))]),s._v(" "),e("div",{staticClass:"td td-3 center"},[s._v(s._s(s.address_td[2]))]),s._v(" "),e("div",{staticClass:"td td-2 right"},[s._v(s._s(s.address_td[3]))])])]),s._v(" "),e("div",{staticClass:"tbody"},s._l(s.list,function(t,a){return e("div",{key:a,staticClass:"tr border"},[e("div",{staticClass:"td left"},[s._v(s._s(t.currency))]),s._v(" "),e("div",{staticClass:"td td-3 center"},[s._v(s._s(t.address))]),s._v(" "),e("div",{staticClass:"td td-3 center"},[s._v(s._s(t.message))]),s._v(" "),e("div",{staticClass:"td td-2 right"},[e("span",{staticClass:"btn",on:{click:function(t){return s.del(a)}}},[s._v(s._s(s.address_btn[2]))]),s._v(" "),e("span",{staticClass:"btn",on:{click:function(t){return s.edit(a)}}},[s._v(s._s(s.address_btn[3]))])])])}),0),s._v(" "),e("div",{staticClass:"more",on:{click:s.more}},[s._v(s._s(s.is_down?s.$t("person.no_more"):s.$t("person.more")))])])])],1)},staticRenderFns:[]};var r=e("C7Lr")(d,n,!1,function(s){e("ebSG")},null,null);t.default=r.exports},ebSG:function(s,t){}});
//# sourceMappingURL=23.6ef1b7566187fe8f6f2c.js.map