yanghao 3 dni temu
rodzic
commit
5e34e33c3c

+ 0 - 25
new-portal/src/App.vue

@@ -1,25 +0,0 @@
-<script setup>
-import { RouterView } from 'vue-router'
-import AppHeader from './components/layout/AppHeader.vue'
-import AppFooter from './components/layout/AppFooter.vue'
-import BackToTop from './components/motion/BackToTop.vue'
-import FormBanner from './components/layout/FormBanner.vue'
-import SideButtons from './components/layout/SideButtons.vue' // 引入新的侧边按钮组件
-</script>
-
-<template>
-  <div class="app-shell">
-    <AppHeader />
-    <main class="app-main">
-      <RouterView v-slot="{ Component }">
-        <Transition name="page" mode="out-in">
-          <component :is="Component" />
-        </Transition>
-      </RouterView>
-    </main>
-    <FormBanner />
-    <AppFooter />
-    <BackToTop />
-    <SideButtons /> <!-- 使用新的侧边按钮组件 -->
-  </div>
-</template>

+ 0 - 52
new-portal/src/components/layout/SideButtons.vue

@@ -1,52 +0,0 @@
-<template>
-  <div class="side-buttons">
-    <div class="button-item" @click="handleFreeExperience">
-      <img src="https://placehold.co/64x64?text=免费体验" alt="免费体验图标" />
-      <span>免费体验</span>
-    </div>
-    <div class="button-item" @click="handleOnlineConsultation">
-      <img src="https://placehold.co/64x64?text=在线咨询" alt="在线咨询图标" />
-      <span>在线咨询</span>
-    </div>
-  </div>
-</template>
-
-<script setup>
-import { useRouter } from 'vue-router';
-
-const router = useRouter();
-
-const handleFreeExperience = () => {
-  // 处理免费体验逻辑,例如跳转页面
-  router.push('/free-experience');
-};
-
-const handleOnlineConsultation = () => {
-  // 处理在线咨询逻辑,例如打开聊天窗口或跳转页面
-  router.push('/online-consultation');
-};
-</script>
-
-<style scoped>
-.side-buttons {
-  position: fixed;
-  right: 20px;
-  top: 50%;
-  transform: translateY(-50%);
-  display: flex;
-  flex-direction: column;
-  gap: 10px;
-}
-
-.button-item {
-  display: flex;
-  align-items: center;
-  cursor: pointer;
-}
-
-.button-item img {
-  width: 32px;
-  height: 32px;
-  margin-right: 8px;
-}
-</style>

+ 1 - 1
src/assets/base.css

@@ -27,7 +27,7 @@
   --back-top: rgba(0, 0, 0, 0.1) 0px 6px 12px 1px;
 
   /* Layout */
-  --container-max: 1200px;
+  --container-max: 85vw;
   --radius-lg: 16px;
   --radius-md: 12px;
   --radius-sm: 10px;

+ 0 - 44
src/components/HelloWorld.vue

@@ -1,44 +0,0 @@
-<script setup>
-defineProps({
-  msg: {
-    type: String,
-    required: true,
-  },
-})
-</script>
-
-<template>
-  <div class="greetings">
-    <h1 class="green">{{ msg }}</h1>
-    <h3>
-      You’ve successfully created a project with
-      <a href="https://vite.dev/" target="_blank" rel="noopener">Vite</a> +
-      <a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>.
-    </h3>
-  </div>
-</template>
-
-<style scoped>
-h1 {
-  font-weight: 500;
-  font-size: 2.6rem;
-  position: relative;
-  top: -10px;
-}
-
-h3 {
-  font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
-  text-align: center;
-}
-
-@media (min-width: 1024px) {
-  .greetings h1,
-  .greetings h3 {
-    text-align: left;
-  }
-}
-</style>

+ 0 - 95
src/components/TheWelcome.vue

@@ -1,95 +0,0 @@
-<script setup>
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-
-const openReadmeInEditor = () => fetch('/__open-in-editor?file=README.md')
-</script>
-
-<template>
-  <WelcomeItem>
-    <template #icon>
-      <DocumentationIcon />
-    </template>
-    <template #heading>Documentation</template>
-
-    Vue’s
-    <a href="https://vuejs.org/" target="_blank" rel="noopener">official documentation</a>
-    provides you with all information you need to get started.
-  </WelcomeItem>
-
-  <WelcomeItem>
-    <template #icon>
-      <ToolingIcon />
-    </template>
-    <template #heading>Tooling</template>
-
-    This project is served and bundled with
-    <a href="https://vite.dev/guide/features.html" target="_blank" rel="noopener">Vite</a>. The
-    recommended IDE setup is
-    <a href="https://code.visualstudio.com/" target="_blank" rel="noopener">VSCode</a>
-    +
-    <a href="https://github.com/vuejs/language-tools" target="_blank" rel="noopener"
-      >Vue - Official</a
-    >. If you need to test your components and web pages, check out
-    <a href="https://vitest.dev/" target="_blank" rel="noopener">Vitest</a>
-    and
-    <a href="https://www.cypress.io/" target="_blank" rel="noopener">Cypress</a>
-    /
-    <a href="https://playwright.dev/" target="_blank" rel="noopener">Playwright</a>.
-
-    <br />
-
-    More instructions are available in
-    <a href="javascript:void(0)" @click="openReadmeInEditor"><code>README.md</code></a
-    >.
-  </WelcomeItem>
-
-  <WelcomeItem>
-    <template #icon>
-      <EcosystemIcon />
-    </template>
-    <template #heading>Ecosystem</template>
-
-    Get official tools and libraries for your project:
-    <a href="https://pinia.vuejs.org/" target="_blank" rel="noopener">Pinia</a>,
-    <a href="https://router.vuejs.org/" target="_blank" rel="noopener">Vue Router</a>,
-    <a href="https://test-utils.vuejs.org/" target="_blank" rel="noopener">Vue Test Utils</a>, and
-    <a href="https://github.com/vuejs/devtools" target="_blank" rel="noopener">Vue Dev Tools</a>. If
-    you need more resources, we suggest paying
-    <a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">Awesome Vue</a>
-    a visit.
-  </WelcomeItem>
-
-  <WelcomeItem>
-    <template #icon>
-      <CommunityIcon />
-    </template>
-    <template #heading>Community</template>
-
-    Got stuck? Ask your question on
-    <a href="https://chat.vuejs.org" target="_blank" rel="noopener">Vue Land</a>
-    (our official Discord server), or
-    <a href="https://stackoverflow.com/questions/tagged/vue.js" target="_blank" rel="noopener"
-      >StackOverflow</a
-    >. You should also follow the official
-    <a href="https://bsky.app/profile/vuejs.org" target="_blank" rel="noopener">@vuejs.org</a>
-    Bluesky account or the
-    <a href="https://x.com/vuejs" target="_blank" rel="noopener">@vuejs</a>
-    X account for latest news in the Vue world.
-  </WelcomeItem>
-
-  <WelcomeItem>
-    <template #icon>
-      <SupportIcon />
-    </template>
-    <template #heading>Support Vue</template>
-
-    As an independent project, Vue relies on community backing for its sustainability. You can help
-    us by
-    <a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>.
-  </WelcomeItem>
-</template>

