完善钱包模块,修改密码,导出助记词

This commit is contained in:
唐明明
2022-01-13 17:23:22 +08:00
parent ae0179af3c
commit 8eef1d2a4b
9 changed files with 220 additions and 152 deletions

View File

@@ -2,7 +2,7 @@
<view>
<!-- 私钥 -->
<view class="keys">
<view class="title">已接收OC Chain托管</view>
<view class="title">的ZH托管钱包</view>
<view class="key">{{key || '-'}}</view>
<view class="copykey" @click="copykey">复制我的私钥</view>
</view>
@@ -14,9 +14,9 @@
</view>
</view>
<!-- 免责说明 -->
<view class="liability">
<!-- <view class="liability">
<navigator url="/pages/wallet/cmsWithDraw">免责条款</navigator>
</view>
</view> -->
</view>
</template>
@@ -26,15 +26,26 @@
data() {
return {
key: "",
rules: []
rules: [
{
title: "什么是托管钱包?",
description: "托管钱包顾名思义就是用户把私钥和数字资产委托给其他机构管理,也就是就是通过中心化的方式安全管理并保存资产,本质上是与区块链所追求的去中心化相背离的。"
},
{
title: "什么是钱包私钥?",
description: "作为管理和使用加密货币最关键的东西,私钥对所有数字货币用户而言具有所有权,拥有私钥才能支配相应的加密资产。"
}
]
};
},
mounted() {
Promise.all([privatekey(this.$Route.query.password), keyrules()]).then(res => {
let privatekey = res[0],
keyrules = res[1]
this.key = privatekey.private_key
this.rules = keyrules
privatekey(this.$Route.query.password).then(res => {
this.key = res.private_key
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
},
methods:{
@@ -63,11 +74,11 @@
.key{
padding: $padding * 2 0;
text-align: center;
color: $mian-color;
color: $main-color;
word-wrap: break-word;
}
.copykey{
background-color: $mian-color;
background-color: $main-color;
color: white;
height: 95rpx;
line-height: 95rpx;
@@ -88,7 +99,7 @@
font-size: $title-size + 2;
}
.content{
color: $text-gray-lg;
color: $text-gray;
font-size: $title-size-m;
line-height: 40rpx;
}