You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
2.1 KiB
105 lines
2.1 KiB
<template>
|
|
<view class="">
|
|
<navigation :showBack="true">
|
|
{{i18n.backupMneTit}}
|
|
</navigation>
|
|
<view class="main">
|
|
<view class="title">
|
|
{{i18n.pcopy}}<br>{{i18n.pcopy2}}
|
|
</view>
|
|
<view class="mnemonic">
|
|
<view class="mnemonicBlock u-rela" v-for="(item,index) in mnemonics" :key="index">
|
|
<text>{{ item }}</text>
|
|
<view class="number u-abso" v-text="index+1<10 ? ((index+1)) : index+1"></view>
|
|
</view>
|
|
</view>
|
|
<view class="title2">
|
|
{{i18n.booster}}
|
|
</view>
|
|
<u-button class="custom-style" @click="test">{{i18n.copied}}</u-button>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
import cont from "@/components/navigation/navigation.vue"
|
|
import token from '@/utils/TokenUtil'
|
|
export default {
|
|
data() {
|
|
return {
|
|
mnemonics:[],
|
|
goWhat:false,
|
|
};
|
|
},
|
|
methods: {
|
|
// 获取词语
|
|
getWrod(){
|
|
var walletInfo = uni.getStorageSync('word');
|
|
console.log(walletInfo)
|
|
console.log(walletInfo,44444444)
|
|
this.mnemonics=walletInfo.split(' ')
|
|
console.log(this.mnemonics)
|
|
},
|
|
getWrod2(){
|
|
uni.setStorageSync('word',this.userObj.mnemonic);
|
|
this.mnemonics=this.userObj.mnemonic.split(' ')
|
|
console.log(this.mnemonics,88888)
|
|
},
|
|
test(){
|
|
if(this.goWhat){
|
|
uni.navigateTo({
|
|
url:'../backUpWord/index',
|
|
})
|
|
}else{
|
|
uni.navigateTo({
|
|
url:'../backUp3/index',
|
|
})
|
|
}
|
|
},
|
|
|
|
},
|
|
onLoad(option) {
|
|
if(JSON.stringify(option) != "{}"){
|
|
const item = JSON.parse(option.item);
|
|
console.log(item,7777777)
|
|
this.userObj = item
|
|
this.goWhat=true;
|
|
this.getWrod2()
|
|
}else{
|
|
console.log(11111111)
|
|
this.getWrod()
|
|
}
|
|
},
|
|
computed: {
|
|
i18n() {
|
|
return this.$t('index')
|
|
|
|
},
|
|
}
|
|
};
|
|
</script>
|
|
<style scoped>
|
|
.custom-style {
|
|
height: 112rpx;
|
|
text-align: center;
|
|
color: #fff;
|
|
background-color: #5B53FF !important;
|
|
border-radius: 40rpx;
|
|
margin-top: 90rpx;
|
|
}
|
|
.u-default-hover{
|
|
background-color: #5B53FF !important;
|
|
border-radius: 40rpx !important;
|
|
color: #fff !important;
|
|
border: none;
|
|
}
|
|
</style>
|
|
|
|
<style>
|
|
|
|
@import './index.css';
|
|
|
|
</style>
|
|
|