+ 28 - 2
src/components/layout/FormBanner.vue

@@ -17,9 +17,21 @@
       <div class="form-container">
         <div class="form-row">
           <div class="form-field">
+            <label
+              for=""
+              style="position: absolute; top: 25%; padding-left: 5px"
+            >
+              <Icon icon="mdi-light:account" width="24" height="24" />
+            </label>
             <input type="text" placeholder="您的称呼" class="form-input" />
           </div>
           <div class="form-field">
+            <label
+              for=""
+              style="position: absolute; top: 28%; padding-left: 5px"
+            >
+              <Icon icon="mdi-light:phone" width="20" height="20" />
+            </label>
             <input type="tel" placeholder="您的手机号" class="form-input" />
           </div>
           <div class="form-field">
@@ -46,9 +58,21 @@
             </div>
           </div>
           <div class="form-field">
+            <label
+              for=""
+              style="position: absolute; top: 27%; padding-left: 5px"
+            >
+              <Icon icon="tabler:building" width="20" height="20" />
+            </label>
             <input type="text" placeholder="单位名称" class="form-input" />
           </div>
           <div class="form-field">
+            <label
+              for=""
+              style="position: absolute; top: 25%; padding-left: 5px"
+            >
+              <Icon icon="mdi-light:sitemap" width="20" height="20" />
+            </label>
             <input type="text" placeholder="所在部门" class="form-input" />
           </div>
         </div>
@@ -64,6 +88,7 @@
 <script setup>
 // 表单逻辑可以在这里添加
 import { ref } from "vue";
+import { Icon } from "@iconify/vue";
 
 const formData = ref({
   name: "",
@@ -117,7 +142,7 @@ const handleSubmit = () => {
   z-index: 2;
   color: white;
   padding: 0 20px;
-  max-width: 1000px;
+  max-width: 1200px;
   margin: 0 auto;
   width: 100%;
 }
@@ -153,11 +178,12 @@ const handleSubmit = () => {
 .form-field {
   flex: 1;
   min-width: 0;
+  position: relative;
 }
 
 .form-input {
   width: 100%;
-  padding: 16px 20px;
+  padding: 16px 30px;
   border: 0.5px solid rgba(255, 255, 255, 0.7);
 
   background: rgba(255, 255, 255, 0.2);

+ 6 - 5
src/views/HomeView.vue

@@ -279,12 +279,12 @@ const news = [
 
 const marketActivities = [
   {
-    title: "浪潮云洲亮相2025中国5G+工业互联网大会",
-    desc: "2025中国5G+工业互联网大会在武汉开幕,浪潮云洲精彩亮相。",
+    title: "DeepOil亮相2025中国5G+工业互联网大会",
+    desc: "2025中国5G+工业互联网大会在武汉开幕,DeepOil精彩亮相。",
     cover: banner1Url,
   },
   {
-    title: "浪潮云洲成功协办第十四届中国创新创业大赛工业智能体赛",
+    title: "DeepOil成功协办第十四届中国创新创业大赛工业智能体赛",
     desc: "推动工业智能化发展,助力企业创新转型。",
     cover: banner2Url,
   },
@@ -1111,8 +1111,8 @@ const partners = Array.from({ length: 12 }).map((_, idx) => ({
   position: relative;
   border-radius: 5px;
   padding: 12px 10px 10px;
-  border: 1px solid rgba(15, 23, 42, 0.06);
-  background: rgba(248, 250, 252, 0.9);
+  /* border: 1px solid rgba(15, 23, 42, 0.06); */
+  background: transparent;
   display: grid;
   place-items: center;
   gap: 8px;
@@ -1122,6 +1122,7 @@ const partners = Array.from({ length: 12 }).map((_, idx) => ({
     transform 180ms ease,
     box-shadow 180ms ease,
     border-color 180ms ease;
+  cursor: pointer;
 }
 
 .capModuleTile:hover {