Browse Source

对 myApp 子模块的更改

ZJC 10 months ago
parent
commit
398885df25
6 changed files with 975 additions and 26 deletions
  1. 133 0
      src/AI.html
  2. 0 26
      src/index.html
  3. 235 0
      src/交流.html
  4. 178 0
      src/我的.html
  5. 150 0
      src/测试.html
  6. 279 0
      src/首页.html

+ 133 - 0
src/AI.html

@@ -0,0 +1,133 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
+    <script src="https://cdn.tailwindcss.com"></script>
+    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
+    <title>AI聊天界面</title>
+    <style>
+        /* 为按钮添加过渡效果 */
+        .prev-btn,
+        .next-btn {
+            transition: background-color 0.3s ease;
+        }
+
+        .prev-btn:hover,
+        .next-btn:hover {
+            background-color: rgba(255, 255, 255, 0.9);
+        }
+    </style>
+</head>
+
+<body class="font-inter pb-16 bg-gray-100">
+    <div class="container mx-auto p-6">
+        <h2 class="text-2xl font-bold text-yellow-500 mb-3">聊会小天</h2>
+        <div class="flex justify-start items-center mb-6">
+            <span class="text-sm text-yellow-500 mr-4">
+                <i class="fas fa-clock mr-1"></i> 24h在线
+            </span>
+            <span class="text-sm text-yellow-500 mr-4">
+                <i class="fas fa-lock mr-1"></i> 安全隐私
+            </span>
+            <span class="text-sm text-yellow-500">
+                <i class="fas fa-heart mr-1"></i> 倾诉陪伴
+            </span>
+        </div>
+        <div class="robot-container relative">
+            <button class="prev-btn absolute top-1/2 left-4 -translate-y-1/2 bg-white/80 p-3 rounded-full cursor-pointer" aria-label="上一张">
+                <i class="fas fa-chevron-left text-2xl"></i>
+            </button>
+            <img id="robot-image" src="https://picsum.photos/300/400?random=1" alt="AI机器人"
+                class="robot-image mx-auto rounded-lg">
+            <button class="next-btn absolute top-1/2 right-4 -translate-y-1/2 bg-white/80 p-3 rounded-full cursor-pointer" aria-label="下一张">
+                <i class="fas fa-chevron-right text-2xl"></i>
+            </button>
+            <p id="robot-message" class="text-gray-600 mt-4 text-lg">回收所有不开心,和我谈谈心事吧❤️</p>
+        </div>
+        <div class="bg-white p-5 rounded-lg shadow-md">
+            <div class="flex justify-between items-center mb-4">
+                <input type="text" placeholder="跟我聊聊吧"
+                    class="w-full p-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-yellow-500 focus:border-yellow-500">
+                <button class="p-2" aria-label="表情按钮">
+                    <i class="fas fa-smile text-xl"></i>
+                </button>
+            </div>    
+            <a href="#"
+                class="block text-center bg-gradient-to-r from-yellow-400 to-pink-500 text-white p-3 rounded-lg hover:from-yellow-500 hover:to-pink-600 transition-colors">
+                进入AI聊天室
+            </a>
+        </div>
+    </div>
+    <!-- 替换后的底部导航栏 -->
+    <footer class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-100">
+        <div class="max-w-2xl mx-auto flex justify-around p-2">
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-home text-lg block text-center"></i>
+                <span class="text-xs block text-center">首页</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-vial text-lg block text-center"></i>
+                <span class="text-xs block text-center">测试</span>
+            </a>
+            <a href="#" class="p-2 text-blue-500">
+                <i class="fas fa-robot text-lg block text-center"></i>
+                <span class="text-xs block text-center">AI 聊天</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <div class="relative">
+                    <i class="fas fa-comments text-lg block text-center"></i>
+                    <span class="absolute -top-1 -right-2 bg-red-500 text-white rounded-full px-1 text-xs">3</span>
+                </div>
+                <span class="text-xs block text-center">交流</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-user text-lg block text-center"></i>
+                <span class="text-xs block text-center">我的</span>
+            </a>
+        </div>
+    </footer>
+    <script>
+        const robots = [
+            {
+                image: 'https://picsum.photos/300/400?random=1',
+                message: '回收所有不开心,和我谈谈心事吧❤️'
+            },
+            {
+                image: 'https://picsum.photos/300/400?random=2',
+                message: '我会耐心倾听你的每一个故事哦😃'
+            },
+            {
+                image: 'https://picsum.photos/300/400?random=3',
+                message: '让我们一起赶走烦恼,迎接快乐吧🥰'
+            }
+        ];
+
+        let currentRobotIndex = 0;
+        const robotImage = document.getElementById('robot-image');
+        const robotMessage = document.getElementById('robot-message');
+        const prevBtn = document.querySelector('.prev-btn');
+        const nextBtn = document.querySelector('.next-btn');
+
+        function updateRobot() {
+            robotImage.src = robots[currentRobotIndex].image;
+            robotMessage.textContent = robots[currentRobotIndex].message;
+        }
+
+        prevBtn.addEventListener('click', () => {
+            currentRobotIndex = (currentRobotIndex - 1 + robots.length) % robots.length;
+            updateRobot();
+        });
+
+        nextBtn.addEventListener('click', () => {
+            currentRobotIndex = (currentRobotIndex + 1) % robots.length;
+            updateRobot();
+        });
+    </script>
+</body>
+
+</html>
+    

