Initial commit of akmon project
This commit is contained in:
78
pages/mine/mine.uvue
Normal file
78
pages/mine/mine.uvue
Normal file
@@ -0,0 +1,78 @@
|
||||
<template>
|
||||
<view class="mine-container">
|
||||
<view class="avatar-section">
|
||||
<image class="avatar" src="/static/logo.png" mode="aspectFit"></image>
|
||||
<text class="nickname">未登录用></text>
|
||||
</view>
|
||||
<view class="mine-list">
|
||||
<view class="mine-item">
|
||||
<text class="item-label">账号管理</text>
|
||||
</view>
|
||||
<view class="mine-item">
|
||||
<text class="item-label">设置</text>
|
||||
</view>
|
||||
<view class="mine-item">
|
||||
<text class="item-label">关于我们</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
onShow() {
|
||||
const token = uni.getStorageSync('token');
|
||||
console.log(token)
|
||||
if (token==null ||token=='') {
|
||||
console.log(token)
|
||||
uni.redirectTo({ url: '/pages/user/login' });
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.mine-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;background: #f8f9fa;
|
||||
}
|
||||
.avatar-section {
|
||||
margin-top: 80rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.avatar {
|
||||
width: 140rpx;
|
||||
height: 140rpx;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.08);
|
||||
}
|
||||
.nickname {
|
||||
margin-top: 20rpx;
|
||||
font-size: 36rpx;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
}
|
||||
.mine-list {
|
||||
width: 90%;
|
||||
margin-top: 60rpx;
|
||||
}
|
||||
.mine-item {
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
margin-bottom: 24rpx;
|
||||
padding: 36rpx 32rpx;
|
||||
font-size: 32rpx;
|
||||
color: #222;
|
||||
box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.04);
|
||||
}
|
||||
.item-label {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user