refactor(profile): restructure profile pages and add new features
This commit is contained in:
114
profile/home-network.html
Normal file
114
profile/home-network.html
Normal file
@ -0,0 +1,114 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>家庭网络 - 米家智能家居</title>
|
||||
<link rel="stylesheet" href="../styles/common.css">
|
||||
<link rel="stylesheet" href="styles/home-network.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" id="home-network-page">
|
||||
<!-- 头部 -->
|
||||
<div class="header">
|
||||
<div class="header-left">
|
||||
<i class="fas fa-arrow-left" onclick="history.back()"></i>
|
||||
<h1>家庭网络</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 网络状态卡片 -->
|
||||
<div class="network-status-card">
|
||||
<div class="status-header">
|
||||
<h2>我的家庭</h2>
|
||||
<i class="fas fa-chevron-down"></i>
|
||||
</div>
|
||||
|
||||
<div class="network-quality">
|
||||
<div class="quality-indicator">
|
||||
<div class="quality-bars">
|
||||
<div class="bar active"></div>
|
||||
<div class="bar active"></div>
|
||||
<div class="bar active"></div>
|
||||
</div>
|
||||
<span class="quality-text">良好</span>
|
||||
</div>
|
||||
<div class="quality-status">
|
||||
<span class="status-label">一般</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Wi-Fi 设备 -->
|
||||
<div class="device-section">
|
||||
<div class="section-header">
|
||||
<div class="section-title">
|
||||
<i class="fas fa-wifi"></i>
|
||||
<span>Wi-Fi 设备</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
|
||||
<div class="device-stats">
|
||||
<div class="stat-item">
|
||||
<span class="stat-number">0</span>
|
||||
<span class="stat-label">信号弱</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<span class="stat-number">0</span>
|
||||
<span class="stat-label">近30天离线</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<span class="stat-number">1</span>
|
||||
<span class="stat-label">长期离线</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 蓝牙设备 -->
|
||||
<div class="device-section">
|
||||
<div class="section-header">
|
||||
<div class="section-title">
|
||||
<i class="fab fa-bluetooth-b"></i>
|
||||
<span>蓝牙设备</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
|
||||
<div class="device-stats">
|
||||
<div class="stat-item">
|
||||
<span class="stat-number">0</span>
|
||||
<span class="stat-label">信号弱</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<span class="stat-number">0</span>
|
||||
<span class="stat-label">近30天离线</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<span class="stat-number">3</span>
|
||||
<span class="stat-label">长期离线</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 本地控制 -->
|
||||
<div class="local-control-section">
|
||||
<div class="section-header">
|
||||
<div class="section-title">
|
||||
<span>本地控制</span>
|
||||
</div>
|
||||
<div class="control-status">
|
||||
<span class="status-text">未支持</span>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section-description">
|
||||
<p>断网或网络异常时,仍然可以支持本地自动化,使用来家控制设备</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../scripts/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
214
profile/mijiazhongce.html
Normal file
214
profile/mijiazhongce.html
Normal file
@ -0,0 +1,214 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>米家众测 - 米家智能家居</title>
|
||||
<link rel="stylesheet" href="../styles/common.css">
|
||||
<link rel="stylesheet" href="styles/mijiazhongce.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" id="mijiazhongce-page">
|
||||
<!-- 顶部导航 -->
|
||||
<header class="header">
|
||||
<div class="header-left">
|
||||
<i class="fas fa-arrow-left" onclick="history.back()"></i>
|
||||
<span class="page-title">米家众测</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 众测产品列表 -->
|
||||
<div class="test-products">
|
||||
<!-- 米家空气净化器 5S -->
|
||||
<div class="product-card">
|
||||
<div class="product-header">
|
||||
<span class="product-period">第230期</span>
|
||||
<span class="product-status new">新品试用</span>
|
||||
</div>
|
||||
<div class="product-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E%3Crect width='200' height='300' fill='%23f5f5f5' rx='10'/%3E%3Crect x='60' y='50' width='80' height='200' fill='%23e0e0e0' rx='8'/%3E%3Crect x='70' y='60' width='60' height='20' fill='%23333' rx='4'/%3E%3Ccircle cx='100' cy='150' r='25' fill='%23666'/%3E%3Crect x='85' y='200' width='30' height='40' fill='%23999' rx='4'/%3E%3C/svg%3E" alt="米家空气净化器 5S">
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<div class="status-badge ended">已结束</div>
|
||||
<h3 class="product-name">米家空气净化器 5S</h3>
|
||||
<div class="product-details">
|
||||
<span class="market-price">市场价:¥1699</span>
|
||||
<span class="quota">名额:1人</span>
|
||||
</div>
|
||||
<div class="applicant-info">
|
||||
<div class="applicant-avatars">
|
||||
<div class="avatar"></div>
|
||||
<div class="avatar"></div>
|
||||
<div class="avatar"></div>
|
||||
</div>
|
||||
<span class="applicant-count">4562人申请</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Redmi投影仪Lite版 -->
|
||||
<div class="product-card">
|
||||
<div class="product-header">
|
||||
<span class="product-period">第229期</span>
|
||||
<span class="product-status new">新品试用</span>
|
||||
<span class="my-test">我的众测</span>
|
||||
</div>
|
||||
<div class="product-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 150'%3E%3Crect width='200' height='150' fill='%23f5f5f5' rx='10'/%3E%3Crect x='30' y='40' width='140' height='70' fill='%23e0e0e0' rx='8'/%3E%3Ccircle cx='100' cy='75' r='20' fill='%23333'/%3E%3Ccircle cx='100' cy='75' r='12' fill='%23666'/%3E%3Crect x='80' y='120' width='40' height='8' fill='%23999' rx='4'/%3E%3C/svg%3E" alt="Redmi投影仪Lite版">
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<div class="status-badge ended">已结束</div>
|
||||
<h3 class="product-name">Redmi投影仪Lite版</h3>
|
||||
<div class="product-details">
|
||||
<span class="market-price">市场价:¥999</span>
|
||||
<span class="quota">名额:3人</span>
|
||||
</div>
|
||||
<div class="applicant-info">
|
||||
<div class="applicant-avatars">
|
||||
<div class="avatar"></div>
|
||||
<div class="avatar"></div>
|
||||
<div class="avatar"></div>
|
||||
</div>
|
||||
<span class="applicant-count">9916人申请</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 米家体脂秤S400 蓝色 -->
|
||||
<div class="product-card">
|
||||
<div class="product-header">
|
||||
<span class="product-period">第228期</span>
|
||||
<span class="product-status new">新品试用</span>
|
||||
</div>
|
||||
<div class="product-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 50'%3E%3Crect width='200' height='50' fill='%23f5f5f5' rx='10'/%3E%3Crect x='20' y='10' width='160' height='30' fill='%234A90E2' rx='8'/%3E%3Crect x='80' y='18' width='40' height='14' fill='%23333' rx='2'/%3E%3C/svg%3E" alt="米家体脂秤S400 蓝色">
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<div class="status-badge ended">已结束</div>
|
||||
<h3 class="product-name">米家体脂秤S400 蓝色</h3>
|
||||
<div class="product-details">
|
||||
<span class="market-price">市场价:¥99</span>
|
||||
<span class="quota">名额:3人</span>
|
||||
</div>
|
||||
<div class="applicant-info">
|
||||
<div class="applicant-avatars">
|
||||
<div class="avatar"></div>
|
||||
<div class="avatar"></div>
|
||||
<div class="avatar"></div>
|
||||
</div>
|
||||
<span class="applicant-count">4232人申请</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 米家循环扇 -->
|
||||
<div class="product-card">
|
||||
<div class="product-header">
|
||||
<span class="product-period">第227期</span>
|
||||
<span class="product-status new">新品试用</span>
|
||||
</div>
|
||||
<div class="product-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Crect width='200' height='200' fill='%23f5f5f5' rx='10'/%3E%3Ccircle cx='100' cy='100' r='60' fill='%23e0e0e0'/%3E%3Ccircle cx='100' cy='100' r='45' fill='%23fff'/%3E%3Cpath d='M100 70 L120 100 L100 130 L80 100 Z' fill='%23666'/%3E%3Crect x='90' y='160' width='20' height='30' fill='%23999' rx='4'/%3E%3C/svg%3E" alt="米家循环扇">
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<div class="status-badge ended">已结束</div>
|
||||
<h3 class="product-name">米家循环扇</h3>
|
||||
<div class="product-details">
|
||||
<span class="market-price">市场价:¥349</span>
|
||||
<span class="quota">名额:3人</span>
|
||||
</div>
|
||||
<div class="applicant-info">
|
||||
<div class="applicant-avatars">
|
||||
<div class="avatar"></div>
|
||||
<div class="avatar"></div>
|
||||
<div class="avatar"></div>
|
||||
</div>
|
||||
<span class="applicant-count">4535人申请</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 第226期 -->
|
||||
<div class="product-card">
|
||||
<div class="product-header">
|
||||
<span class="product-period">第226期</span>
|
||||
<span class="product-status free">0元抽奖</span>
|
||||
</div>
|
||||
<div class="product-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 150'%3E%3Crect width='200' height='150' fill='%23f5f5f5' rx='10'/%3E%3Crect x='40' y='30' width='120' height='90' fill='%23e0e0e0' rx='8'/%3E%3Crect x='50' y='40' width='100' height='70' fill='%23333' rx='4'/%3E%3C/svg%3E" alt="第226期产品">
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<div class="status-badge ended">已结束</div>
|
||||
<h3 class="product-name">智能产品</h3>
|
||||
<div class="product-details">
|
||||
<span class="market-price">市场价:¥299</span>
|
||||
<span class="quota">名额:5人</span>
|
||||
</div>
|
||||
<div class="applicant-info">
|
||||
<div class="applicant-avatars">
|
||||
<div class="avatar"></div>
|
||||
<div class="avatar"></div>
|
||||
<div class="avatar"></div>
|
||||
</div>
|
||||
<span class="applicant-count">3456人申请</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 第225期 -->
|
||||
<div class="product-card">
|
||||
<div class="product-header">
|
||||
<span class="product-period">第225期</span>
|
||||
<span class="product-status new">新品试用</span>
|
||||
</div>
|
||||
<div class="product-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Crect width='200' height='200' fill='%23f5f5f5' rx='10'/%3E%3Ccircle cx='100' cy='80' r='40' fill='%23e0e0e0'/%3E%3Ccircle cx='100' cy='80' r='25' fill='%23333'/%3E%3Crect x='85' y='130' width='30' height='50' fill='%23999' rx='4'/%3E%3C/svg%3E" alt="第225期产品">
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<div class="status-badge ended">已结束</div>
|
||||
<h3 class="product-name">智能摄像头</h3>
|
||||
<div class="product-details">
|
||||
<span class="market-price">市场价:¥199</span>
|
||||
<span class="quota">名额:2人</span>
|
||||
</div>
|
||||
<div class="applicant-info">
|
||||
<div class="applicant-avatars">
|
||||
<div class="avatar"></div>
|
||||
<div class="avatar"></div>
|
||||
<div class="avatar"></div>
|
||||
</div>
|
||||
<span class="applicant-count">2876人申请</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 底部导航 -->
|
||||
<nav class="bottom-nav">
|
||||
<div class="nav-item" onclick="location.href='home.html'">
|
||||
<i class="fas fa-home"></i>
|
||||
<span>米家</span>
|
||||
</div>
|
||||
<div class="nav-item" onclick="location.href='smart.html'">
|
||||
<i class="fas fa-cube"></i>
|
||||
<span>智能</span>
|
||||
</div>
|
||||
<div class="nav-item" onclick="location.href='product.html'">
|
||||
<i class="fas fa-star"></i>
|
||||
<span>产品</span>
|
||||
</div>
|
||||
<div class="nav-item" onclick="location.href='mall.html'">
|
||||
<i class="fas fa-shopping-bag"></i>
|
||||
<span>商城</span>
|
||||
</div>
|
||||
<div class="nav-item" onclick="location.href='profile.html'">
|
||||
<i class="fas fa-user"></i>
|
||||
<span>我的</span>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<script src="scripts/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
128
profile/product-encyclopedia.html
Normal file
128
profile/product-encyclopedia.html
Normal file
@ -0,0 +1,128 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>产品百科 - 米家智能家居</title>
|
||||
<link rel="stylesheet" href="../styles/common.css">
|
||||
<link rel="stylesheet" href="styles/product-encyclopedia.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" id="product-encyclopedia-page">
|
||||
<!-- 头部导航 -->
|
||||
<header class="page-header">
|
||||
<div class="header-content">
|
||||
<button class="back-btn" onclick="history.back()">
|
||||
<i class="fas fa-chevron-left"></i>
|
||||
</button>
|
||||
<h1 class="page-title">产品百科</h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 搜索栏 -->
|
||||
<div class="search-section">
|
||||
<div class="search-box">
|
||||
<i class="fas fa-search"></i>
|
||||
<input type="text" placeholder="请输入产品名称" class="search-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 分类导航 -->
|
||||
<div class="category-nav">
|
||||
<div class="category-item active">
|
||||
<div class="category-icon">
|
||||
<i class="fas fa-home"></i>
|
||||
</div>
|
||||
<span>全屋智能</span>
|
||||
</div>
|
||||
<div class="category-item">
|
||||
<div class="category-icon">
|
||||
<i class="fas fa-desktop"></i>
|
||||
</div>
|
||||
<span>网关攻略</span>
|
||||
</div>
|
||||
<div class="category-item">
|
||||
<div class="category-icon">
|
||||
<i class="fas fa-server"></i>
|
||||
</div>
|
||||
<span>蓝牙连接</span>
|
||||
</div>
|
||||
<div class="category-item">
|
||||
<div class="category-icon">
|
||||
<i class="fas fa-th"></i>
|
||||
</div>
|
||||
<span>功能更新</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 新上线产品 -->
|
||||
<div class="section">
|
||||
<div class="section-header">
|
||||
<h2>新上线</h2>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="product-list">
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 120'%3E%3Crect width='80' height='120' fill='%23333' rx='8'/%3E%3Crect x='10' y='20' width='60' height='80' fill='%23555' rx='4'/%3E%3Ccircle cx='40' cy='110' r='3' fill='%23777'/%3E%3C/svg%3E" alt="米家冰箱">
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<h3>米家冰箱 对开门501L 墨羽岩</h3>
|
||||
<p class="product-brand">小米出品</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Crect width='100' height='60' fill='%23f5f5f5' rx='8'/%3E%3Crect x='10' y='15' width='80' height='30' fill='%23ddd' rx='4'/%3E%3Ccircle cx='20' cy='30' r='5' fill='%23666'/%3E%3Ctext x='50' y='35' text-anchor='middle' font-size='8' fill='%23666'%3E画法几何%3C/text%3E%3C/svg%3E" alt="画法几何智能鱼缸">
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<h3>画法几何智能鱼缸 M1</h3>
|
||||
<p class="product-brand">画法几何</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 清洁电器 -->
|
||||
<div class="section">
|
||||
<div class="section-header">
|
||||
<h2>清洁电器</h2>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="product-list">
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='35' fill='%23333'/%3E%3Ccircle cx='40' cy='40' r='25' fill='%23555'/%3E%3Ccircle cx='40' cy='40' r='15' fill='%23777'/%3E%3Ctext x='40' y='45' text-anchor='middle' font-size='8' fill='white'%3E云米%3C/text%3E%3C/svg%3E" alt="云米洗烘一体机">
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<h3>云米洗烘一体机 (10kg语音版)</h3>
|
||||
<p class="product-brand">云米</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='35' fill='%23444'/%3E%3Ccircle cx='40' cy='40' r='25' fill='%23666'/%3E%3Ccircle cx='40' cy='40' r='15' fill='%23888'/%3E%3Ctext x='40' y='45' text-anchor='middle' font-size='8' fill='white'%3E云米%3C/text%3E%3C/svg%3E" alt="云米洗衣机">
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<h3>云米洗衣机 (9kg/10kg语音版)</h3>
|
||||
<p class="product-brand">云米</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 安防 -->
|
||||
<div class="section">
|
||||
<div class="section-header">
|
||||
<h2>安防</h2>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script src="scripts/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
254
profile/scene.html
Normal file
254
profile/scene.html
Normal file
@ -0,0 +1,254 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>智能场景 - 米家智能家居</title>
|
||||
<link rel="stylesheet" href="../styles/common.css">
|
||||
<link rel="stylesheet" href="styles/scene.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" id="scene-page">
|
||||
<!-- 顶部导航 -->
|
||||
<header class="header">
|
||||
<div class="header-left">
|
||||
<i class="fas fa-arrow-left" onclick="history.back()"></i>
|
||||
<span class="page-title">智能推荐</span>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<span class="tab-item active">智能推荐</span>
|
||||
<span class="tab-item">语音通知</span>
|
||||
<span class="tab-item">智能清洁</span>
|
||||
<span class="tab-item">智能控制</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 主要场景卡片 -->
|
||||
<div class="main-scene-card">
|
||||
<div class="scene-background">
|
||||
<div class="scene-content">
|
||||
<div class="scene-devices">
|
||||
<!-- 空气净化器 -->
|
||||
<div class="device-item air-purifier">
|
||||
<i class="fas fa-wind"></i>
|
||||
<span class="device-label">空气净化器</span>
|
||||
</div>
|
||||
<!-- 音箱 -->
|
||||
<div class="device-item speaker">
|
||||
<i class="fas fa-volume-up"></i>
|
||||
<span class="device-label">音箱</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="scene-info">
|
||||
<h2>欢迎回家</h2>
|
||||
<p>有人为你的生活喝彩</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 产品推荐卡片 -->
|
||||
<div class="recommendation-cards">
|
||||
<!-- 洗衣监测 -->
|
||||
<div class="recommendation-card">
|
||||
<div class="card-header">
|
||||
<div class="card-icon">
|
||||
<i class="fas fa-tshirt"></i>
|
||||
</div>
|
||||
<h3>洗衣监测</h3>
|
||||
<p class="card-subtitle">洗涤脱水 全程可见</p>
|
||||
</div>
|
||||
<div class="product-grid">
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<i class="fas fa-circle"></i>
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<span class="product-name">小米水浸卫士</span>
|
||||
<span class="product-price">¥59起</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<i class="fas fa-circle"></i>
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<span class="product-name">滚筒洗衣机</span>
|
||||
<span class="product-price">¥1999起</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<i class="fas fa-circle"></i>
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<span class="product-name">智能摄像机</span>
|
||||
<span class="product-price">¥179起</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 一键起灯 -->
|
||||
<div class="recommendation-card">
|
||||
<div class="card-header">
|
||||
<div class="card-icon">
|
||||
<i class="fas fa-lightbulb"></i>
|
||||
</div>
|
||||
<h3>一键起灯</h3>
|
||||
<p class="card-subtitle">开灯开窗 活力晨醒</p>
|
||||
</div>
|
||||
<div class="product-grid">
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<i class="fas fa-lightbulb"></i>
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<span class="product-name">小米台灯Pro</span>
|
||||
<span class="product-price">¥199起</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<i class="fas fa-lightbulb"></i>
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<span class="product-name">小米智能灯泡</span>
|
||||
<span class="product-price">¥19起</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<i class="fas fa-lightbulb"></i>
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<span class="product-name">米家吸顶灯</span>
|
||||
<span class="product-price">¥349起</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 轻松家务 -->
|
||||
<div class="recommendation-card">
|
||||
<div class="card-header">
|
||||
<div class="card-icon">
|
||||
<i class="fas fa-broom"></i>
|
||||
</div>
|
||||
<h3>轻松家务</h3>
|
||||
<p class="card-subtitle">智能清洁 省心省力</p>
|
||||
</div>
|
||||
<div class="product-grid">
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<i class="fas fa-robot"></i>
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<span class="product-name">扫地机器人</span>
|
||||
<span class="product-price">¥2999起</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<i class="fas fa-wind"></i>
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<span class="product-name">小米空气净化器</span>
|
||||
<span class="product-price">¥799起</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<i class="fas fa-tv"></i>
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<span class="product-name">小米电视机</span>
|
||||
<span class="product-price">¥1499起</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 护眼开灯 -->
|
||||
<div class="recommendation-card">
|
||||
<div class="card-header">
|
||||
<div class="card-icon">
|
||||
<i class="fas fa-eye"></i>
|
||||
</div>
|
||||
<h3>护眼开灯</h3>
|
||||
<p class="card-subtitle">智能护眼 舒适阅读</p>
|
||||
</div>
|
||||
<div class="product-grid">
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<i class="fas fa-microphone"></i>
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<span class="product-name">小爱音箱Pro</span>
|
||||
<span class="product-price">¥299起</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<i class="fas fa-lightbulb"></i>
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<span class="product-name">米家智能灯</span>
|
||||
<span class="product-price">¥99起</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<div class="product-image">
|
||||
<i class="fas fa-tablet"></i>
|
||||
</div>
|
||||
<div class="product-info">
|
||||
<span class="product-name">小米平板5</span>
|
||||
<span class="product-price">¥1899起</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 底部导航 -->
|
||||
<nav class="bottom-nav">
|
||||
<div class="nav-item" onclick="location.href='home.html'">
|
||||
<i class="fas fa-home"></i>
|
||||
<span>米家</span>
|
||||
</div>
|
||||
<div class="nav-item" onclick="location.href='smart.html'">
|
||||
<i class="fas fa-cube"></i>
|
||||
<span>智能</span>
|
||||
</div>
|
||||
<div class="nav-item" onclick="location.href='product.html'">
|
||||
<i class="fas fa-star"></i>
|
||||
<span>产品</span>
|
||||
</div>
|
||||
<div class="nav-item" onclick="location.href='mall.html'">
|
||||
<i class="fas fa-shopping-bag"></i>
|
||||
<span>商城</span>
|
||||
</div>
|
||||
<div class="nav-item" onclick="location.href='profile.html'">
|
||||
<i class="fas fa-user"></i>
|
||||
<span>我的</span>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<script src="scripts/main.js"></script>
|
||||
<script>
|
||||
// 标签切换功能
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const tabItems = document.querySelectorAll('.tab-item');
|
||||
|
||||
tabItems.forEach(tab => {
|
||||
tab.addEventListener('click', function() {
|
||||
tabItems.forEach(t => t.classList.remove('active'));
|
||||
this.classList.add('active');
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
193
profile/settings.html
Normal file
193
profile/settings.html
Normal file
@ -0,0 +1,193 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>设置 - 米家智能家居</title>
|
||||
<link rel="stylesheet" href="../styles/common.css">
|
||||
<link rel="stylesheet" href="styles/settings.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" id="settings-page">
|
||||
<!-- 头部导航 -->
|
||||
<div class="settings-header">
|
||||
<div class="header-left">
|
||||
<i class="fas fa-arrow-left" onclick="history.back()"></i>
|
||||
<h1>设置</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 设置内容 -->
|
||||
<div class="settings-content">
|
||||
<!-- 更新设置 -->
|
||||
<div class="settings-section">
|
||||
<div class="section-title">更新</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">检查更新</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 首页设置 -->
|
||||
<div class="settings-section">
|
||||
<div class="section-title">首页</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">快捷开关音效</span>
|
||||
</div>
|
||||
<div class="toggle-switch active">
|
||||
<div class="toggle-slider"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">快捷卡片</span>
|
||||
<span class="item-subtitle">关</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">家庭房间管理</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 设备设置 -->
|
||||
<div class="settings-section">
|
||||
<div class="section-title">设备</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">紧急事件电话通知</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">自动发现设备</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">人脸识别管理</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">云存储管理</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 安全设置 -->
|
||||
<div class="settings-section">
|
||||
<div class="section-title">安全设置</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">消息设置</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">单位设置</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">人脸识别管理</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">云存储管理</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">安全设置</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">消息设置</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">单位设置</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 商城页面 -->
|
||||
<div class="settings-section">
|
||||
<div class="section-title">商城页面</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">商城页面</span>
|
||||
<span class="item-subtitle">已开启</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 隐私与安全 -->
|
||||
<div class="settings-section">
|
||||
<div class="section-title">隐私与安全</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">地区</span>
|
||||
<span class="item-subtitle">中国大陆</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">语言</span>
|
||||
<span class="item-subtitle">简体</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 帮助 -->
|
||||
<div class="settings-section">
|
||||
<div class="section-title">帮助</div>
|
||||
<div class="settings-item">
|
||||
<div class="item-content">
|
||||
<span class="item-title">系统权限管理</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// 切换开关功能
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const toggleSwitches = document.querySelectorAll('.toggle-switch');
|
||||
|
||||
toggleSwitches.forEach(toggle => {
|
||||
toggle.addEventListener('click', function() {
|
||||
this.classList.toggle('active');
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
210
profile/styles/home-network.css
Normal file
210
profile/styles/home-network.css
Normal file
@ -0,0 +1,210 @@
|
||||
/* 家庭网络页面样式 */
|
||||
#home-network-page {
|
||||
background-color: #f5f5f5;
|
||||
min-height: 100vh;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
/* 网络状态卡片 */
|
||||
.network-status-card {
|
||||
background: white;
|
||||
margin: 16px;
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
||||
}
|
||||
|
||||
.status-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.status-header h2 {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.status-header i {
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.network-quality {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.quality-indicator {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.quality-bars {
|
||||
display: flex;
|
||||
gap: 3px;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.bar {
|
||||
width: 4px;
|
||||
background-color: #e0e0e0;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.bar:nth-child(1) {
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.bar:nth-child(2) {
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.bar:nth-child(3) {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.bar.active {
|
||||
background-color: #4CAF50;
|
||||
}
|
||||
|
||||
.quality-text {
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.quality-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.status-label {
|
||||
background-color: #f0f0f0;
|
||||
color: #666;
|
||||
padding: 4px 8px;
|
||||
border-radius: 12px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* 设备区块 */
|
||||
.device-section {
|
||||
background: white;
|
||||
margin: 0 16px 12px;
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.section-title i {
|
||||
font-size: 16px;
|
||||
color: #4A90E2;
|
||||
}
|
||||
|
||||
.section-title span {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.section-header > i {
|
||||
color: #ddd;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.device-stats {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.stat-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.stat-number {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 本地控制区块 */
|
||||
.local-control-section {
|
||||
background: white;
|
||||
margin: 0 16px;
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
||||
}
|
||||
|
||||
.local-control-section .section-header {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.control-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.status-text {
|
||||
font-size: 14px;
|
||||
color: #ff9500;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.section-description p {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
color: #999;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 414px) {
|
||||
.network-status-card,
|
||||
.device-section,
|
||||
.local-control-section {
|
||||
margin-left: 12px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.quality-text {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.stat-number {
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
365
profile/styles/mijiazhongce.css
Normal file
365
profile/styles/mijiazhongce.css
Normal file
@ -0,0 +1,365 @@
|
||||
/* 米家众测页面样式 */
|
||||
|
||||
/* 页面容器 */
|
||||
#mijiazhongce-page {
|
||||
background: #f5f5f5;
|
||||
min-height: 100vh;
|
||||
padding-bottom: 80px;
|
||||
}
|
||||
|
||||
/* 顶部导航 */
|
||||
.header {
|
||||
background: white;
|
||||
padding: 15px 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.header-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.header-left i {
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 众测产品列表 */
|
||||
.test-products {
|
||||
padding: 20px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
/* 产品卡片 */
|
||||
.product-card {
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.product-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
/* 产品头部 */
|
||||
.product-header {
|
||||
padding: 10px 12px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: #fafafa;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.product-period {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.product-status {
|
||||
font-size: 10px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 8px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.product-status.new {
|
||||
background: #ff6900;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.product-status.free {
|
||||
background: #4ECDC4;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.my-test {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
right: 10px;
|
||||
background: #4CAF50;
|
||||
color: white;
|
||||
font-size: 10px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 0 0 8px 8px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 产品图片 */
|
||||
.product-image {
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
.product-image img {
|
||||
width: 100%;
|
||||
max-width: 120px;
|
||||
height: auto;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* 产品信息 */
|
||||
.product-info {
|
||||
padding: 15px 12px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
left: 12px;
|
||||
background: #999;
|
||||
color: white;
|
||||
font-size: 10px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 10px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.status-badge.ended {
|
||||
background: #999;
|
||||
}
|
||||
|
||||
.status-badge.active {
|
||||
background: #4CAF50;
|
||||
}
|
||||
|
||||
.product-name {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin: 8px 0;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.product-details {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
.market-price {
|
||||
font-size: 11px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.quota {
|
||||
font-size: 11px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
/* 申请者信息 */
|
||||
.applicant-info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.applicant-avatars {
|
||||
display: flex;
|
||||
gap: -8px;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, #4A90E2, #667eea);
|
||||
border: 2px solid white;
|
||||
margin-left: -8px;
|
||||
}
|
||||
|
||||
.avatar:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.avatar:nth-child(2) {
|
||||
background: linear-gradient(135deg, #4ECDC4, #44A08D);
|
||||
}
|
||||
|
||||
.avatar:nth-child(3) {
|
||||
background: linear-gradient(135deg, #f093fb, #f5576c);
|
||||
}
|
||||
|
||||
.applicant-count {
|
||||
font-size: 11px;
|
||||
color: #666;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 480px) {
|
||||
.test-products {
|
||||
padding: 15px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.product-card {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.product-header {
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.product-period {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.product-status {
|
||||
font-size: 9px;
|
||||
padding: 1px 4px;
|
||||
}
|
||||
|
||||
.product-image {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.product-image img {
|
||||
max-width: 100px;
|
||||
}
|
||||
|
||||
.product-info {
|
||||
padding: 12px 10px;
|
||||
}
|
||||
|
||||
.product-name {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.market-price,
|
||||
.quota,
|
||||
.applicant-count {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 动画效果 */
|
||||
@keyframes fadeInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.product-card {
|
||||
animation: fadeInUp 0.6s ease-out;
|
||||
}
|
||||
|
||||
.product-card:nth-child(1) {
|
||||
animation-delay: 0.1s;
|
||||
}
|
||||
|
||||
.product-card:nth-child(2) {
|
||||
animation-delay: 0.2s;
|
||||
}
|
||||
|
||||
.product-card:nth-child(3) {
|
||||
animation-delay: 0.3s;
|
||||
}
|
||||
|
||||
.product-card:nth-child(4) {
|
||||
animation-delay: 0.4s;
|
||||
}
|
||||
|
||||
.product-card:nth-child(5) {
|
||||
animation-delay: 0.5s;
|
||||
}
|
||||
|
||||
.product-card:nth-child(6) {
|
||||
animation-delay: 0.6s;
|
||||
}
|
||||
|
||||
/* 特殊样式 */
|
||||
.product-card:nth-child(2) {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.product-card:nth-child(2)::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, #4CAF50, #45a049);
|
||||
border-radius: 12px 12px 0 0;
|
||||
}
|
||||
|
||||
/* 0元抽奖特殊样式 */
|
||||
.product-card:has(.product-status.free) {
|
||||
border: 2px solid #4ECDC4;
|
||||
}
|
||||
|
||||
.product-card:has(.product-status.free) .product-header {
|
||||
background: linear-gradient(135deg, #4ECDC4, #44A08D);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.product-card:has(.product-status.free) .product-period {
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* 滚动优化 */
|
||||
.test-products {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* 加载状态 */
|
||||
.product-card.loading {
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.product-card.loading::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: -10px 0 0 -10px;
|
||||
border: 2px solid #f3f3f3;
|
||||
border-top: 2px solid #ff6900;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
309
profile/styles/product-encyclopedia.css
Normal file
309
profile/styles/product-encyclopedia.css
Normal file
@ -0,0 +1,309 @@
|
||||
/* 产品百科页面样式 */
|
||||
|
||||
#product-encyclopedia-page {
|
||||
background: #f8f9fa;
|
||||
min-height: 100vh;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
/* 页面头部 */
|
||||
.page-header {
|
||||
background: white;
|
||||
padding: 12px 0;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.header-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 16px;
|
||||
max-width: 414px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 18px;
|
||||
color: #333;
|
||||
padding: 8px;
|
||||
margin-right: 12px;
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.back-btn:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin: 0;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
margin-right: 32px;
|
||||
}
|
||||
|
||||
/* 搜索区域 */
|
||||
.search-section {
|
||||
padding: 16px;
|
||||
background: white;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.search-box {
|
||||
position: relative;
|
||||
background: #f5f5f5;
|
||||
border-radius: 20px;
|
||||
padding: 12px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search-box i {
|
||||
color: #999;
|
||||
margin-right: 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
border: none;
|
||||
background: none;
|
||||
outline: none;
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.search-input::placeholder {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* 分类导航 */
|
||||
.category-nav {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
background: white;
|
||||
padding: 16px 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.category-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
padding: 8px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.category-item:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.category-item.active .category-icon {
|
||||
background: linear-gradient(135deg, #4ECDC4, #44A08D);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.category-icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
background: #f5f5f5;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 4px;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.category-icon i {
|
||||
font-size: 16px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.category-item.active .category-icon i {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.category-item span {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.category-item.active span {
|
||||
color: #4ECDC4;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 产品区域 */
|
||||
.section {
|
||||
background: white;
|
||||
margin-bottom: 8px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.section-header h2 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.section-header i {
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* 产品列表 */
|
||||
.product-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.product-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 12px;
|
||||
background: #f8f9fa;
|
||||
border-radius: 12px;
|
||||
transition: all 0.2s;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.product-item:hover {
|
||||
background: #f0f0f0;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.product-image {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
margin-right: 12px;
|
||||
background: white;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.product-image img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.product-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.product-info h3 {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
margin: 0 0 4px 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.product-brand {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 375px) {
|
||||
.category-nav {
|
||||
padding: 12px 4px;
|
||||
}
|
||||
|
||||
.category-item {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.category-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.category-icon i {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.category-item span {
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 动画效果 */
|
||||
@keyframes fadeInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.section {
|
||||
animation: fadeInUp 0.3s ease-out;
|
||||
}
|
||||
|
||||
.product-item {
|
||||
animation: fadeInUp 0.3s ease-out;
|
||||
}
|
||||
|
||||
.product-item:nth-child(2) {
|
||||
animation-delay: 0.1s;
|
||||
}
|
||||
|
||||
.product-item:nth-child(3) {
|
||||
animation-delay: 0.2s;
|
||||
}
|
||||
|
||||
/* 加载状态 */
|
||||
.loading {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 40px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.loading::after {
|
||||
content: '';
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border: 2px solid #f3f3f3;
|
||||
border-top: 2px solid #4ECDC4;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
368
profile/styles/scene.css
Normal file
368
profile/styles/scene.css
Normal file
@ -0,0 +1,368 @@
|
||||
/* 智能场景页面样式 */
|
||||
|
||||
/* 页面容器 */
|
||||
#scene-page {
|
||||
background: #f5f5f5;
|
||||
min-height: 100vh;
|
||||
padding-bottom: 80px;
|
||||
}
|
||||
|
||||
/* 顶部导航 */
|
||||
.header {
|
||||
background: linear-gradient(135deg, #8B4513, #D2691E);
|
||||
padding: 15px 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: white;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.header-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.header-left i {
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.header-right {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
font-size: 13px;
|
||||
padding: 4px 8px;
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
opacity: 0.7;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tab-item.active {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* 主要场景卡片 */
|
||||
.main-scene-card {
|
||||
margin: 20px;
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.scene-background {
|
||||
background: linear-gradient(135deg, #8B4513, #D2691E, #CD853F);
|
||||
padding: 30px;
|
||||
position: relative;
|
||||
min-height: 200px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.scene-content {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.scene-devices {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.device-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
padding: 15px;
|
||||
border-radius: 12px;
|
||||
backdrop-filter: blur(10px);
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.device-item:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.device-item i {
|
||||
font-size: 24px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.device-label {
|
||||
font-size: 12px;
|
||||
color: white;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.scene-info h2 {
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 8px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.scene-info p {
|
||||
font-size: 14px;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 推荐卡片容器 */
|
||||
.recommendation-cards {
|
||||
padding: 0 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
/* 推荐卡片 */
|
||||
.recommendation-card {
|
||||
background: white;
|
||||
border-radius: 16px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.recommendation-card:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
/* 卡片头部 */
|
||||
.card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.card-icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, #ff6900, #ff8533);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.card-header h3 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.card-subtitle {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
margin: 0;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* 产品网格 */
|
||||
.product-grid {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.product-item {
|
||||
flex: 0 0 auto;
|
||||
width: 100px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.product-image {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
background: #f8f8f8;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto 10px;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.product-image:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.product-image i {
|
||||
font-size: 24px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.product-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.product-name {
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.product-price {
|
||||
font-size: 12px;
|
||||
color: #ff6900;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* 特殊卡片样式 */
|
||||
.recommendation-card:nth-child(1) .card-icon {
|
||||
background: linear-gradient(135deg, #4ECDC4, #44A08D);
|
||||
}
|
||||
|
||||
.recommendation-card:nth-child(2) .card-icon {
|
||||
background: linear-gradient(135deg, #FFD700, #FFA500);
|
||||
}
|
||||
|
||||
.recommendation-card:nth-child(3) .card-icon {
|
||||
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||
}
|
||||
|
||||
.recommendation-card:nth-child(4) .card-icon {
|
||||
background: linear-gradient(135deg, #f093fb, #f5576c);
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 480px) {
|
||||
.header {
|
||||
padding: 12px 15px;
|
||||
}
|
||||
|
||||
.header-right {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
font-size: 12px;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
.main-scene-card {
|
||||
margin: 15px;
|
||||
}
|
||||
|
||||
.scene-background {
|
||||
padding: 20px;
|
||||
min-height: 180px;
|
||||
}
|
||||
|
||||
.scene-devices {
|
||||
gap: 15px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.device-item {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.device-item i {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.scene-info h2 {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.recommendation-cards {
|
||||
padding: 0 15px;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.recommendation-card {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.product-grid {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.product-item {
|
||||
width: 90px;
|
||||
}
|
||||
|
||||
.product-image {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 动画效果 */
|
||||
@keyframes fadeInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.recommendation-card {
|
||||
animation: fadeInUp 0.6s ease-out;
|
||||
}
|
||||
|
||||
.recommendation-card:nth-child(1) {
|
||||
animation-delay: 0.1s;
|
||||
}
|
||||
|
||||
.recommendation-card:nth-child(2) {
|
||||
animation-delay: 0.2s;
|
||||
}
|
||||
|
||||
.recommendation-card:nth-child(3) {
|
||||
animation-delay: 0.3s;
|
||||
}
|
||||
|
||||
.recommendation-card:nth-child(4) {
|
||||
animation-delay: 0.4s;
|
||||
}
|
||||
|
||||
/* 滚动条样式 */
|
||||
.product-grid::-webkit-scrollbar {
|
||||
height: 4px;
|
||||
}
|
||||
|
||||
.product-grid::-webkit-scrollbar-track {
|
||||
background: #f1f1f1;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.product-grid::-webkit-scrollbar-thumb {
|
||||
background: #ccc;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.product-grid::-webkit-scrollbar-thumb:hover {
|
||||
background: #999;
|
||||
}
|
||||
179
profile/styles/settings.css
Normal file
179
profile/styles/settings.css
Normal file
@ -0,0 +1,179 @@
|
||||
/* 设置页面专用样式 */
|
||||
|
||||
/* 设置页面样式 */
|
||||
.settings-header {
|
||||
background: white;
|
||||
padding: 15px 20px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.settings-content {
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.settings-section {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
padding: 15px 20px 10px 20px;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.settings-item {
|
||||
background: white;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 15px 20px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.settings-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.item-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.item-title {
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.item-subtitle {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.settings-item > i {
|
||||
color: #ccc;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* 设置项图标 */
|
||||
.settings-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin-right: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #ff6900;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* 设置项值显示 */
|
||||
.settings-value {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
/* 开关样式 */
|
||||
.settings-switch {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* 分组标题 */
|
||||
.settings-group-title {
|
||||
background: #f8f8f8;
|
||||
padding: 12px 20px;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
font-weight: 500;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
/* 危险操作样式 */
|
||||
.settings-item.danger .item-title {
|
||||
color: #ff3b30;
|
||||
}
|
||||
|
||||
.settings-item.danger .settings-icon {
|
||||
color: #ff3b30;
|
||||
}
|
||||
|
||||
/* 设置项悬停效果 */
|
||||
.settings-item:hover {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
/* 设置项禁用状态 */
|
||||
.settings-item.disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.settings-item.disabled:hover {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
/* 设置页面特殊布局 */
|
||||
.settings-container {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
/* 版本信息 */
|
||||
.version-info {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* 账户信息卡片 */
|
||||
.account-card {
|
||||
background: white;
|
||||
margin: 20px;
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
||||
}
|
||||
|
||||
.account-avatar {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.account-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.account-name {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.account-email {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.account-arrow {
|
||||
color: #ccc;
|
||||
font-size: 14px;
|
||||
}
|
||||
409
profile/styles/user-profile.css
Normal file
409
profile/styles/user-profile.css
Normal file
@ -0,0 +1,409 @@
|
||||
/* 个人资料页面样式 */
|
||||
|
||||
/* 页面容器 */
|
||||
#user-profile-page {
|
||||
background: #f5f5f5;
|
||||
min-height: 100vh;
|
||||
padding-bottom: 80px;
|
||||
}
|
||||
|
||||
/* 顶部导航 */
|
||||
.header {
|
||||
background: white;
|
||||
padding: 15px 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.header-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.header-left i {
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
color: #333;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.header-left i:hover {
|
||||
color: #ff6900;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 用户头像区域 */
|
||||
.profile-avatar-section {
|
||||
background: white;
|
||||
padding: 40px 20px;
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.avatar-container {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.user-avatar-large {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
border: 4px solid #f0f0f0;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.user-avatar-large:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.user-avatar-large img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.camera-icon {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background: #ff6900;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
border: 3px solid white;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.camera-icon:hover {
|
||||
background: #e55a00;
|
||||
}
|
||||
|
||||
/* 资料区域 */
|
||||
.profile-section {
|
||||
background: white;
|
||||
margin-bottom: 20px;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.section-title {
|
||||
padding: 20px 20px 10px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
/* 资料项目 */
|
||||
.profile-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 15px 20px;
|
||||
border-bottom: 1px solid #f8f8f8;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.profile-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.profile-item:hover {
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
.item-label {
|
||||
font-size: 15px;
|
||||
color: #333;
|
||||
min-width: 80px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.item-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.item-value {
|
||||
font-size: 15px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.item-value.masked {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.item-status {
|
||||
font-size: 13px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 10px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.item-status.bound {
|
||||
background: #e8f5e8;
|
||||
color: #4CAF50;
|
||||
}
|
||||
|
||||
.profile-item i.fa-chevron-right {
|
||||
font-size: 14px;
|
||||
color: #ccc;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
/* 小头像 */
|
||||
.mini-avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
border: 2px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.mini-avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
/* 开关按钮 */
|
||||
.toggle-switch {
|
||||
width: 50px;
|
||||
height: 28px;
|
||||
background: #ddd;
|
||||
border-radius: 14px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.toggle-switch.active {
|
||||
background: #4CAF50;
|
||||
}
|
||||
|
||||
.toggle-slider {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: white;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
transition: transform 0.3s ease;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.toggle-switch.active .toggle-slider {
|
||||
transform: translateX(22px);
|
||||
}
|
||||
|
||||
/* 注销登录区域 */
|
||||
.logout-section {
|
||||
padding: 40px 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logout-btn {
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
padding: 15px;
|
||||
background: white;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 8px;
|
||||
font-size: 16px;
|
||||
color: #666;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.logout-btn:hover {
|
||||
background: #f5f5f5;
|
||||
border-color: #ccc;
|
||||
}
|
||||
|
||||
.logout-btn:active {
|
||||
background: #eeeeee;
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 480px) {
|
||||
.profile-avatar-section {
|
||||
padding: 30px 15px;
|
||||
}
|
||||
|
||||
.user-avatar-large {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.camera-icon {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
padding: 15px 15px 8px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.profile-item {
|
||||
padding: 12px 15px;
|
||||
}
|
||||
|
||||
.item-label {
|
||||
font-size: 14px;
|
||||
min-width: 70px;
|
||||
}
|
||||
|
||||
.item-value {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.mini-avatar {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
}
|
||||
|
||||
.toggle-switch {
|
||||
width: 45px;
|
||||
height: 25px;
|
||||
border-radius: 12.5px;
|
||||
}
|
||||
|
||||
.toggle-slider {
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
}
|
||||
|
||||
.toggle-switch.active .toggle-slider {
|
||||
transform: translateX(20px);
|
||||
}
|
||||
|
||||
.logout-section {
|
||||
padding: 30px 15px;
|
||||
}
|
||||
|
||||
.logout-btn {
|
||||
padding: 12px;
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 动画效果 */
|
||||
@keyframes fadeInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.profile-section {
|
||||
animation: fadeInUp 0.6s ease-out;
|
||||
}
|
||||
|
||||
.profile-section:nth-child(2) {
|
||||
animation-delay: 0.1s;
|
||||
}
|
||||
|
||||
.profile-section:nth-child(3) {
|
||||
animation-delay: 0.2s;
|
||||
}
|
||||
|
||||
.profile-section:nth-child(4) {
|
||||
animation-delay: 0.3s;
|
||||
}
|
||||
|
||||
.profile-avatar-section {
|
||||
animation: fadeInUp 0.6s ease-out;
|
||||
}
|
||||
|
||||
/* 点击效果 */
|
||||
.profile-item:active {
|
||||
background: #f0f0f0;
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.camera-icon:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
/* 加载状态 */
|
||||
.profile-item.loading {
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.profile-item.loading::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border: 2px solid #f3f3f3;
|
||||
border-top: 2px solid #ff6900;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* 特殊样式 */
|
||||
.profile-item:has(.fa-chevron-right) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.profile-item:has(.fa-chevron-right):hover {
|
||||
background: #f8f8f8;
|
||||
}
|
||||
|
||||
.profile-item:has(.fa-chevron-right):hover i.fa-chevron-right {
|
||||
color: #ff6900;
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
/* 滚动优化 */
|
||||
#user-profile-page {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* 焦点状态 */
|
||||
.toggle-switch:focus {
|
||||
outline: 2px solid #ff6900;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.logout-btn:focus {
|
||||
outline: 2px solid #ff6900;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
376
profile/styles/whole-house-smart.css
Normal file
376
profile/styles/whole-house-smart.css
Normal file
@ -0,0 +1,376 @@
|
||||
/* 全屋智能页面样式 */
|
||||
#whole-house-smart-page {
|
||||
background-color: #f5f5f5;
|
||||
min-height: 100vh;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
/* 页面头部 */
|
||||
.page-header {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
padding: 15px 0;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.header-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 20px;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.back-btn, .info-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
padding: 8px;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.back-btn:hover, .info-btn:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 分类导航 */
|
||||
.category-section {
|
||||
background: white;
|
||||
margin: 20px;
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.category-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
gap: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.category-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.category-item:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.category-icon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 8px;
|
||||
color: white;
|
||||
font-size: 20px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.category-item span {
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 1V1定制服务 */
|
||||
.service-section {
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.service-card {
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.service-card h2 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 15px 0;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.service-banner {
|
||||
background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
color: white;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.banner-text h3 {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
.banner-text p {
|
||||
font-size: 14px;
|
||||
margin: 0 0 15px 0;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.detail-btn {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
color: white;
|
||||
padding: 8px 16px;
|
||||
border-radius: 20px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.detail-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.banner-image {
|
||||
width: 80px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.banner-image img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* 自己动手搭建 */
|
||||
.diy-section {
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.diy-card {
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.diy-card h2 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 15px 0;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.diy-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.diy-item {
|
||||
background: #f8f9fa;
|
||||
border-radius: 12px;
|
||||
padding: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.diy-image {
|
||||
width: 80px;
|
||||
height: 60px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.diy-image img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.diy-info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.diy-info p {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.guide-btn {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 8px 16px;
|
||||
border-radius: 20px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.guide-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
|
||||
}
|
||||
|
||||
/* 全屋智能入门套餐 */
|
||||
.package-section {
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.package-card {
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.package-header {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.package-header h2 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 5px 0;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.package-header p {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.package-image {
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
}
|
||||
|
||||
.package-image img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 768px) {
|
||||
.category-grid {
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.category-icon {
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.category-item span {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.service-banner {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.banner-image {
|
||||
width: 100px;
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
.diy-item {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.diy-info {
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.category-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
.page-header {
|
||||
padding: 12px 0;
|
||||
}
|
||||
|
||||
.header-content {
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
.service-section,
|
||||
.diy-section,
|
||||
.package-section,
|
||||
.category-section {
|
||||
margin: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 动画效果 */
|
||||
@keyframes fadeInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.category-section,
|
||||
.service-section,
|
||||
.diy-section,
|
||||
.package-section {
|
||||
animation: fadeInUp 0.6s ease-out;
|
||||
}
|
||||
|
||||
.service-section {
|
||||
animation-delay: 0.1s;
|
||||
}
|
||||
|
||||
.diy-section {
|
||||
animation-delay: 0.2s;
|
||||
}
|
||||
|
||||
.package-section {
|
||||
animation-delay: 0.3s;
|
||||
}
|
||||
128
profile/user-profile.html
Normal file
128
profile/user-profile.html
Normal file
@ -0,0 +1,128 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>个人资料 - 米家智能家居</title>
|
||||
<link rel="stylesheet" href="../styles/common.css">
|
||||
<link rel="stylesheet" href="styles/user-profile.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" id="user-profile-page">
|
||||
<!-- 顶部导航 -->
|
||||
<div class="header">
|
||||
<div class="header-left">
|
||||
<i class="fas fa-arrow-left" onclick="history.back()"></i>
|
||||
<span class="page-title">个人资料</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 用户头像区域 -->
|
||||
<div class="profile-avatar-section">
|
||||
<div class="avatar-container">
|
||||
<div class="user-avatar-large">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50' fill='%234A90E2'/%3E%3Cpath d='M50 30c8 0 15 7 15 15s-7 15-15 15-15-7-15-15 7-15 15-15zm0 35c12 0 22 6 22 14v6H28v-6c0-8 10-14 22-14z' fill='white'/%3E%3C/svg%3E" alt="用户头像">
|
||||
</div>
|
||||
<div class="camera-icon">
|
||||
<i class="fas fa-camera"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 基础资料 -->
|
||||
<div class="profile-section">
|
||||
<div class="section-title">基础资料</div>
|
||||
|
||||
<div class="profile-item">
|
||||
<div class="item-label">头像</div>
|
||||
<div class="item-content">
|
||||
<div class="mini-avatar">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50' fill='%234A90E2'/%3E%3Cpath d='M50 30c8 0 15 7 15 15s-7 15-15 15-15-7-15-15 7-15 15-15zm0 35c12 0 22 6 22 14v6H28v-6c0-8 10-14 22-14z' fill='white'/%3E%3C/svg%3E" alt="头像">
|
||||
</div>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
|
||||
<div class="profile-item">
|
||||
<div class="item-label">账号</div>
|
||||
<div class="item-content">
|
||||
<span class="item-value">1094307500</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="profile-item">
|
||||
<div class="item-label">姓名</div>
|
||||
<div class="item-content">
|
||||
<span class="item-value">shenghuo2</span>
|
||||
</div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 账号绑定 -->
|
||||
<div class="profile-section">
|
||||
<div class="section-title">账号绑定</div>
|
||||
|
||||
<div class="profile-item">
|
||||
<div class="item-label">微信账号</div>
|
||||
<div class="item-content">
|
||||
<span class="item-status bound">已绑定</span>
|
||||
<div class="toggle-switch active">
|
||||
<div class="toggle-slider"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 密保资料 -->
|
||||
<div class="profile-section">
|
||||
<div class="section-title">密保资料</div>
|
||||
|
||||
<div class="profile-item">
|
||||
<div class="item-label">手机号</div>
|
||||
<div class="item-content">
|
||||
<span class="item-value masked">186****50</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="profile-item">
|
||||
<div class="item-label">账号安全</div>
|
||||
<div class="item-content"></div>
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 注销登录 -->
|
||||
<div class="logout-section">
|
||||
<button class="logout-btn">注销登录</button>
|
||||
</div>
|
||||
|
||||
<!-- 底部导航 -->
|
||||
<nav class="bottom-nav">
|
||||
<div class="nav-item" onclick="location.href='home.html'">
|
||||
<i class="fas fa-home"></i>
|
||||
<span>米家</span>
|
||||
</div>
|
||||
<div class="nav-item" onclick="location.href='smart.html'">
|
||||
<i class="fas fa-cube"></i>
|
||||
<span>智能</span>
|
||||
</div>
|
||||
<div class="nav-item" onclick="location.href='product.html'">
|
||||
<i class="fas fa-star"></i>
|
||||
<span>产品</span>
|
||||
</div>
|
||||
<div class="nav-item" onclick="location.href='mall.html'">
|
||||
<i class="fas fa-shopping-bag"></i>
|
||||
<span>商城</span>
|
||||
</div>
|
||||
<div class="nav-item active">
|
||||
<i class="fas fa-user"></i>
|
||||
<span>我的</span>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<script src="../scripts/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
124
profile/whole-house-smart.html
Normal file
124
profile/whole-house-smart.html
Normal file
@ -0,0 +1,124 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>全屋智能 - 米家智能家居</title>
|
||||
<link rel="stylesheet" href="../styles/common.css">
|
||||
<link rel="stylesheet" href="styles/whole-house-smart.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" id="whole-house-smart-page">
|
||||
<!-- 头部导航 -->
|
||||
<header class="page-header">
|
||||
<div class="header-content">
|
||||
<button class="back-btn" onclick="history.back()">
|
||||
<i class="fas fa-chevron-left"></i>
|
||||
</button>
|
||||
<h1 class="page-title">全屋智能</h1>
|
||||
<button class="info-btn">
|
||||
<i class="fas fa-info-circle"></i>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 分类导航 -->
|
||||
<div class="category-section">
|
||||
<div class="category-grid">
|
||||
<div class="category-item">
|
||||
<div class="category-icon" style="background: linear-gradient(135deg, #4ECDC4, #44A08D);">
|
||||
<i class="fas fa-wifi"></i>
|
||||
</div>
|
||||
<span>家居中枢</span>
|
||||
</div>
|
||||
<div class="category-item">
|
||||
<div class="category-icon" style="background: linear-gradient(135deg, #FFD93D, #FF6B6B);">
|
||||
<i class="fas fa-lightbulb"></i>
|
||||
</div>
|
||||
<span>智能照明</span>
|
||||
</div>
|
||||
<div class="category-item">
|
||||
<div class="category-icon" style="background: linear-gradient(135deg, #667eea, #764ba2);">
|
||||
<i class="fas fa-shield-alt"></i>
|
||||
</div>
|
||||
<span>智能安防</span>
|
||||
</div>
|
||||
<div class="category-item">
|
||||
<div class="category-icon" style="background: linear-gradient(135deg, #f093fb, #f5576c);">
|
||||
<i class="fas fa-thermometer-half"></i>
|
||||
</div>
|
||||
<span>智能温控</span>
|
||||
</div>
|
||||
<div class="category-item">
|
||||
<div class="category-icon" style="background: linear-gradient(135deg, #4facfe, #00f2fe);">
|
||||
<i class="fas fa-window-maximize"></i>
|
||||
</div>
|
||||
<span>智能窗帘</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 1V1定制服务 -->
|
||||
<div class="service-section">
|
||||
<div class="service-card">
|
||||
<h2>1V1 定制服务</h2>
|
||||
<div class="service-content">
|
||||
<div class="service-banner">
|
||||
<div class="banner-text">
|
||||
<h3>小米全屋智能定制</h3>
|
||||
<p>设计·安装·调试,一站式服务</p>
|
||||
<button class="detail-btn">了解详情</button>
|
||||
</div>
|
||||
<div class="banner-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Crect width='120' height='80' fill='%23FFD93D' rx='8'/%3E%3Crect x='20' y='20' width='80' height='40' fill='%23FFA500' rx='4'/%3E%3Ccircle cx='100' cy='20' r='8' fill='%23FF6B6B'/%3E%3Ctext x='60' y='45' text-anchor='middle' font-size='10' fill='white'%3E智能家居%3C/text%3E%3C/svg%3E" alt="智能家居定制">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 自己动手搭建 -->
|
||||
<div class="diy-section">
|
||||
<div class="diy-card">
|
||||
<h2>自己动手,搭建全屋智能</h2>
|
||||
<div class="diy-content">
|
||||
<div class="diy-item">
|
||||
<div class="diy-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Crect width='120' height='80' fill='%23f5f5f5' rx='8'/%3E%3Crect x='20' y='20' width='80' height='40' fill='%23ddd' rx='4'/%3E%3Ccircle cx='30' cy='30' r='5' fill='%23666'/%3E%3Ccircle cx='90' cy='30' r='5' fill='%23666'/%3E%3Ctext x='60' y='45' text-anchor='middle' font-size='8' fill='%23666'%3E智能开关%3C/text%3E%3C/svg%3E" alt="智能开关">
|
||||
</div>
|
||||
<div class="diy-info">
|
||||
<p>智能开关、智能灯如何选择?</p>
|
||||
<button class="guide-btn">立即查看</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="diy-item">
|
||||
<div class="diy-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Crect width='120' height='80' fill='%23e8f5e8' rx='8'/%3E%3Crect x='30' y='25' width='60' height='30' fill='%23a8d8a8' rx='4'/%3E%3Ccircle cx='45' cy='40' r='3' fill='%234a7c59'/%3E%3Ccircle cx='75' cy='40' r='3' fill='%234a7c59'/%3E%3Ctext x='60' y='70' text-anchor='middle' font-size='8' fill='%23666'%3E智能指南%3C/text%3E%3C/svg%3E" alt="小米全屋智能指南">
|
||||
</div>
|
||||
<div class="diy-info">
|
||||
<p>小米全屋智能指南</p>
|
||||
<button class="guide-btn">立即查看</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 全屋智能入门套餐 -->
|
||||
<div class="package-section">
|
||||
<div class="package-card">
|
||||
<div class="package-header">
|
||||
<h2>全屋智能入门套餐</h2>
|
||||
<p>必备6大单品</p>
|
||||
</div>
|
||||
<div class="package-image">
|
||||
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 100'%3E%3Crect width='150' height='100' fill='%23f8f9fa' rx='8'/%3E%3Crect x='20' y='20' width='25' height='15' fill='%23333' rx='2'/%3E%3Crect x='55' y='20' width='25' height='15' fill='%23666' rx='2'/%3E%3Crect x='90' y='20' width='25' height='15' fill='%23999' rx='2'/%3E%3Crect x='20' y='45' width='25' height='15' fill='%23333' rx='2'/%3E%3Crect x='55' y='45' width='25' height='15' fill='%23666' rx='2'/%3E%3Crect x='90' y='45' width='25' height='15' fill='%23999' rx='2'/%3E%3Ctext x='75' y='85' text-anchor='middle' font-size='10' fill='%23666'%3E智能套餐%3C/text%3E%3C/svg%3E" alt="全屋智能套餐">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="scripts/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user