+ 0 - 26
src/index.html

@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
-  <meta charset="utf-8" />
-  <title>Ionic App</title>
-
-  <base href="/" />
-
-  <meta name="color-scheme" content="light dark" />
-  <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
-  <meta name="format-detection" content="telephone=no" />
-  <meta name="msapplication-tap-highlight" content="no" />
-
-  <link rel="icon" type="image/png" href="assets/icon/favicon.png" />
-
-  <!-- add to homescreen for ios -->
-  <meta name="mobile-web-app-capable" content="yes" />
-  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
-</head>
-
-<body>
-  <app-root></app-root>
-</body>
-
-</html>

+ 235 - 0
src/交流.html

@@ -0,0 +1,235 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
+    <script src="https://cdn.tailwindcss.com"></script>
+    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
+    <title>社区交流界面</title>
+    <style>
+        /* 隐藏滚动条 */
+        .category-scroll::-webkit-scrollbar,
+        body::-webkit-scrollbar {
+            display: none;
+        }
+
+        .category-scroll,
+        body {
+            -ms-overflow-style: none;
+            scrollbar-width: none;
+        }
+
+        /* 用户在线状态圆点样式 */
+        .online-dot {
+            box-shadow: 0 0 0 2px white;
+        }
+
+        /* 优化按钮点击效果 */
+        button:active {
+            transform: scale(0.95);
+        }
+    </style>
+</head>
+
+<body class="font-inter pb-16 bg-gray-100">
+    <!-- 顶部风景图片部分 -->
+    <div class="relative h-48 bg-cover bg-center" style="background-image: url('https://picsum.photos/800/300');">
+        <div class="absolute inset-0 bg-black opacity-30"></div>
+        <div class="absolute inset-0 flex flex-col justify-center items-start text-white p-6">
+            <h2 class="text-2xl font-bold mb-2">交流社区</h2>
+            <p class="text-sm">分享你的故事,倾听他人的心声</p>
+        </div>
+    </div>
+
+    <!-- 分类标签 -->
+    <div class="relative bg-white">
+        <div class="absolute right-0 top-0 bottom-0 w-8 bg-gradient-to-l from-white via-white z-10"></div>
+        <div class="flex overflow-x-auto category-scroll px-4 py-3 space-x-3">
+            <span class="flex-shrink-0 px-4 py-2 bg-yellow-500 text-white rounded-full text-sm cursor-pointer">
+                全部
+            </span>
+            <span class="flex-shrink-0 px-4 py-2 border border-gray-200 rounded-full bg-white text-gray-700 text-sm cursor-pointer hover:bg-gray-50 transition-colors">
+                情感交流
+            </span>
+            <span class="flex-shrink-0 px-4 py-2 border border-gray-200 rounded-full bg-white text-gray-700 text-sm cursor-pointer hover:bg-gray-50 transition-colors">
+                职场话题
+            </span>
+            <span class="flex-shrink-0 px-4 py-2 border border-gray-200 rounded-full bg-white text-gray-700 text-sm cursor-pointer hover:bg-gray-50 transition-colors">
+                健康养生
+            </span>
+            <span class="flex-shrink-0 px-4 py-2 border border-gray-200 rounded-full bg-white text-gray-700 text-sm cursor-pointer hover:bg-gray-50 transition-colors">
+                兴趣爱好
+            </span>
+            <span class="flex-shrink-0 px-4 py-2 border border-gray-200 rounded-full bg-white text-gray-700 text-sm cursor-pointer hover:bg-gray-50 transition-colors">
+                亲子教育
+            </span>
+            <span class="flex-shrink-0 px-4 py-2 border border-gray-200 rounded-full bg-white text-gray-700 text-sm cursor-pointer hover:bg-gray-50 transition-colors">
+                旅游出行
+            </span>
+            <span class="flex-shrink-0 px-4 py-2 border border-gray-200 rounded-full bg-white text-gray-700 text-sm cursor-pointer hover:bg-gray-50 transition-colors">
+                美食分享
+            </span>
+        </div>
+    </div>
+
+    <!-- 帖子列表 -->
+    <main class="p-4 space-y-4 max-w-2xl mx-auto">
+        <!-- 帖子示例1 -->
+        <article class="bg-white p-4 rounded-lg shadow-sm hover:shadow-md transition-shadow">
+            <div class="flex items-center mb-2">
+                <div class="relative">
+                    <img src="https://picsum.photos/40/40" 
+                         class="rounded-full w-10 h-10 mr-2 bg-gray-100"
+                         alt="用户头像"
+                         loading="lazy">
+                    <div class="absolute bottom-0 right-0 w-3 h-3 bg-green-500 rounded-full online-dot"></div>
+                </div>
+                <div>
+                    <p class="font-bold text-gray-800">用户A</p>
+                    <p class="text-xs text-gray-500 ml-1">2小时前 · 情感交流</p>
+                </div>
+            </div>
+            <p class="mb-2 line-clamp-3 text-gray-800">最近心情总是很低落,大家有没有什么好的调节方法?快来一起讨论呀!希望可以得到大家的建议和支持,非常感谢!</p>
+            <div class="flex justify-between items-center text-sm">
+                <div class="flex space-x-3 text-gray-500">
+                    <button class="flex items-center hover:text-yellow-500 transition-colors">
+                        <i class="fas fa-comment mr-1"></i>
+                        <span>12</span>
+                    </button>
+                    <button class="flex items-center hover:text-yellow-500 transition-colors">
+                        <i class="fas fa-thumbs-up mr-1"></i>
+                        <span>20</span>
+                    </button>
+                </div>
+                <span class="text-xs text-gray-400">阅读 1.2k</span>
+            </div>
+        </article>
+
+        <!-- 帖子示例2 -->
+        <article class="bg-white p-4 rounded-lg shadow-sm hover:shadow-md transition-shadow">
+            <div class="flex items-center mb-2">
+                <div class="relative">
+                    <img src="https://picsum.photos/40/40?random=1" 
+                         class="rounded-full w-10 h-10 mr-2 bg-gray-100"
+                         alt="用户头像"
+                         loading="lazy">
+                    <div class="absolute bottom-0 right-0 w-3 h-3 bg-green-500 rounded-full online-dot"></div>
+                </div>
+                <div>
+                    <p class="font-bold text-gray-800">用户B</p>
+                    <p class="text-xs text-gray-500 ml-1">3小时前 · 职场话题</p>
+                </div>
+            </div>
+            <p class="mb-2 line-clamp-3 text-gray-800">职场中遇到难相处的同事该怎么处理?大家有类似经历吗?希望能分享一些实用的应对策略。</p>
+            <div class="flex justify-between items-center text-sm">
+                <div class="flex space-x-3 text-gray-500">
+                    <button class="flex items-center hover:text-yellow-500 transition-colors">
+                        <i class="fas fa-comment mr-1"></i>
+                        <span>18</span>
+                    </button>
+                    <button class="flex items-center hover:text-yellow-500 transition-colors">
+                        <i class="fas fa-thumbs-up mr-1"></i>
+                        <span>25</span>
+                    </button>
+                </div>
+                <span class="text-xs text-gray-400">阅读 2.1k</span>
+            </div>
+        </article>
+
+        <!-- 帖子示例3 -->
+        <article class="bg-white p-4 rounded-lg shadow-sm hover:shadow-md transition-shadow">
+            <div class="flex items-center mb-2">
+                <div class="relative">
+                    <img src="https://picsum.photos/40/40?random=2" 
+                         class="rounded-full w-10 h-10 mr-2 bg-gray-100"
+                         alt="用户头像"
+                         loading="lazy">
+                    <div class="absolute bottom-0 right-0 w-3 h-3 bg-green-500 rounded-full online-dot"></div>
+                </div>
+                <div>
+                    <p class="font-bold text-gray-800">用户C</p>
+                    <p class="text-xs text-gray-500 ml-1">4小时前 · 健康养生</p>
+                </div>
+            </div>
+            <p class="mb-2 line-clamp-3 text-gray-800">最近尝试了一些新的养生食谱,效果还不错,分享给大家。比如早上喝一杯蜂蜜水,晚上泡个脚,感觉身体都变好了呢!</p>
+            <div class="flex justify-between items-center text-sm">
+                <div class="flex space-x-3 text-gray-500">
+                    <button class="flex items-center hover:text-yellow-500 transition-colors">
+                        <i class="fas fa-comment mr-1"></i>
+                        <span>8</span>
+                    </button>
+                    <button class="flex items-center hover:text-yellow-500 transition-colors">
+                        <i class="fas fa-thumbs-up mr-1"></i>
+                        <span>15</span>
+                    </button>
+                </div>
+                <span class="text-xs text-gray-400">阅读 800</span>
+            </div>
+        </article>
+
+        <!-- 帖子示例4 -->
+        <article class="bg-white p-4 rounded-lg shadow-sm hover:shadow-md transition-shadow">
+            <div class="flex items-center mb-2">
+                <div class="relative">
+                    <img src="https://picsum.photos/40/40?random=3" 
+                         class="rounded-full w-10 h-10 mr-2 bg-gray-100"
+                         alt="用户头像"
+                         loading="lazy">
+                    <div class="absolute bottom-0 right-0 w-3 h-3 bg-green-500 rounded-full online-dot"></div>
+                </div>
+                <div>
+                    <p class="font-bold text-gray-800">用户D</p>
+                    <p class="text-xs text-gray-500 ml-1">1小时前 · 兴趣爱好</p>
+                </div>
+            </div>
+            <p class="mb-2 line-clamp-3 text-gray-800">新学了一种绘画技巧,感觉很有趣!就是用不同颜色的颜料随意泼洒在画布上,然后用工具稍微调整一下,就能形成一幅很有艺术感的画。有兴趣的小伙伴可以试试哦!</p>
+            <div class="flex justify-between items-center text-sm">
+                <div class="flex space-x-3 text-gray-500">
+                    <button class="flex items-center hover:text-yellow-500 transition-colors">
+                        <i class="fas fa-comment mr-1"></i>
+                        <span>5</span>
+                    </button>
+                    <button class="flex items-center hover:text-yellow-500 transition-colors">
+                        <i class="fas fa-thumbs-up mr-1"></i>
+                        <span>10</span>
+                    </button>
+                </div>
+                <span class="text-xs text-gray-400">阅读 500</span>
+            </div>
+        </article>
+
+    </main>
+
+    <!-- 底部导航栏 -->
+    <footer class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-100">
+        <div class="max-w-2xl mx-auto flex justify-around p-2">
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-home text-lg block text-center"></i>
+                <span class="text-xs block text-center">首页</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-vial text-lg block text-center"></i>
+                <span class="text-xs block text-center">测试</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-robot text-lg block text-center"></i>
+                <span class="text-xs block text-center">AI 聊天</span>
+            </a>
+            <a href="#" class="p-2 text-blue-500">
+                <div class="relative">
+                    <i class="fas fa-comments text-lg block text-center"></i>
+                    <span class="absolute -top-1 -right-2 bg-red-500 text-white rounded-full px-1 text-xs">3</span>
+                </div>
+                <span class="text-xs block text-center">交流</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-user text-lg block text-center"></i>
+                <span class="text-xs block text-center">我的</span>
+            </a>
+        </div>
+    </footer>
+</body>
+</html>    

