个人中心头像
This commit is contained in:
@@ -4,8 +4,9 @@
|
|||||||
<view class="info-box">
|
<view class="info-box">
|
||||||
<image src="@/static/user/user_back.png" mode="aspectFill" />
|
<image src="@/static/user/user_back.png" mode="aspectFill" />
|
||||||
<view class="user-flex">
|
<view class="user-flex">
|
||||||
<image class="cover" @click="onBtn('Setting', {})" :src="userInfo.avatar || require('@/static/user/cover.png')"
|
<image class="cover" @click="onBtn('Setting', {})"
|
||||||
mode="aspectFill" />
|
:src="userInfo.avatar || require('@/static/user/cover.png')" mode="aspectFill" />
|
||||||
|
|
||||||
<view class="user-content">
|
<view class="user-content">
|
||||||
<view class="name">{{ userInfo.nickname }}</view>
|
<view class="name">{{ userInfo.nickname }}</view>
|
||||||
<view class="tabs">
|
<view class="tabs">
|
||||||
@@ -14,7 +15,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="chainAddress" v-if="userInfo.addr">
|
<view class="chainAddress" v-if="userInfo.addr">
|
||||||
<text @click="copy(userInfo.addr)">区块地址:{{userInfo.addr.substring(0,5) + '****' + userInfo.addr.substring(userInfo.addr.length - 5)}}</text>
|
<text
|
||||||
|
@click="copy(userInfo.addr)">区块地址:{{userInfo.addr.substring(0,5) + '****' + userInfo.addr.substring(userInfo.addr.length - 5)}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -113,7 +115,8 @@
|
|||||||
<view class="wordsCont-title">导出助记词</view>
|
<view class="wordsCont-title">导出助记词</view>
|
||||||
<view class="wordsCont-tips">请务必抄下助记词并存在安全的地方,若助记词丢失,重装或换设备登录时将无法查看历史消息!若助记词被他人获取,将可能获取你的信息!</view>
|
<view class="wordsCont-tips">请务必抄下助记词并存在安全的地方,若助记词丢失,重装或换设备登录时将无法查看历史消息!若助记词被他人获取,将可能获取你的信息!</view>
|
||||||
<view class="wordsCont-text">{{mnemonic}}</view>
|
<view class="wordsCont-text">{{mnemonic}}</view>
|
||||||
<image class="wordsCont-close" @click="wordsShow = false" src="@/static/icon/userCloes.png" mode="widthFix"></image>
|
<image class="wordsCont-close" @click="wordsShow = false" src="@/static/icon/userCloes.png"
|
||||||
|
mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
</slot>
|
</slot>
|
||||||
</u-modal>
|
</u-modal>
|
||||||
@@ -133,21 +136,21 @@
|
|||||||
return {
|
return {
|
||||||
cardText: [],
|
cardText: [],
|
||||||
userInfo: {
|
userInfo: {
|
||||||
nickname : '',
|
nickname: '',
|
||||||
addr : '',
|
addr: '',
|
||||||
avatar : '',
|
avatar: '',
|
||||||
isOpenVip : '',
|
isOpenVip: '',
|
||||||
},
|
},
|
||||||
identity : {
|
identity: {
|
||||||
button_cover_url: '',
|
button_cover_url: '',
|
||||||
cover_url : '',
|
cover_url: '',
|
||||||
identity_text : ''
|
identity_text: ''
|
||||||
},
|
},
|
||||||
account : {
|
account: {
|
||||||
glz : 0.00,
|
glz: 0.00,
|
||||||
dt : 0.00
|
dt: 0.00
|
||||||
},
|
},
|
||||||
mnemonic : '',
|
mnemonic: '',
|
||||||
wordsShow: false
|
wordsShow: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -165,10 +168,10 @@
|
|||||||
});
|
});
|
||||||
this.cardText = res.identity_array
|
this.cardText = res.identity_array
|
||||||
this.userInfo = {
|
this.userInfo = {
|
||||||
nickname : res.nickname,
|
nickname: res.nickname,
|
||||||
addr : res.addr,
|
addr: res.addr,
|
||||||
avatar : res.avatar,
|
avatar: res.avatar,
|
||||||
isOpenVip : res.is_open_vip,
|
isOpenVip: res.is_open_vip,
|
||||||
}
|
}
|
||||||
this.identity = res.identity
|
this.identity = res.identity
|
||||||
this.account = res.account
|
this.account = res.account
|
||||||
@@ -181,14 +184,14 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 导出助记词
|
// 导出助记词
|
||||||
onMnemonic(){
|
onMnemonic() {
|
||||||
chainSeed().then(res => {
|
chainSeed().then(res => {
|
||||||
this.mnemonic = res.seed
|
this.mnemonic = res.seed
|
||||||
this.wordsShow = true
|
this.wordsShow = true
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
icon : 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -203,9 +206,11 @@
|
|||||||
logOut() {
|
logOut() {
|
||||||
uni.removeStorage({
|
uni.removeStorage({
|
||||||
key: 'isnew',
|
key: 'isnew',
|
||||||
success: () =>{
|
success: () => {
|
||||||
this.$store.commit('setToken', '');
|
this.$store.commit('setToken', '');
|
||||||
this.$Router.replaceAll({name: 'Auth'})
|
this.$Router.replaceAll({
|
||||||
|
name: 'Auth'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -237,7 +242,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
updateApp(){
|
updateApp() {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '检查更新'
|
title: '检查更新'
|
||||||
})
|
})
|
||||||
@@ -245,7 +250,7 @@
|
|||||||
// 获取系统版本号
|
// 获取系统版本号
|
||||||
getVersions({
|
getVersions({
|
||||||
platform: plus.os.name,
|
platform: plus.os.name,
|
||||||
version : plus.runtime.version
|
version: plus.runtime.version
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
if (res.update) {
|
if (res.update) {
|
||||||
@@ -290,9 +295,9 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title : "提示",
|
title: "提示",
|
||||||
content : "当前已是最新版本",
|
content: "当前已是最新版本",
|
||||||
showCancel : false,
|
showCancel: false,
|
||||||
})
|
})
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -349,6 +354,7 @@
|
|||||||
border: solid 6rpx white;
|
border: solid 6rpx white;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-content {
|
.user-content {
|
||||||
@@ -379,8 +385,10 @@
|
|||||||
font-size: $title-size + 8;
|
font-size: $title-size + 8;
|
||||||
@extend .nowrap;
|
@extend .nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabs {
|
.tabs {
|
||||||
padding-top: 10rpx;
|
padding-top: 10rpx;
|
||||||
|
|
||||||
&-item {
|
&-item {
|
||||||
background: rgba($color: #000000, $alpha: 0.3);
|
background: rgba($color: #000000, $alpha: 0.3);
|
||||||
font-size: $title-size-sm - 4;
|
font-size: $title-size-sm - 4;
|
||||||
@@ -490,6 +498,7 @@
|
|||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
padding: $padding;
|
padding: $padding;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: $title-size-lg;
|
font-size: $title-size-lg;
|
||||||
|
|
||||||
@@ -501,10 +510,12 @@
|
|||||||
margin-bottom: 2rpx;
|
margin-bottom: 2rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.num {
|
.num {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: $title-size + 10;
|
font-size: $title-size + 10;
|
||||||
padding: $padding/3 0 0;
|
padding: $padding/3 0 0;
|
||||||
|
|
||||||
text {
|
text {
|
||||||
font-size: 70%;
|
font-size: 70%;
|
||||||
padding-left: 10rpx;
|
padding-left: 10rpx;
|
||||||
@@ -553,6 +564,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 助记词弹框 */
|
/* 助记词弹框 */
|
||||||
.wordsCont {
|
.wordsCont {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/__uniappscan.js
vendored
2
unpackage/dist/dev/app-plus/__uniappscan.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/app-service.js
vendored
2
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/app-view.js
vendored
2
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/view.css
vendored
2
unpackage/dist/dev/app-plus/view.css
vendored
File diff suppressed because one or more lines are too long
6
unpackage/dist/dev/app-plus/view.umd.min.js
vendored
6
unpackage/dist/dev/app-plus/view.umd.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user