| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <template>
- <van-collapse-item name="hashCode" class="goods-info">
- <template #title>
- <div class="page-title"><img src="../../assets/icon-lianshangxinxi(3).png" alt="" />链上信息</div>
- </template>
- <div class="page-text" v-if="info.txHash">
- <div class="text-info">
- <span class="text1">Hash地址:</span>
- <span class="flex1"></span>
- <img @click="copy(info.txHash)" src="../../assets/svgs/copy_icon.svg" alt="" />
- <span class="van-ellipsis" style="direction: rtl; text-align: left">{{ info.txHash }}</span>
- </div>
- <div class="text-info">
- <span class="text1">区块高度: </span>
- <span class="flex1"></span>
- <span>{{ info.blockNumber }}</span>
- </div>
- <div class="text-info">
- <span class="text1">令牌ID: </span>
- <span class="flex1"></span>
- <img @click="copy(info.tokenId)" src="../../assets/svgs/copy_icon.svg" alt="" />
- <span class="van-ellipsis" style="direction: rtl; text-align: left">{{ info.tokenId }}</span>
- </div>
- </div>
- <div v-else class="textName">铸造者未设置</div>
- </van-collapse-item>
- </template>
- <script>
- export default {
- props: {
- info: {
- type: Object,
- default: () => {
- return {};
- }
- }
- },
- methods: {
- copy(text) {
- this.$copyText(text).then(
- e => {
- this.$toast.success('复制成功');
- console.log(e);
- },
- e => {
- this.$toast('复制失败');
- console.log(e);
- }
- );
- }
- }
- };
- </script>
- <style lang="less" scoped>
- /deep/.goods-info {
- .van-cell {
- // padding: 0 0;
- &::after {
- content: none;
- }
- }
- }
- .page-title {
- // padding: 0 16px;
- font-size: @font2;
- font-weight: bold;
- color: #ffffff;
- line-height: 28px;
- span {
- color: @text3;
- font-size: @font1;
- }
- }
- .page-title {
- font-size: @font2;
- font-weight: bold;
- color: #ffffff;
- line-height: 24px;
- display: flex;
- align-items: center;
- &:not(:first-child) {
- padding-top: 16px;
- }
- img {
- width: 18px;
- height: 18px;
- margin-right: 6px;
- }
- }
- .page-text {
- font-size: @font2;
- color: @text3;
- line-height: 28px;
- word-break: break-all;
- // margin-top: 10px;
- // p {
- // font-size: @font2;
- // color: #ffffff;
- // line-height: 28px;
- // // margin-top: 10px;
- // word-break: break-all;
- // }
- .text-info {
- .flex();
- .text1 {
- min-width: 80px;
- }
- .van-ellipsis {
- width: 200px;
- }
- img {
- width: 18px;
- height: 18px;
- flex-shrink: 0;
- margin-right: 6px;
- }
- }
- }
- </style>
|