+ 178 - 0
src/我的.html

@@ -0,0 +1,178 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
+    <script src="https://cdn.tailwindcss.com"></script>
+    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
+    <title>用户个人页面</title>
+    <style>
+        /* 隐藏滚动条 */
+        body::-webkit-scrollbar {
+            display: none;
+        }
+
+        body {
+            -ms-overflow-style: none;
+            scrollbar-width: none;
+            font-family: 'Inter', sans-serif;
+            padding-bottom: 64px; /* 为底部导航栏留出空间 */
+        }
+
+        /* 优化按钮点击效果 */
+        button:active {
+            transform: scale(0.95);
+        }
+    </style>
+</head>
+
+<body class="font-inter pb-16 bg-gray-100">
+    <!-- 头部部分 -->
+    <div class="bg-blue-500 text-white p-4">
+        <div class="text-right mb-2">
+            <a href="#" class="text-white mx-2 hover:text-gray-300 transition-colors"><i class="fas fa-share"></i></a>
+            <a href="#" class="text-white mx-2 hover:text-gray-300 transition-colors"><i class="fas fa-cog"></i></a>
+        </div>
+        <div class="flex items-center relative mb-2">
+            <img src="https://picsum.photos/40/40" class="rounded-full w-10 h-10 mr-2 bg-gray-100" alt="用户头像"
+                loading="lazy">
+            <div>
+                <p class="font-bold text-gray-800 text-white">敬老慈幼的柳璇</p>
+                <p class="text-xs text-gray-500 text-white ml-1">这是我们相识的第2.0天</p>
+            </div>
+            <a href="#"
+                class="absolute right-0 bg-white bg-opacity-20 text-white px-3 py-1 rounded-full text-xs hover:bg-opacity-30 transition-colors flex items-center gap-1">
+                <i class="fas fa-external-link-alt"></i>
+                个人主页
+            </a>
+        </div>
+        <div class="flex justify-center gap-4 text-center text-xs">
+            <div>
+                <p>1</p>
+                <p>关注</p>
+            </div>
+            <div>
+                <p>0</p>
+                <p>心声</p>
+            </div>
+            <div>
+                <p>0</p>
+                <p>问答</p>
+            </div>
+            <div>
+                <p>0</p>
+                <p>评论</p>
+            </div>
+            <div>
+                <p>0</p>
+                <p>收藏</p>
+            </div>
+        </div>
+    </div>
+
+    <!-- 功能按钮 -->
+    <div class="grid grid-cols-4 gap-4 p-4">
+        <div class="text-center">
+            <i class="fas fa-calendar text-2xl text-blue-300 mb-1"></i>
+            <p class="text-xs">咨询订单</p>
+        </div>
+        <div class="text-center">
+            <i class="fas fa-comments text-2xl text-blue-300 mb-1"></i>
+            <p class="text-xs">倾诉记录</p>
+        </div>
+        <div class="text-center">
+            <i class="fas fa-book text-2xl text-blue-300 mb-1"></i>
+            <p class="text-xs">课程记录</p>
+        </div>
+        <div class="text-center">
+            <i class="fas fa-heart text-2xl text-blue-300 mb-1"></i>
+            <p class="text-xs">测评记录</p>
+        </div>
+        <div class="text-center">
+            <i class="fas fa-pray text-2xl text-blue-300 mb-1"></i>
+            <p class="text-xs">冥想</p>
+        </div>
+        <div class="text-center">
+            <i class="fas fa-file text-2xl text-blue-300 mb-1"></i>
+            <p class="text-xs">我的档案</p>
+        </div>
+        <div class="text-center">
+            <i class="fas fa-wallet text-2xl text-blue-300 mb-1"></i>
+            <p class="text-xs">账户余额</p>
+        </div>
+        <div class="text-center">
+            <i class="fas fa-ticket-alt text-2xl text-blue-300 mb-1"></i>
+            <p class="text-xs">红包卡券</p>
+        </div>
+    </div>
+
+    <!-- 会员中心 -->
+    <div class="bg-yellow-200 p-4 m-4 rounded-lg">
+        <span class="font-bold text-lg">会员中心</span>
+        <span class="bg-orange-500 text-white px-2 py-1 rounded text-xs ml-2">VIP</span>
+        <a href="#"
+            class="float-right bg-orange-400 text-white px-4 py-1 rounded-full text-xs hover:bg-orange-300 transition-colors">开通会员
+            ></a>
+        <p class="text-xs text-gray-600 mt-2">您当前不是会员,开通立享会员特权</p>
+    </div>
+
+    <!-- 列表部分 -->
+    <div class="p-4">
+        <a href="#"
+            class="block border-b border-gray-200 py-2 flex items-center text-gray-800 hover:bg-gray-50 transition-colors">
+            <i class="fas fa-book-open text-green-400 mr-2 text-sm"></i>
+            <p class="text-xs">心理百科</p>
+        </a>
+        <a href="#"
+            class="block border-b border-gray-200 py-2 flex items-center text-gray-800 hover:bg-gray-50 transition-colors">
+            <i class="fas fa-question-circle text-purple-400 mr-2 text-sm"></i>
+            <p class="text-xs">帮助中心</p>
+        </a>
+        <a href="#"
+            class="block border-b border-gray-200 py-2 flex items-center text-gray-800 hover:bg-gray-50 transition-colors">
+            <i class="fas fa-envelope text-pink-400 mr-2 text-sm"></i>
+            <p class="text-xs">建议反馈</p>
+        </a>
+        <a href="#"
+            class="block border-b border-gray-200 py-2 flex items-center text-gray-800 hover:bg-gray-50 transition-colors">
+            <i class="fas fa-shield-alt text-yellow-400 mr-2 text-sm"></i>
+            <p class="text-xs">隐私安全</p>
+            <span class="ml-auto text-gray-400 text-xs">设置手势密码,保障隐私安全</span>
+        </a>
+    </div>
+
+    <!-- 底部导航栏 -->
+    <footer class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-100">
+        <div class="max-w-2xl mx-auto flex justify-around p-2">
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-home text-lg block text-center"></i>
+                <span class="text-xs block text-center">首页</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-vial text-lg block text-center"></i>
+                <span class="text-xs block text-center">测试</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-robot text-lg block text-center"></i>
+                <span class="text-xs block text-center">AI 聊天</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <div class="relative">
+                    <i class="fas fa-comments text-lg block text-center"></i>
+                    <span class="absolute -top-1 -right-2 bg-red-500 text-white rounded-full px-1 text-xs">3</span>
+                </div>
+                <span class="text-xs block text-center">交流</span>
+            </a>
+            <a href="#" class="p-2 text-blue-500">
+                <i class="fas fa-user text-lg block text-center"></i>
+                <span class="text-xs block text-center">我的</span>
+            </a>
+        </div>
+    </footer>
+</body>
+
+</html>
+    

