|
@@ -1,4 +1,62 @@
|
|
<template>
|
|
<template>
|
|
- <div class="login">
|
|
|
|
|
|
+ <div class="container">
|
|
|
|
+ <div class="tag-container">
|
|
|
|
+ <van-tag v-for="item in walletData.words" :key="item" plain type="primary" text-color="#4765DD">{{ item }}</van-tag>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <div class="button-group" >
|
|
|
|
+
|
|
|
|
+ <a class="button-group-mnemonic a-link" > {{ $t('login.CopyMnemonic') }}</a>
|
|
|
|
+ <van-button round block type="primary" native-type="submit">
|
|
|
|
+ {{ $t("login.BackupComplete") }}
|
|
|
|
+ </van-button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
-</template>
|
|
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script setup>
|
|
|
|
+import { createAccent } from "@/api/path/login.api";
|
|
|
|
+
|
|
|
|
+const walletData = ref({})
|
|
|
|
+
|
|
|
|
+onMounted(async () => {
|
|
|
|
+ const { data } = await createAccent({});
|
|
|
|
+ walletData.value = JSON.parse(atob(data.content) )
|
|
|
|
+ console.log(data.value.words)
|
|
|
|
+})
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style scoped lang="less">
|
|
|
|
+
|
|
|
|
+.tag-container{
|
|
|
|
+ margin-top: 3px;
|
|
|
|
+ display: grid;
|
|
|
|
+ grid-template-columns: repeat(3, 1fr);
|
|
|
|
+ grid-gap: 16px;
|
|
|
|
+ padding: 27px;
|
|
|
|
+ .van-tag{
|
|
|
|
+ width: 87px;
|
|
|
|
+ height: 33px;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ }
|
|
|
|
+ .van-tag--plain{
|
|
|
|
+ background: #ECEFFC;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.button-group{
|
|
|
|
+ margin: 33px 17px 0 17px;
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ align-items: center;
|
|
|
|
+ .button-group-mnemonic{
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ margin-bottom: 21px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</style>
|