25 .preview .value span {
39 word-break: break-all;
47 word-break: break-word;
53 word-break: break-word;
70 background-image: url("../assets/img/backgroundHead/succeed.svg");
71 background-size: 320px 80px;
74 background-image: url("../assets/img/backgroundHead/pending.svg");
75 background-size: 320px 80px;
78 background-image: url("../assets/img/backgroundHead/fail.svg");
79 background-size: 320px 80px;
82 color:rgba(255,255,255,0.50);
85 text-transform: uppercase;
100 <div class="bg-gray warp-chlid">
101 <section class="header bg-header">
102 <i class="iconfont icon-back" @click="$router.go(-1)"></i>
103 <p >{{ $t('transactionDetail.title') }}</p>
106 <section class="panel">
107 <div class="tx-header"
108 v-bind:class="classObject">
109 <p class="value">{{transaction.direct}}{{transaction.val}}</p>
110 <small class="header-text" v-if="!transaction.status">
111 {{ $t('transactionDetail.fail') }}
113 <small class="header-text" v-else-if="transaction.hasOwnProperty('blockTimestamp')">
114 {{ $t('transactionDetail.success') }}
116 <small class="header-text" v-else>
117 {{ $t('transactionDetail.pending') }}
121 <div class="transaction">
122 <table style="margin-bottom: 20px">
126 {{ $t('transactionDetail.transactionID') }}
129 <p>{{transaction.hash}}</p>
133 <td colspan="2"><div class="divider"></div></td>
138 {{ $t('transactionDetail.assetId') }}
140 <td class="asset value">
141 <p>{{currentAsset.asset.assetId}}</p>
146 {{ $t('transactionDetail.time') }}
149 <div v-if="transaction.hasOwnProperty('blockTimestamp')">
150 {{transaction.submissionTimestamp | moment}}
159 {{ $t('transactionDetail.blockHeight') }}
162 <p v-if="transaction.blockHeight != undefined">{{transaction.blockHeight}}</p>
168 {{ $t('transactionDetail.blockSize') }}
171 <p>{{transaction.size}}</p>
176 {{ $t('transactionDetail.fee') }}(BTM)
179 <p>{{transaction.fee}}</p>
182 <tr v-if="transaction.type =='vote' || transaction.type =='veto' ">
183 <td colspan="2"><div class="divider"></div></td>
185 <tr v-if="transaction.type =='vote' || transaction.type =='veto'">
187 {{ $t('listVote.bpName') }}
190 <p>{{transaction.vName}}</p>
193 <tr v-if="transaction.type =='vote'">
195 {{ $t('listVote.voteVotes') }}
198 <p>{{transaction.vAmount}}</p>
201 <tr v-if="transaction.type =='crossChain'">
202 <td colspan="2"><div class="divider"></div></td>
204 <tr v-if="transaction.type =='crossChain'">
206 {{ $t('crossChain.direction') }}
209 <p>{{transaction.cDirection}}</p>
213 <td colspan="2"><div class="divider"></div></td>
215 <tr :key="'input'+index" v-for="(input, index) in transaction.inputs">
216 <td class="label">{{ $t('transactionDetail.sendAddress') }}{{transaction.inputs.length > 1 ? index+1 : ''}}</td>
217 <td class="value">{{input.address}}<span v-if="input.address == selfAddress"> {{ $t('transactionDetail.myAddress') }}</span></td>
219 <tr :key="'output'+ index" v-for="(output, index) in transaction.outputs">
220 <td class="label">{{ $t('transactionDetail.receiveAddress') }}{{transaction.outputs.length > 1 ? index+1 : ''}}</td>
221 <td class="value">{{output.address}}<span v-if="output.address == selfAddress"> {{ $t('transactionDetail.myAddress') }}</span></td>
229 <small class="footer color-grey">{{ $t('transactionDetail.tips') }}</small>
234 import { mapState, mapGetters } from 'vuex'
252 classObject: function () {
254 'success-header': this.transaction.status && this.transaction.hasOwnProperty('blockTimestamp'),
255 'pending-header': this.transaction.status && !this.transaction.hasOwnProperty('blockTimestamp') ,
256 'fail-header': !this.transaction.status
269 let params = this.$route.params;
271 let transaction = params.transaction;
272 if(this.netType === 'vapor'){
273 this.selfAddress = this.currentAccount.vpAddress;
275 this.selfAddress = this.currentAccount.address;
277 console.log(params.transaction)
278 if(transaction.type =='vote' || transaction.type =='veto'){
279 const node =_.find(this.listVote, {pubKey: transaction.pubkey})
280 transaction.vName = node.name
282 this.transaction = transaction