+ 150 - 0
src/测试.html

@@ -0,0 +1,150 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
+    <script src="https://cdn.tailwindcss.com"></script>
+    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
+    <title>测试界面</title>
+    <style>
+        /* 自定义滚动分类样式 */
+        .scrollable-categories {
+            display: flex;
+            overflow-x: auto;
+            -webkit-overflow-scrolling: touch;
+            white-space: nowrap;
+            padding: 10px 0;
+            gap: 10px;
+        }
+        .scrollable-categories::-webkit-scrollbar {
+            display: none;
+        }
+        .scrollable-categories span {
+            background-color: #e0e0e0;
+            padding: 5px 12px;
+            border-radius: 15px;
+            font-size: 13px;
+            cursor: pointer;
+            transition: all 0.2s;
+        }
+        .scrollable-categories span:hover,
+        .scrollable-categories span.active {
+            background-color: #007BFF;
+            color: white;
+        }
+    </style>
+</head>
+
+<body class="font-inter pb-16 bg-gray-50">
+    <!-- 顶部风景图片部分 -->
+    <div class="relative h-48 bg-cover bg-center" style="background-image: url('https://picsum.photos/800/300');">
+        <div class="absolute inset-0 bg-black opacity-30"></div>
+        <div class="absolute inset-0 flex flex-col justify-center items-center text-white p-5">
+            <h2 class="text-2xl font-bold mb-2">别害怕困难,它是成长的阶梯</h2>
+            <p class="text-sm text-center">每一次挑战都是自我提升的机会,勇敢面对,你会变得更强大。</p>
+        </div>
+    </div>
+
+    <!-- 分类标签 - 修改为与首页一致的滚动样式 -->
+    <div class="px-4">
+        <div class="scrollable-categories">
+            <span class="active">全部</span>
+            <span>情感分析</span>
+            <span>婚姻家庭</span>
+            <span>情绪压力</span>
+            <span>儿童心理</span>
+            <span>青少年心理</span>
+            <span>人际关系</span>
+            <span>个人成长</span>
+            <span>职场发展</span>
+            <span>心理健康</span>
+        </div>
+    </div>
+
+    <!-- 测试卡片 -->
+    <div class="grid grid-cols-2 gap-4 px-5 mt-2">
+        <div class="bg-white rounded-lg overflow-hidden shadow-md hover:scale-102 transition-transform">
+            <img src="https://picsum.photos/300/200?random=1" alt="测试图片" class="w-full h-32 object-cover">
+            <div class="p-3">
+                <p class="text-base font-bold mb-1">抑郁测试</p>
+                <p class="text-sm text-gray-500 mb-1">抑郁自评量表SDS</p>
+                <p class="text-xs text-gray-400">1485人已测</p>
+            </div>
+        </div>
+        <div class="bg-white rounded-lg overflow-hidden shadow-md hover:scale-102 transition-transform">
+            <img src="https://picsum.photos/300/200?random=2" alt="测试图片" class="w-full h-32 object-cover">
+            <div class="p-3">
+                <p class="text-base font-bold mb-1">产后抑郁测试</p>
+                <p class="text-sm text-gray-500 mb-1">爱丁堡产后抑郁测试EPDS</p>
+                <p class="text-xs text-gray-400">517人已测</p>
+            </div>
+        </div>
+        <div class="bg-white rounded-lg overflow-hidden shadow-md hover:scale-102 transition-transform">
+            <img src="https://picsum.photos/300/200?random=3" alt="测试图片" class="w-full h-32 object-cover">
+            <div class="p-3">
+                <p class="text-base font-bold mb-1">自尊水平测试</p>
+                <p class="text-sm text-gray-500 mb-1">自尊量表SSS</p>
+                <p class="text-xs text-gray-400">1169人已测</p>
+            </div>
+        </div>
+        <div class="bg-white rounded-lg overflow-hidden shadow-md hover:scale-102 transition-transform">
+            <img src="https://picsum.photos/300/200?random=4" alt="测试图片" class="w-full h-32 object-cover">
+            <div class="p-3">
+                <p class="text-base font-bold mb-1">社会适应能力测试</p>
+                <p class="text-sm text-gray-500 mb-1">帮助你评估社会适应能力</p>
+                <p class="text-xs text-gray-400">528人已测</p>
+            </div>
+        </div>
+        <div class="bg-white rounded-lg overflow-hidden shadow-md hover:scale-102 transition-transform">
+            <img src="https://picsum.photos/300/200?random=5" alt="测试图片" class="w-full h-32 object-cover">
+            <div class="p-3">
+                <p class="text-base font-bold mb-1">焦虑测试</p>
+                <p class="text-sm text-gray-500 mb-1">焦虑自评量表SAS</p>
+                <p class="text-xs text-gray-400">892人已测</p>
+            </div>
+        </div>
+        <div class="bg-white rounded-lg overflow-hidden shadow-md hover:scale-102 transition-transform">
+            <img src="https://picsum.photos/300/200?random=6" alt="测试图片" class="w-full h-32 object-cover">
+            <div class="p-3">
+                <p class="text-base font-bold mb-1">睡眠质量测试</p>
+                <p class="text-sm text-gray-500 mb-1">匹兹堡睡眠质量指数</p>
+                <p class="text-xs text-gray-400">763人已测</p>
+            </div>
+        </div>
+    </div>
+
+    <!-- 底部导航栏 -->
+    <footer class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-100">
+        <div class="max-w-2xl mx-auto flex justify-around p-2">
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-home text-lg block text-center"></i>
+                <span class="text-xs block text-center">首页</span>
+            </a>
+            <a href="#" class="p-2 text-blue-500">
+                <i class="fas fa-vial text-lg block text-center"></i>
+                <span class="text-xs block text-center">测试</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-robot text-lg block text-center"></i>
+                <span class="text-xs block text-center">AI 聊天</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <div class="relative">
+                    <i class="fas fa-comments text-lg block text-center"></i>
+                    <span class="absolute -top-1 -right-2 bg-red-500 text-white rounded-full px-1 text-xs">3</span>
+                </div>
+                <span class="text-xs block text-center">交流</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-user text-lg block text-center"></i>
+                <span class="text-xs block text-center">我的</span>
+            </a>
+        </div>
+    </footer>
+</body>
+
+</html>
+    

