Przeglądaj źródła

zbytest003-2025-02-19 06:50:25

genlitex 2 miesięcy temu
rodzic
commit
61b2ddc560

Plik diff jest za duży
+ 0 - 0
dist/assets/HomeView-DfiN5f6T.js


Plik diff jest za duży
+ 0 - 0
dist/assets/NewChatPage-BwQb1YuM.js


Plik diff jest za duży
+ 0 - 0
dist/assets/NewChatPage-DtvgPjGY.js


Plik diff jest za duży
+ 0 - 0
dist/assets/index-9yZvUXGh.js


Plik diff jest za duży
+ 1 - 1
dist/assets/index-Bij2Jxh0.js


Plik diff jest za duży
+ 0 - 0
dist/assets/index-CRNEOanV.css


+ 2 - 2
dist/index.html

@@ -4,8 +4,8 @@
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>Prototype Design</title>
-    <script type="module" crossorigin src="/ide/proxy/6001/assets/index-B1kCNetV.js"></script>
-    <link rel="stylesheet" crossorigin href="/ide/proxy/6001/assets/index-BtM_Gz6j.css">
+    <script type="module" crossorigin src="/ide/proxy/6005/assets/index-Bij2Jxh0.js"></script>
+    <link rel="stylesheet" crossorigin href="/ide/proxy/6005/assets/index-CRNEOanV.css">
   </head>
   <body>
     <div id="app"></div>

+ 1 - 1
src/router/index.js

@@ -5,7 +5,7 @@ const routes = [
   {
     path: '/',
     name: 'Home',
-    component: HomeView
+    component: () => import('../views/HomeView.vue')
   },
   {
     path: '/chat',

+ 147 - 12
src/views/HomeView.vue

@@ -1,19 +1,154 @@
 <template>
-  <div class="home">
-    <h2>欢迎使用Prototype Design, 请您根据您的需要设计您的Prototype</h2>
-  </div>
+  <a-layout>
+    <a-layout-header style="background: #fff; padding: 0;">
+      <a-row type="flex" align="middle" justify="space-between" style="margin: 0 24px;">
+        <a-col>
+          <a-image :width="120" src="@/assets/img/logo.png" />
+        </a-col>
+        <a-col>
+          <a-menu mode="horizontal" theme="light">
+            <a-menu-item key="home">
+              首页
+            </a-menu-item>
+            <a-menu-item key="products">
+              产品
+            </a-menu-item>
+            <a-menu-item key="about">
+              关于我们
+            </a-menu-item>
+            <a-menu-item key="contact">
+              联系我们
+            </a-menu-item>
+          </a-menu>
+        </a-col>
+        <a-col>
+          <a-button type="link" style="margin-right: 16px;">登录</a-button>
+          <a-button type="primary">注册</a-button>
+        </a-col>
+      </a-row>
+    </a-layout-header>
+    <a-layout-content style="margin: 24px;">
+      <a-carousel autoplay>
+        <a-carousel-item>
+          <a-image :width="'100%'" src="@/assets/img/banner1.png" />
+        </a-carousel-item>
+        <a-carousel-item>
+          <a-image :width="'100%'" src="@/assets/img/banner2.png" />
+        </a-carousel-item>
+      </a-carousel>
+      <a-row :gutter="16" style="margin-top: 24px;">
+        <a-col :span="24">
+          <h2>产品展示</h2>
+          <a-row :gutter="16">
+            <a-col :span="8" v-for="product in products" :key="product.id">
+              <a-card hoverable>
+                <a-image :width="'100%'" :src="product.image" />
+                <a-card-meta :title="product.name" :description="product.description"></a-card-meta>
+              </a-card>
+            </a-col>
+          </a-row>
+        </a-col>
+        <a-col :span="24">
+          <h2>特色推荐</h2>
+          <a-row :gutter="16">
+            <a-col :span="8" v-for="featured in featuredProducts" :key="featured.id">
+              <a-card hoverable>
+                <a-image :width="'100%'" :src="featured.image" />
+                <a-card-meta :title="featured.name" :description="featured.description"></a-card-meta>
+              </a-card>
+            </a-col>
+          </a-row>
+        </a-col>
+        <a-col :span="24">
+          <h2>新闻动态</h2>
+          <a-list :data-source="news" :bordered="false">
+            <a-list-item v-for="article in news" :key="article.id">
+              <a-card>
+                <a-card-meta :title="article.title" :description="article.content"></a-card-meta>
+              </a-card>
+            </a-list-item>
+          </a-list>
+        </a-col>
+        <a-col :span="24">
+          <h2>客户评价</h2>
+          <a-list :data-source="reviews" :bordered="false">
+            <a-list-item v-for="review in reviews" :key="review.id">
+              <a-card>
+                <a-card-meta :title="review.user" :description="review.comment"></a-card-meta>
+              </a-card>
+            </a-list-item>
+          </a-list>
+        </a-col>
+      </a-row>
+    </a-layout-content>
+    <a-layout-footer style="text-align: center;">
+      <p>版权所有 © 2025 公司名称. 保留所有权利.</p>
+      <p>联系方式: <a href="mailto:support@example.com">support@example.com</a></p>
+      <p>
+        <a href="https://www.facebook.com">Facebook</a> |
+        <a href="https://www.twitter.com">Twitter</a> |
+        <a href="https://www.linkedin.com">LinkedIn</a>
+      </p>
+      <p><a href="/sitemap">网站地图</a></p>
+    </a-layout-footer>
+  </a-layout>
 </template>
 
 <script>
-
-export default {}
+export default {
+  data() {
+    return {
+      products: [
+        { id: 1, image: '@/assets/img/product1.png', name: '产品1', description: '这是产品1的描述' },
+        { id: 2, image: '@/assets/img/product2.png', name: '产品2', description: '这是产品2的描述' },
+        { id: 3, image: '@/assets/img/product3.png', name: '产品3', description: '这是产品3的描述' }
+      ],
+      featuredProducts: [
+        { id: 1, image: '@/assets/img/featured1.png', name: '特色产品1', description: '这是特色产品1的描述' },
+        { id: 2, image: '@/assets/img/featured2.png', name: '特色产品2', description: '这是特色产品2的描述' },
+        { id: 3, image: '@/assets/img/featured3.png', name: '特色产品3', description: '这是特色产品3的描述' }
+      ],
+      news: [
+        { id: 1, title: '新闻标题1', content: '这是新闻1的内容' },
+        { id: 2, title: '新闻标题2', content: '这是新闻2的内容' }
+      ],
+      reviews: [
+        { id: 1, user: '用户1', comment: '非常好的产品!' },
+        { id: 2, user: '用户2', comment: '服务很好!' }
+      ]
+    };
+  }
+};
 </script>
-<style>
-.home {
-  height: 100vh;
-  width: 100vw;
-  display: flex;
-  justify-content: center;
-  align-items: center;
+
+<style scoped>
+.ant-layout-header {
+  position: fixed;
+  z-index: 1;
+  width: 100%;
+}
+
+.ant-layout-content {
+  margin-top: 64px;
+}
+
+.ant-carousel :deep(.slick-slide) {
+  text-align: center;
+  height: 400px;
+  line-height: 400px;
+  background: #364d79;
+  overflow: hidden;
+}
+
+.ant-carousel :deep(.slick-slide h3) {
+  color: #fff;
+}
+
+h2 {
+  margin-bottom: 16px;
+}
+
+.ant-list-item {
+  margin-bottom: 16px;
 }
 </style>

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików