245 lines
5.7 KiB
HTML
245 lines
5.7 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="zh-CN">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>我的</title>
|
||
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
||
|
|
<script>
|
||
|
|
tailwind.config = {
|
||
|
|
theme: {
|
||
|
|
extend: {
|
||
|
|
colors: {
|
||
|
|
primary: '#FF6B35',
|
||
|
|
secondary: '#FFD93D'
|
||
|
|
},
|
||
|
|
borderRadius: {
|
||
|
|
'none': '0px',
|
||
|
|
'sm': '2px',
|
||
|
|
DEFAULT: '4px',
|
||
|
|
'md': '8px',
|
||
|
|
'lg': '12px',
|
||
|
|
'xl': '16px',
|
||
|
|
'2xl': '20px',
|
||
|
|
'3xl': '24px',
|
||
|
|
'full': '9999px',
|
||
|
|
'button': '4px'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
|
|
<link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet">
|
||
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||
|
|
<style>
|
||
|
|
body {
|
||
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||
|
|
background-color: #ffffff;
|
||
|
|
color: #333333;
|
||
|
|
padding-top: 60px;
|
||
|
|
padding-bottom: 60px;
|
||
|
|
}
|
||
|
|
.nav-bar {
|
||
|
|
position: fixed;
|
||
|
|
top: 0;
|
||
|
|
width: 100%;
|
||
|
|
height: 60px;
|
||
|
|
background-color: #ffffff;
|
||
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
z-index: 1000;
|
||
|
|
}
|
||
|
|
.tab-bar {
|
||
|
|
position: fixed;
|
||
|
|
bottom: 0;
|
||
|
|
width: 100%;
|
||
|
|
height: 60px;
|
||
|
|
background-color: #ffffff;
|
||
|
|
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(4, 1fr);
|
||
|
|
z-index: 1000;
|
||
|
|
}
|
||
|
|
.tab-item {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
font-size: 12px;
|
||
|
|
color: #999999;
|
||
|
|
}
|
||
|
|
.tab-item.active {
|
||
|
|
color: #FF6B35;
|
||
|
|
}
|
||
|
|
.tab-item i {
|
||
|
|
font-size: 20px;
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
.service-icon {
|
||
|
|
width: 48px;
|
||
|
|
height: 48px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
border-radius: 12px;
|
||
|
|
background-color: #f8f8f8;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
.service-icon i {
|
||
|
|
font-size: 24px;
|
||
|
|
color: #FF6B35;
|
||
|
|
}
|
||
|
|
.menu-item {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
padding: 16px 20px;
|
||
|
|
border-bottom: 1px solid #f0f0f0;
|
||
|
|
}
|
||
|
|
.menu-item:last-child {
|
||
|
|
border-bottom: none;
|
||
|
|
}
|
||
|
|
.menu-item i {
|
||
|
|
width: 24px;
|
||
|
|
height: 24px;
|
||
|
|
font-size: 18px;
|
||
|
|
margin-right: 12px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
color: #FF6B35;
|
||
|
|
}
|
||
|
|
.badge {
|
||
|
|
background-color: #FF6B35;
|
||
|
|
color: white;
|
||
|
|
border-radius: 12px;
|
||
|
|
padding: 2px 6px;
|
||
|
|
font-size: 12px;
|
||
|
|
margin-left: 6px;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="nav-bar">
|
||
|
|
<h1 class="text-xl font-bold">我的</h1>
|
||
|
|
</div>
|
||
|
|
<div class="px-5 py-6">
|
||
|
|
<div class="flex items-center mb-8">
|
||
|
|
<img src="https://ai-public.mastergo.com/ai/img_res/3136456d4da4446b36a65233b223c52c.jpg" alt="用户头像" class="w-16 h-16 rounded-full mr-4">
|
||
|
|
<div>
|
||
|
|
<div class="flex items-center mb-1">
|
||
|
|
<h2 class="text-lg font-semibold mr-2">李小雨</h2>
|
||
|
|
<span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full">黄金会员</span>
|
||
|
|
</div>
|
||
|
|
<p class="text-sm text-gray-500">生活需要仪式感,购物也是如此</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="bg-white rounded-xl shadow-sm p-4 mb-6">
|
||
|
|
<div class="grid grid-cols-4 gap-4 mb-4">
|
||
|
|
<div class="text-center">
|
||
|
|
<div class="service-icon mx-auto">
|
||
|
|
<i class="fas fa-wallet"></i>
|
||
|
|
</div>
|
||
|
|
<span class="text-sm">待付款</span>
|
||
|
|
<span class="badge">3</span>
|
||
|
|
</div>
|
||
|
|
<div class="text-center">
|
||
|
|
<div class="service-icon mx-auto">
|
||
|
|
<i class="fas fa-truck"></i>
|
||
|
|
</div>
|
||
|
|
<span class="text-sm">待收货</span>
|
||
|
|
<span class="badge">1</span>
|
||
|
|
</div>
|
||
|
|
<div class="text-center">
|
||
|
|
<div class="service-icon mx-auto">
|
||
|
|
<i class="fas fa-comment-dots"></i>
|
||
|
|
</div>
|
||
|
|
<span class="text-sm">待评价</span>
|
||
|
|
<span class="badge">5</span>
|
||
|
|
</div>
|
||
|
|
<div class="text-center">
|
||
|
|
<div class="service-icon mx-auto">
|
||
|
|
<i class="fas fa-undo"></i>
|
||
|
|
</div>
|
||
|
|
<span class="text-sm">退款/售后</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="flex justify-between items-center pt-4 border-t border-gray-100">
|
||
|
|
<div class="flex items-center">
|
||
|
|
<i class="fas fa-receipt text-primary mr-2"></i>
|
||
|
|
<span>我的订单</span>
|
||
|
|
</div>
|
||
|
|
<div class="flex items-center text-gray-400">
|
||
|
|
<span class="text-sm mr-1">查看全部订单</span>
|
||
|
|
<i class="fas fa-chevron-right text-xs"></i>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="bg-white rounded-xl shadow-sm p-4 mb-6">
|
||
|
|
<div class="grid grid-cols-2 gap-4">
|
||
|
|
<div class="flex items-center">
|
||
|
|
<div class="w-12 h-12 rounded-full bg-blue-50 flex items-center justify-center mr-3">
|
||
|
|
<i class="fas fa-ticket-alt text-blue-500 text-xl"></i>
|
||
|
|
</div>
|
||
|
|
<div>
|
||
|
|
<div class="font-medium">优惠券</div>
|
||
|
|
<div class="text-sm text-gray-500">3 张可用</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="flex items-center">
|
||
|
|
<div class="w-12 h-12 rounded-full bg-green-50 flex items-center justify-center mr-3">
|
||
|
|
<i class="fas fa-coins text-green-500 text-xl"></i>
|
||
|
|
</div>
|
||
|
|
<div>
|
||
|
|
<div class="font-medium">积分</div>
|
||
|
|
<div class="text-sm text-gray-500">1,280 分</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="bg-white rounded-xl shadow-sm overflow-hidden">
|
||
|
|
<div class="menu-item">
|
||
|
|
<i class="fas fa-map-marker-alt"></i>
|
||
|
|
<span class="flex-1">地址管理</span>
|
||
|
|
<i class="fas fa-chevron-right text-gray-400"></i>
|
||
|
|
</div>
|
||
|
|
<div class="menu-item">
|
||
|
|
<i class="fas fa-headset"></i>
|
||
|
|
<span class="flex-1">客服中心</span>
|
||
|
|
<i class="fas fa-chevron-right text-gray-400"></i>
|
||
|
|
</div>
|
||
|
|
<div class="menu-item">
|
||
|
|
<i class="fas fa-question-circle"></i>
|
||
|
|
<span class="flex-1">帮助与反馈</span>
|
||
|
|
<i class="fas fa-chevron-right text-gray-400"></i>
|
||
|
|
</div>
|
||
|
|
<div class="menu-item">
|
||
|
|
<i class="fas fa-cog"></i>
|
||
|
|
<span class="flex-1">设置</span>
|
||
|
|
<i class="fas fa-chevron-right text-gray-400"></i>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="tab-bar">
|
||
|
|
<div class="tab-item">
|
||
|
|
<i class="fas fa-home"></i>
|
||
|
|
<span>首页</span>
|
||
|
|
</div>
|
||
|
|
<div class="tab-item">
|
||
|
|
<i class="fas fa-th-large"></i>
|
||
|
|
<span>分类</span>
|
||
|
|
</div>
|
||
|
|
<div class="tab-item">
|
||
|
|
<i class="fas fa-shopping-cart"></i>
|
||
|
|
<span>购物车</span>
|
||
|
|
</div>
|
||
|
|
<div class="tab-item active">
|
||
|
|
<i class="fas fa-user"></i>
|
||
|
|
<span>我的</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|