+ 279 - 0
src/首页.html

@@ -0,0 +1,279 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+
+<head>
+    <meta charset="UTF-8">
+    <script src="https://cdn.tailwindcss.com"></script>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>AI 心理咨询 APP 界面</title>
+    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
+    <style>
+        /* 基础字体调整 */
+        body {
+            font-size: 14px;
+        }
+        h2 {
+            font-size: 18px;
+        }
+        h3 {
+            font-size: 16px;
+        }
+
+        /* 导航高亮样式 */
+        .nav-active {
+            color: #007BFF !important;
+        }
+        .nav-active i {
+            color: #007BFF !important;
+        }
+        .nav-active span {
+            font-weight: bold;
+        }
+
+        /* 分类图标样式 */
+        .category-icon {
+            font-size: 24px;
+            margin-bottom: 5px;
+        }
+        .category-label {
+            font-size: 12px;
+        }
+
+        .scrollable-categories {
+            display: flex;
+            overflow-x: auto;
+            -webkit-overflow-scrolling: touch;
+            white-space: nowrap;
+            padding: 10px 0;
+            gap: 10px;
+        }
+        .scrollable-categories::-webkit-scrollbar {
+            display: none;
+        }
+        .scrollable-categories span {
+            background-color: #e0e0e0;
+            padding: 5px 10px;
+            border-radius: 5px;
+            font-size: 12px;
+            transition: all 0.2s;
+            cursor: pointer;
+        }
+        .scrollable-categories span:hover {
+            background-color: #007BFF;
+            color: white;
+        }
+
+        .search-btn {
+            background-color: #007BFF;
+            color: white;
+            border: none;
+            padding: 8px 15px;
+            border-radius: 8px;
+            margin-left: 5px;
+            white-space: nowrap;
+            min-width: 60px;
+            display: inline-flex;
+            justify-content: center;
+            align-items: center;
+            font-size: 14px;
+        }
+
+        .info-container {
+            padding: 10px;
+        }
+
+        .card {
+            display: flex;
+            align-items: center;
+            background-color: white;
+            padding: 15px;
+            margin-bottom: 15px;
+            border-radius: 10px;
+            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
+        }
+        .card img {
+            width: 60px;
+            height: 60px;
+            object-fit: cover;
+            border-radius: 10px;
+            margin-right: 15px;
+        }
+        .card .text-container p,
+        .card .text-container span {
+            font-size: 12px;
+        }
+        .card div[style*="FF5733"] span {
+            font-weight: bold;
+            font-size: 14px;
+        }
+
+        /* 功能模块调整 */
+        .feature-module {
+            font-size: 12px;
+            text-align: center;
+        }
+        .feature-module img {
+            width: 40px;
+            height: 40px;
+            margin: auto;
+        }
+    </style>
+</head>
+
+<body style="font-family: Arial, sans-serif; background-color: #f4f4f4; margin: 0; padding-bottom: 60px;">
+    <!-- 顶部搜索栏 -->
+    <div style="display: flex; justify-content: space-between; align-items: center; background-color: white; padding: 10px 15px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);">
+        <div style="display: flex; align-items: center; background-color: #f0f0f0; padding: 5px 10px; border-radius: 5px; width: 75%;">
+            <i class="fas fa-search" style="margin-right: 5px; font-size: 14px;"></i>
+            <input type="text" placeholder="与 AI 聊焦虑问题" style="border: none; background-color: transparent; outline: none; width: 100%; font-size: 14px;">
+            <button class="search-btn">搜索</button>
+        </div>
+        <div style="display: flex; align-items: center;">
+            <i class="fas fa-headset" style="margin-right: 5px; font-size: 14px;"></i>
+            <span style="font-size: 14px;">客服</span>
+        </div>
+    </div>
+
+    <!-- 轮播图 -->
+    <div style="position: relative; height: 120px; overflow: hidden; margin: 10px;">
+        <img src="https://picsum.photos/600/300" alt="AI 助力心理咨询" style="width: 100%; height: 100%; object-fit: cover;">
+        <div style="position: absolute; bottom: 10px; left: 10px; color: white; font-size: 16px; font-weight: bold;">AI 智能陪伴,开启心灵之旅</div>
+    </div>
+
+    <!-- 分类图标 -->
+    <div style="display: flex; flex-wrap: wrap; justify-content: space-around; padding: 5px 10px;">
+        <div style="display: flex; flex-direction: column; align-items: center; width: 20%; margin-bottom: 10px;">
+            <i class="fas fa-robot category-icon"></i>
+            <span class="category-label">AI 情感分析</span>
+        </div>
+        <div style="display: flex; flex-direction: column; align-items: center; width: 20%; margin-bottom: 10px;">
+            <i class="fas fa-users category-icon"></i>
+            <span class="category-label">婚姻家庭</span>
+        </div>
+        <div style="display: flex; flex-direction: column; align-items: center; width: 20%; margin-bottom: 10px;">
+            <i class="fas fa-frown category-icon"></i>
+            <span class="category-label">情绪压力</span>
+        </div>
+        <div style="display: flex; flex-direction: column; align-items: center; width: 20%; margin-bottom: 10px;">
+            <i class="fas fa-baby category-icon"></i>
+            <span class="category-label">儿童心理</span>
+        </div>
+        <div style="display: flex; flex-direction: column; align-items: center; width: 20%; margin-bottom: 10px;">
+            <i class="fas fa-book category-icon"></i>
+            <span class="category-label">青少年心理</span>
+        </div>
+        <div style="display: flex; flex-direction: column; align-items: center; width: 20%; margin-bottom: 10px;">
+            <i class="fas fa-comments category-icon"></i>
+            <span class="category-label">人际关系</span>
+        </div>
+        <div style="display: flex; flex-direction: column; align-items: center; width: 20%; margin-bottom: 10px;">
+            <i class="fas fa-leaf category-icon"></i>
+            <span class="category-label">个人成长</span>
+        </div>
+        <div style="display: flex; flex-direction: column; align-items: center; width: 20%; margin-bottom: 10px;">
+            <i class="fas fa-briefcase category-icon"></i>
+            <span class="category-label">职场发展</span>
+        </div>
+        <div style="display: flex; flex-direction: column; align-items: center; width: 20%; margin-bottom: 10px;">
+            <i class="fas fa-heartbeat category-icon"></i>
+            <span class="category-label">心理健康</span>
+        </div>
+        <div style="display: flex; flex-direction: column; align-items: center; width: 20%; margin-bottom: 10px;">
+            <i class="fas fa-th category-icon"></i>
+            <span class="category-label">全部</span>
+        </div>
+    </div>
+
+    <!-- 功能模块 -->
+    <div style="display: flex; justify-content: space-around; padding: 10px 5px;">
+        <div class="feature-module">
+            <img src="https://picsum.photos/50/50" alt="AI 心理咨询">
+            <div>AI 心理咨询<br>智能陪伴解答</div>
+        </div>
+        <div class="feature-module">
+            <img src="https://picsum.photos/50/50" alt="AI 心理测试">
+            <div>AI 心理测试<br>精准剖析自我</div>
+        </div>
+        <div class="feature-module">
+            <img src="https://picsum.photos/50/50" alt="AI 心理课程">
+            <div>AI 心理课程<br>定制成长计划</div>
+        </div>
+        <div class="feature-module" style="position: relative;">
+            
+            <img src="https://picsum.photos/50/50" alt="AI 倾诉热线">
+            <div>AI 倾诉热线<br>随时倾听陪伴</div>
+        </div>
+    </div>
+
+    <!-- 咨询探索部分 -->
+    <div class="info-container">
+        <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;">
+            <h2 style="border-bottom: 3px solid #007BFF; display: inline-block; padding-bottom: 3px;">AI 咨询·探索</h2>
+            <a href="#" style="color: #007BFF; text-decoration: none; font-size: 14px;">更多></a>
+        </div>
+        <div class="scrollable-categories">
+            <span>亲子教育</span>
+            <span>情绪压力</span>
+            <span>恋爱情感</span>
+            <span>婚姻家庭</span>
+            <span>职业规划</span>
+            <span>社交恐惧</span>
+            <span>睡眠问题</span>
+            <span>考前焦虑</span>
+        </div>
+        <div class="card">
+            <img src="https://picsum.photos/80/80" alt="AI 咨询师">
+            <div class="text-container">
+                <h3>AI 咨询师</h3>
+                <span>在线实时咨询</span>
+                <p>基于大数据与 AI 算法,精准分析您的心理状况...</p>
+                <p>无限次沟通 快速响应 专业建议</p>
+                <span>亲子教育 失恋心理危机 结婚恐惧</span>
+                <span style="color: red;">新用户首单 8 折</span>
+            </div>
+            <div style="text-align: right; color: #FF5733;">
+                <span>¥100/次</span>
+            </div>
+        </div>
+        <div class="card">
+            <img src="https://picsum.photos/80/80" alt="AI 助手">
+            <div class="text-container">
+                <h3>AI 助手</h3>
+                <span>随时陪伴解答</span>
+                <p>24 小时在线,为您提供贴心的心理支持...</p>
+                <span style="background-color: #007BFF; color: white; padding: 2px 5px; border-radius: 3px; font-size: 12px;">免费试用</span>
+            </div>
+        </div>
+    </div>
+
+    <!-- 底部导航栏 -->
+    <footer class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-100">
+        <div class="max-w-2xl mx-auto flex justify-around p-2">
+            <a href="#" class="p-2 text-blue-500 transition-colors">
+                <i class="fas fa-home text-lg block text-center"></i>
+                <span class="text-xs block text-center">首页</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500">
+                <i class="fas fa-vial text-lg block text-center"></i>
+                <span class="text-xs block text-center">测试</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-robot text-lg block text-center"></i>
+                <span class="text-xs block text-center">AI 聊天</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <div class="relative">
+                    <i class="fas fa-comments text-lg block text-center"></i>
+                    <span class="absolute -top-1 -right-2 bg-red-500 text-white rounded-full px-1 text-xs">3</span>
+                </div>
+                <span class="text-xs block text-center">交流</span>
+            </a>
+            <a href="#" class="p-2 text-gray-400 hover:text-blue-500 transition-colors">
+                <i class="fas fa-user text-lg block text-center"></i>
+                <span class="text-xs block text-center">我的</span>
+            </a>
+        </div>
+    </footer>
+</body>
+
+</html>