This commit is contained in:
caolc
2023-05-06 11:18:15 +08:00
parent 8874f28bd4
commit fea1c29b96
10 changed files with 303 additions and 303 deletions

View File

@@ -3,18 +3,21 @@
<cu-custom class="main-totextbar bg-main-oil" bgColor="bg-main-oil">
<block slot="content">个人中心</block>
</cu-custom>
<view class="bg-img flex align-center" :style="'background-image: url('+mainURL+'user-info-bg.png);height:250upx;width:750upx'">
<view class="bg-img flex align-center"
:style="'background-image: url('+mainURL+'user-info-bg.png);height:250upx;width:750upx'">
<view class="position-re card-view">
<view class="position-ab">
<view class="cu-list text-white menu-avatar padding bg-transparent no-border">
<view class="cu-item bg-transparent no-border">
<view class="cu-avatar round xl " :style="'background-image: url('+mainURL+'default-avator.png)'">
<view class="cu-avatar round xl "
:style="'background-image: url('+mainURL+'default-avator.png)'">
</view>
<view class="content userInfoList padding-left">
<view class="margin-left-xs">{{userInfo.name}}</view>
<view class=" showIds " > <text class="text-sm"> {{userInfo.id}}</text></view>
<view class="cu-tag round bg-dark-main-color sm "> <text class="text-sm"> {{userInfo.userPhone}}</text></view>
<view class=" showIds "> <text class="text-sm"> {{userInfo.id}}</text></view>
<view class="cu-tag round bg-dark-main-color sm "> <text class="text-sm">
{{userInfo.userPhone}}</text></view>
</view>
</view>
</view>
@@ -78,9 +81,9 @@
return {
mainURL: this.global.mainURL,
userInfo: {},
channel:{},
accountName:''
channel: {},
accountName: ''
}
},
created() {
@@ -95,16 +98,18 @@
}
})
},
loginOut() {
async loginOut() {
// await cloudSiteApi.logout();
uni.clearStorage()
uni.reLaunch({
url: '/pages/login/boforeLogin/boforeLogin?type=1' //
})
},
getInfo() {
this.userInfo = uni.getStorageSync('loginUser')
this.accountName=uni.getStorageSync('siteOli'),
console.log(this.userInfo)
this.accountName = uni.getStorageSync('siteOli'),
console.log(this.userInfo)
// cloudSiteApi.personCenter().then(res => {
// if (res.code == 20000) {
// this.userInfo = res.data
@@ -131,20 +136,22 @@
</script>
<style scoped>
.userInfoList{
.userInfoList {
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-direction: column;
flex-direction: column;
}
.showIds{
border-radius: 27rpx;
padding: 0rpx 14rpx;
font-size: 15rpx;
line-height: 1.5;
margin-bottom: 3px;
.showIds {
border-radius: 27rpx;
padding: 0rpx 14rpx;
font-size: 15rpx;
line-height: 1.5;
margin-bottom: 3px;
margin-bottom: 10upx;
}
.cu-list+.cu-list {
margin-top: 0;
}
@@ -172,4 +179,4 @@
.bg-img .cu-list.menu>.cu-item::after {
border-bottom: 0;
}
</style>
</style>