<glyph glyph-name="icon--receive" unicode="" d="M0-128v341.276454h340.423263v-341.276454z m84.636561 84.920958h171.150141v171.662056H84.636561z m383.879131-84.807199V341.312004H0v85.319113h553.948564v-469.255124h468.572571v-85.319114z m469.937677 213.240904v255.957341h-170.638227v-255.957341h-85.319114v341.276454h341.73149v-341.276454z m-254.990391 469.255124v341.276454h340.423263v-341.276454z m84.75032 84.807199h171.036383V811.135922h-171.036383zM468.515692 554.609787v341.276454h85.319113v-341.276454zM0 554.609787v341.276454h340.423263v-341.276454z m84.636561 84.807199h171.150141V811.135922H84.636561z" horiz-adv-x="1024" />
+ <glyph glyph-name="icon--succeed" unicode="" d="M512 384m-512 0a512 512 0 1 1 1024 0 512 512 0 1 1-1024 0ZM437.333333 219.925333l-45.248 45.248-120.682666 120.682667 45.269333 45.269333 120.661333-120.704 256.448 256.469334 45.269334-45.269334-301.696-301.696z" horiz-adv-x="1024" />
+
+
+ <glyph glyph-name="icon--error" unicode="" d="M512 384m-512 0a512 512 0 1 1 1024 0 512 512 0 1 1-1024 0ZM473.6 230.4a38.4 38.4 0 1 1 38.4 38.4 38.4 38.4 0 0 1-38.4-38.4zM537.792 307.2L550.4 576h-76.8l12.608-268.8z" horiz-adv-x="1024" />
+
+
</font>
--- /dev/null
+<svg id="Group_7714" data-name="Group 7714" xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
+ <defs>
+ <style>
+ .cls-1 {
+ fill: rgba(230,0,0,0.08);
+ }
+
+ .cls-2 {
+ fill: #e60000;
+ }
+ </style>
+ </defs>
+ <circle id="Ellipse_126" data-name="Ellipse 126" class="cls-1" cx="24" cy="24" r="24"/>
+ <g id="错误" transform="translate(-438.6 -241)">
+ <path id="Path_20349" data-name="Path 20349" class="cls-2" d="M462.6,667.4m-1.8,0a1.8,1.8,0,1,0,1.8-1.8A1.8,1.8,0,0,0,460.8,667.4Z" transform="translate(0 -395.2)"/>
+ <path id="Path_20350" data-name="Path 20350" class="cls-2" d="M463.809,268.6,464.4,256h-3.6l.591,12.6Z"/>
+ </g>
+</svg>
--- /dev/null
+<svg id="Group_7714" data-name="Group 7714" xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
+ <defs>
+ <style>
+ .cls-1 {
+ fill: rgba(3,91,212,0.08);
+ }
+
+ .cls-2 {
+ fill: #035bd4;
+ }
+ </style>
+ </defs>
+ <circle id="Ellipse_126" data-name="Ellipse 126" class="cls-1" cx="24" cy="24" r="24"/>
+ <path id="Union_332" data-name="Union 332" class="cls-2" d="M3412.192-6191.617h0l-2.121-2.121-5.657-5.657,2.122-2.122,5.656,5.658,12.021-12.022,2.122,2.122-14.142,14.142Z" transform="translate(-3391.692 6223.308)"/>
+</svg>
cancel: '取消发送',
emptyPassword: '密码不能为空',
unit: '单位',
+ assetId:'资产ID',
emptyTo: '地址不能为空',
noneBTM: '错误的BTM数量',
transferAmount: '转账金额',
totalTip: '转账金额+矿工费用',
success: '交易发送成功',
from:'发送账户',
- to:'接收地址'
+ to:'接收地址',
+ view:'展示全部',
+ hide:'隐藏全部'
},
receive:{
address: '地址',
cancel: 'Cancel',
emptyPassword: 'Password can not be empty.',
unit: 'unit',
+ assetId: 'Asset Id',
emptyTo: 'Empty address',
noneBTM: 'Error BTM quantity',
transferAmount: 'Amount',
success: 'Transaction sent successfully',
confirmTransaction:'Confirm Transaction',
from:'From',
- to:'To'
+ to:'To',
+ view:'View All',
+ hide:'Hide All'
},
receive:{
address: 'Address',
}
@font-face {font-family: "iconfont";
- src: url('./fonts/iconfont.eot?t=1552960629612'); /* IE9 */
- src: url('./fonts/iconfont.eot?t=1552960629612#iefix') format('embedded-opentype'), /* IE6-IE8 */
- url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAlQAAsAAAAAETAAAAkDAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCEWAqReI4kATYCJANICyYABCAFhG0HgiobbA7IHpIkyIMDCgAAJFAKRVDt99mzux/p3EUBu6so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XyZ15OdIIJwXPL/PfkjxaN7ktbe8TDi/K5d5WVNepjl5YCuHzu2oGDsWLUW7iL//MP8wxwjFoPjcq7rf+mBgwdmQSBA9eUCpNQP+4FiQhogtaF6Wds3lKO+I4lqq2BKdVVIN3eFD/kKAPkOTwdQ7UE5lPq1v0ZOppuf8r4BqPZLa6qbBfIGpk6g69FKm4OPTMpRbUa3oE1zS9BvUBtTgdQP7eb4My96MgvnBd6wUSWvean8Vduvt8eO+S0Cfx4MfThtsKfi1aIivqZEO4JXOFRW2l0V5FcWw/EfMkCS3pATz3RmjBU5l9A2j6gWY/Zu0crZyJKXVuWsZCQN8zBL9KWwQF/LqOlYgHXomxltaxSX75iwQEUxidXmwwhDRxhJ32uYoT+CBfpbRs2c7xR1RgNltB2IxBo7locGy7fQchutJDqnEBoFa2SsyYZl2+tolV0vtyhZJxNFW6wa1kgMGTj4f7mYNtKWWeSxTlSJbTaGYCysgSiKctB6PUuYLKyWVtgGqlkyjRo0iPnIO1DBGgCznQVNzhY4lQidpghqKLCMmKdtsNbw69BU7PTkLAPO/RGk0CysNC8nDDHQ4BHIxYRxpHNXZa/VRCpiNmVlEO6oBcuAUKSsNL1ZYBFMcjItmoLNQOoJ5kxGGaTuY0YlBi5eaTj2CUffhbr4OHgQkFDQoMOA+VJQ2IELDz4CJB5JQBIBPySHBgxQqGmFLro8xJpoIz2FjnrfqtLY1PbOmGG8etZKy9J/vd04CQ0LWmmj8mMLa7JpWOMIFgvNWJdVHc2yzaYxqmpb7CYTa7GNQyhOLmlleZJcr6fFaJ1yhc5uwriNL410yaIpLaxJyU6a53oFrZlIAwA=') format('woff2'),
- url('./fonts/iconfont.woff?t=1552960629612') format('woff'),
- url('./fonts/iconfont.ttf?t=1552960629612') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
- url('./fonts/iconfont.svg?t=1552960629612#iconfont') format('svg'); /* iOS 4.1- */
+ src: url('./fonts/iconfont.eot?t=1553508284090'); /* IE9 */
+ src: url('./fonts/iconfont.eot?t=1553508284090#iefix') format('embedded-opentype'), /* IE6-IE8 */
+ url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAmAAAsAAAAAEjwAAAkyAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCEdAqTQI8sATYCJANQCyoABCAFhG0HgkgbNg8jESaMlE72Fwe8iXXK4IWpKuGx6lWvMATCCCBwxH2GEwJLmxZen577HES0hs7e3j8HEFRSQFbEKHQlC0PCpI5AJuwKfAEwPG3u3xHG3aJZRd2yuFgUS7OZfzdt0AbWgdMZFSs8DqP7F0CAX5v20deERphUeeNz+ldP4FFSWGZZrvz/+7k6jViItnlbL+/P3/1vJopLo9JoRA4hiXjboXrIYj0TCxBhmzHhTKKIL1aVV3s5BIip1E6mzfOWEWLRINTtjFvWEdYs2IE2IdT7wqEWuYtHaK6Za8Cd9P1lgI4hGDxF77po8/SNTOrmdhfrWUexMjBQrs4FvB0FCrQDC3JW9BxHc9ye0rFUalkA+KwlmO6ku9g5VgkZKFbm8ckFG+5q8fAJCImISUjJIJMssuXIlRf98Xw0ncL9ms1Dt+ekEOj2pTDQHUih0B1KYaE7AhYhMQAkAYBkAEAyASBZAJBsAEgOJlJILsDiJA8Akg8AKQCAFAJAigAgxWCIAPnhkGYwFuYp6BBadzKl9dbzCfZGkhtlTAsQ1XaT1I/zM/d8SVqYnUZWFxVrofp+kczOir0Ul83PFdaJYz8NrA1Di1ZKLNNeQ5Bk3cCejTWuC/dcwy4g8Uq8TMgwIhpTKsWqWSqVWIk7SSk9R5oWMYSzrIY3s3noEqNg9l71q2s/fl6opOmoARIDGQQ17nTuvXrVRW7Rat7KODcyxj22Xba2F0QxMoMee85URxv10YAya3bqv3zers9UotcFS7sYN9jL7A1kehKJvlSq707Rb6Rff3g/0u3Awyk9iQHDRNkeKhWpEuOXlXovoURPAksMRAZZNIZL6yro7WwyA+KcKA6TdPU08EiGyJDoiQwMttLEd/d3qOXVO0n1+53G8W67/eKAXgcV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JcNZfwpW8SEy+VlNzJpY5tLnBVJX8S+87xOUWbbaaT8w8b41qy5azTNnSa518g/hETTUGsHPKwUzcNAA=') format('woff2'),
+ url('./fonts/iconfont.woff?t=1553508284090') format('woff'),
+ url('./fonts/iconfont.ttf?t=1553508284090') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
+ url('./fonts/iconfont.svg?t=1553508284090#iconfont') format('svg'); /* iOS 4.1- */
}
.iconfont {
.icon-receive:before {
content: "\e616";
}
+/*.icon-succeed:before {*/
+ /*content: "\e617";*/
+/*}*/
+/*.icon-error:before {*/
+ /*content: "\e618";*/
+/*}*/
+
.color-black {
color: #010101;
}
background-color: #E60000;
}
+.btn-warning {
+ background-color: #E60000;
+}
+
.btn-close {
color: #ffffff;
font-weight: bold;
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
+
+.icon{
+ width: 48px;
+ height: 48px;
+ margin: 10px auto 20px;
+}
+.icon-success{
+ background-image: url('../../assets/img/icon/success.svg');
+}
+ .icon-error{
+ background-image: url('../../assets/img/icon/error.svg');
+ }
</style>
<template>
<div class="modal-mask" v-if="show">
<div class="modal-wrapper">
<div class="modal-container">
+ <div :class="icon">
+ </div>
<div class="modal-header color-black">
<slot name="header">
<div class="modal-footer">
<slot name="footer">
- <a class="btn btn-warning" @click="closeDialog()">
+ <a :class="btn" @click="closeDialog()">
{{ confirm }}
</a>
</slot>
confirm: {
type: String,
default: "OK"
+ },
+ type:{
+ type: String,
+ default: 'error'
}
},
+ computed: {
+ icon: function () {
+ switch(this.type){
+ case "error":
+ return "icon icon-error"
+ default:
+ return "icon icon-success"
+ }
+ },
+ btn: function () {
+ switch(this.type){
+ case "error":
+ return "btn btn-warning"
+ default:
+ return "btn btn-primary"
+ }
+ },
+
+ },
methods: {
showDialog: function() {
this.show = true;
if (op.confirm) {
data.confirm = op.confirm;
}
+ if (op.type) {
+ data.type = op.type;
+ }
instance = new Vue({
data: data,
methods: {
header: this.header,
body: this.body,
confirm: this.confirm,
+ type: this.type,
},
on: {
onClose: this.onClose,
}
};
-export default dialogInstance;
\ No newline at end of file
+export default dialogInstance;
setupClipboard() {
this.clipboard.on("success", e => {
this.$dialog.show({
+ type: 'success',
header: this.$t("dialog.header"),
body: this.$t("dialog.copy.success")
});
.then(ret => {
loader.hide();
this.$dialog.show({
- body: this.$t("transfer.success")
+ type: 'success',
+ body: this.$t("transfer.success")
});
this.$router.push('/')
})