314 lines
6.0 KiB
Vue
314 lines
6.0 KiB
Vue
<template>
|
|
<view class="page-container">
|
|
<!-- 状态栏占位 -->
|
|
<view class="status-bar"></view>
|
|
|
|
<!-- 页面内容 -->
|
|
<view class="content">
|
|
<!-- 空状态 -->
|
|
<view class="empty-state">
|
|
<view class="empty-icon" :style="{ color: '#FF9800' }">🌳</view>
|
|
<text class="empty-title">体系页面</text>
|
|
<text class="empty-desc">Material Design风格的体系页面开发中</text>
|
|
|
|
<!-- 功能预览 -->
|
|
<view class="feature-preview">
|
|
<view class="feature-card elevation-1" @click="previewFeature(0)">
|
|
<view class="feature-icon">📚</view>
|
|
<text class="feature-title">知识体系</text>
|
|
<text class="feature-desc">完整的技术知识结构</text>
|
|
</view>
|
|
<view class="feature-card elevation-1" @click="previewFeature(1)">
|
|
<view class="feature-icon">🔗</view>
|
|
<text class="feature-title">分类导航</text>
|
|
<text class="feature-desc">按技术领域分类浏览</text>
|
|
</view>
|
|
<view class="feature-card elevation-1" @click="previewFeature(2)">
|
|
<view class="feature-icon">🎯</view>
|
|
<text class="feature-title">学习路径</text>
|
|
<text class="feature-desc">系统化的学习路线图</text>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 开发进度 -->
|
|
<view class="progress-section">
|
|
<text class="progress-title">开发进度</text>
|
|
<view class="progress-bar">
|
|
<view class="progress-fill" :style="{ width: '20%' }"></view>
|
|
</view>
|
|
<text class="progress-text">20% - 设计阶段</text>
|
|
</view>
|
|
|
|
<!-- 返回按钮 -->
|
|
<view class="action-buttons">
|
|
<view class="btn btn-outline" @click="goBack">
|
|
<text class="btn-text">返回首页</text>
|
|
</view>
|
|
<view class="btn btn-primary" @click="checkUpdate" :style="{ background: '#FF9800' }">
|
|
<text class="btn-text">了解更多</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
features: [{'icon': '📚', 'title': '知识体系', 'desc': '完整的技术知识结构'}, {'icon': '🔗', 'title': '分类导航', 'desc': '按技术领域分类浏览'}, {'icon': '🎯', 'title': '学习路径', 'desc': '系统化的学习路线图'}]
|
|
}
|
|
},
|
|
|
|
onLoad() {
|
|
console.log('体系页面加载')
|
|
},
|
|
|
|
methods: {
|
|
// 返回首页
|
|
goBack() {
|
|
uni.switchTab({
|
|
url: '/pages/index/index'
|
|
})
|
|
},
|
|
|
|
// 检查更新
|
|
checkUpdate() {
|
|
uni.showToast({
|
|
title: '功能开发中,敬请期待',
|
|
icon: 'none',
|
|
duration: 2000
|
|
})
|
|
},
|
|
|
|
// 预览功能
|
|
previewFeature(index) {
|
|
const feature = this.features[index]
|
|
uni.showModal({
|
|
title: feature.title,
|
|
content: feature.desc,
|
|
showCancel: false,
|
|
confirmText: '知道了'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.page-container {
|
|
min-height: 100vh;
|
|
background: #F5F5F5;
|
|
}
|
|
|
|
.status-bar {
|
|
height: var(--status-bar-height);
|
|
background: #6200EE;
|
|
}
|
|
|
|
.content {
|
|
padding: 32px 24px;
|
|
}
|
|
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 80px;
|
|
margin-bottom: 24px;
|
|
animation: bounce 2s infinite;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0%, 100% {
|
|
transform: translateY(0);
|
|
}
|
|
50% {
|
|
transform: translateY(-10px);
|
|
}
|
|
}
|
|
|
|
.empty-title {
|
|
font-size: 28px;
|
|
font-weight: 500;
|
|
color: #212121;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.empty-desc {
|
|
font-size: 16px;
|
|
color: #757575;
|
|
margin-bottom: 40px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.feature-preview {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.feature-card {
|
|
background: white;
|
|
border-radius: 16px;
|
|
padding: 24px;
|
|
margin-bottom: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.feature-card:active {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.feature-icon {
|
|
font-size: 40px;
|
|
margin-bottom: 16px;
|
|
color: #FF9800;
|
|
}
|
|
|
|
.feature-title {
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
color: #212121;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.feature-desc {
|
|
font-size: 14px;
|
|
color: #757575;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.progress-section {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.progress-title {
|
|
display: block;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: #212121;
|
|
margin-bottom: 12px;
|
|
text-align: left;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 8px;
|
|
background: #E0E0E0;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: #FF9800;
|
|
border-radius: 4px;
|
|
transition: width 0.3s;
|
|
}
|
|
|
|
.progress-text {
|
|
display: block;
|
|
font-size: 14px;
|
|
color: #757575;
|
|
text-align: left;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 16px;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.btn {
|
|
flex: 1;
|
|
height: 48px;
|
|
border-radius: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.btn-primary {
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:active {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.btn-outline {
|
|
background: transparent;
|
|
color: #6200EE;
|
|
border: 2px solid #6200EE;
|
|
}
|
|
|
|
.btn-outline:active {
|
|
background: rgba(98, 0, 238, 0.08);
|
|
}
|
|
|
|
.btn-text {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 深色模式支持 */
|
|
@media (prefers-color-scheme: dark) {
|
|
.page-container {
|
|
background: #121212;
|
|
}
|
|
|
|
.empty-title {
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.empty-desc {
|
|
color: #B0B0B0;
|
|
}
|
|
|
|
.feature-card {
|
|
background: #1E1E1E;
|
|
}
|
|
|
|
.feature-title {
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.feature-desc {
|
|
color: #B0B0B0;
|
|
}
|
|
|
|
.progress-bar {
|
|
background: #333333;
|
|
}
|
|
|
|
.btn-outline {
|
|
border-color: #BB86FC;
|
|
color: #BB86FC;
|
|
}
|
|
|
|
.btn-outline:active {
|
|
background: rgba(187, 134, 252, 0.08);
|
|
}
|
|
}
|
|
</style> |