【私域操盘手】 操盘手端UI - 个人中心
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<view class="header">
|
<view class="header">
|
||||||
<view class="title align-left">存客宝</view>
|
<view class="title align-left">存客宝</view>
|
||||||
<view class="header-icons">
|
<view class="header-icons">
|
||||||
<u-icon name="bell" size="56" color="#000000" class="icon-bell" @click="goToNotification"></u-icon>
|
<u-icon name="bell" size="50" color="#000000" class="icon-bell" @click="goToNotification"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<view class="header">
|
<view class="header">
|
||||||
<view class="title">我的</view>
|
<view class="title">我的</view>
|
||||||
<view class="header-icons">
|
<view class="header-icons">
|
||||||
<u-icon name="setting" size="26" class="icon-setting" @click="goToSetting"></u-icon>
|
<u-icon name="setting" size="50" color="#000000" class="icon-setting" @click="goToSetting"></u-icon>
|
||||||
<u-icon name="bell" size="26" class="icon-bell" @click="goToNotification"></u-icon>
|
<u-icon name="bell" size="50" color="#000000" class="icon-bell" @click="goToNotification"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -24,50 +24,46 @@
|
|||||||
<view class="user-info">
|
<view class="user-info">
|
||||||
<view class="username">卡若</view>
|
<view class="username">卡若</view>
|
||||||
<view class="account">账号: 84675209</view>
|
<view class="account">账号: 84675209</view>
|
||||||
</view>
|
|
||||||
<view class="edit-profile-btn" @click="editProfile">
|
<view class="edit-profile-btn" @click="editProfile">
|
||||||
编辑资料
|
编辑资料
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- 功能菜单列表 -->
|
<!-- 功能菜单列表 -->
|
||||||
<view class="menu-list">
|
<view class="menu-list">
|
||||||
<view class="menu-item" @click="navigateTo('/pages/device/index')">
|
<view class="menu-item" @click="navigateTo('/pages/device/index')">
|
||||||
<view class="menu-left">
|
<view class="menu-left">
|
||||||
<u-icon name="setting" size="28" color="#4080ff" class="menu-icon"></u-icon>
|
|
||||||
<text class="menu-title">设备管理</text>
|
<text class="menu-title">设备管理</text>
|
||||||
</view>
|
</view>
|
||||||
<u-icon name="arrow-right" size="20" color="#c8c9cc"></u-icon>
|
<u-icon name="arrow-right" size="30" color="#9fa6b1"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="menu-item" @click="navigateTo('/pages/wechat/index')">
|
<view class="menu-item" @click="navigateTo('/pages/wechat/index')">
|
||||||
<view class="menu-left">
|
<view class="menu-left">
|
||||||
<u-icon name="weixin-fill" size="28" color="#07c160" class="menu-icon"></u-icon>
|
|
||||||
<text class="menu-title">微信号管理</text>
|
<text class="menu-title">微信号管理</text>
|
||||||
</view>
|
</view>
|
||||||
<u-icon name="arrow-right" size="20" color="#c8c9cc"></u-icon>
|
<u-icon name="arrow-right" size="30" color="#9fa6b1"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="menu-item" @click="navigateTo('/pages/traffic/index')">
|
<view class="menu-item" @click="navigateTo('/pages/traffic/index')">
|
||||||
<view class="menu-left">
|
<view class="menu-left">
|
||||||
<u-icon name="wifi" size="28" color="#fa3534" class="menu-icon"></u-icon>
|
|
||||||
<text class="menu-title">流量池</text>
|
<text class="menu-title">流量池</text>
|
||||||
</view>
|
</view>
|
||||||
<u-icon name="arrow-right" size="20" color="#c8c9cc"></u-icon>
|
<u-icon name="arrow-right" size="30" color="#9fa6b1"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="menu-item" @click="navigateTo('/pages/content/index')">
|
<view class="menu-item" @click="navigateTo('/pages/content/index')">
|
||||||
<view class="menu-left">
|
<view class="menu-left">
|
||||||
<u-icon name="folder" size="28" color="#ff9900" class="menu-icon"></u-icon>
|
|
||||||
<text class="menu-title">内容库</text>
|
<text class="menu-title">内容库</text>
|
||||||
</view>
|
</view>
|
||||||
<u-icon name="arrow-right" size="20" color="#c8c9cc"></u-icon>
|
<u-icon name="arrow-right" size="30" color="#9fa6b1"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 退出登录按钮 -->
|
<!-- 退出登录按钮 -->
|
||||||
<view class="logout-btn" @click="handleLogout">
|
<view class="logout-btn" @click="handleLogout">
|
||||||
<u-icon name="arrow-left" color="#ff3c2a" size="18"></u-icon>
|
<image src="/static/images/icons/logout.svg" class="logout-icon"></image>
|
||||||
<text class="logout-text">退出登录</text>
|
<text class="logout-text">退出登录</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -103,7 +99,7 @@ export default {
|
|||||||
console.log('获取用户信息');
|
console.log('获取用户信息');
|
||||||
// 示例数据,实际应从API获取
|
// 示例数据,实际应从API获取
|
||||||
this.userInfo = {
|
this.userInfo = {
|
||||||
avatar: null, // 设置为 null,使用默认图标
|
avatar: 'https://images.unsplash.com/photo-1568602471122-7832951cc4c5?w=400&h=400&auto=format&fit=crop',
|
||||||
username: '卡若',
|
username: '卡若',
|
||||||
account: '84675209'
|
account: '84675209'
|
||||||
};
|
};
|
||||||
@@ -162,23 +158,29 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.profile-container {
|
.profile-container {
|
||||||
min-height: 100vh;
|
min-height: 90vh;
|
||||||
background-color: #f5f5f5;
|
background-color: #f9fafb;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-bottom: 150rpx; /* 为底部导航栏预留空间,从110rpx更新为150rpx */
|
padding-top: 50rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 40rpx;
|
padding: 25rpx 30rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 999;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 40rpx;
|
font-size: 45rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333;
|
color: #2664ec;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-icons {
|
.header-icons {
|
||||||
@@ -186,23 +188,24 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.icon-setting {
|
.icon-setting {
|
||||||
margin-right: 30rpx;
|
margin-right: 40rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-card {
|
.user-card {
|
||||||
margin: 20rpx;
|
margin: 35rpx;
|
||||||
|
margin-top: 120rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
padding: 40rpx;
|
padding: 50rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
|
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
.avatar-wrap {
|
.avatar-wrap {
|
||||||
width: 120rpx;
|
width: 180rpx;
|
||||||
height: 120rpx;
|
height: 180rpx;
|
||||||
margin-right: 30rpx;
|
margin-right: 30rpx;
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
@@ -226,29 +229,31 @@ export default {
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
.username {
|
.username {
|
||||||
font-size: 36rpx;
|
font-size: 45rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333;
|
color: #2664ec;
|
||||||
margin-bottom: 8rpx;
|
margin-bottom: 4rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.account {
|
.account {
|
||||||
font-size: 28rpx;
|
font-size: 32rpx;
|
||||||
color: #999;
|
color: #6b7280;
|
||||||
}
|
margin-bottom: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-profile-btn {
|
.edit-profile-btn {
|
||||||
padding: 12rpx 30rpx;
|
display: inline-block;
|
||||||
|
padding: 10rpx 25rpx;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.menu-list {
|
.menu-list {
|
||||||
margin: 20rpx;
|
margin: 35rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -259,7 +264,7 @@ export default {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 30rpx 40rpx;
|
padding: 30rpx 40rpx;
|
||||||
border-bottom: 2rpx solid #f5f5f5;
|
border-bottom: 2rpx solid #e5e5e5;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
@@ -269,10 +274,6 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.menu-icon {
|
|
||||||
margin-right: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-title {
|
.menu-title {
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
@@ -288,10 +289,15 @@ export default {
|
|||||||
margin: 60rpx auto;
|
margin: 60rpx auto;
|
||||||
width: 200rpx;
|
width: 200rpx;
|
||||||
|
|
||||||
|
.logout-icon {
|
||||||
|
width: 42rpx;
|
||||||
|
height: 42rpx;
|
||||||
|
margin-right: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.logout-text {
|
.logout-text {
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: #ff3c2a;
|
color: #ff3c2a;
|
||||||
margin-left: 10rpx;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
15
Cunkebao/static/images/icons/logout.svg
Normal file
15
Cunkebao/static/images/icons/logout.svg
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<!-- 门框 -->
|
||||||
|
<path d="M20 4H8C6.89543 4 6 4.89543 6 6V26C6 27.1046 6.89543 28 8 28H20"
|
||||||
|
stroke="#ff3c2a"
|
||||||
|
stroke-width="2"
|
||||||
|
stroke-linecap="round"/>
|
||||||
|
|
||||||
|
<!-- 箭头 -->
|
||||||
|
<path d="M26 16H12M26 16L21 11M26 16L21 21"
|
||||||
|
stroke="#ff3c2a"
|
||||||
|
stroke-width="2"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 508 B |
Reference in New Issue
Block a user