feat: 新增3.0描述

This commit is contained in:
奔跑的面条 2026-11-15 23:07:42 +08:00
parent abd6d47cee
commit 04d5c70bf9
12 changed files with 279 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 KiB

After

Width:  |  Height:  |  Size: 1022 KiB

BIN
readme/GoViewPro2.0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

View File

@ -0,0 +1,3 @@
import IotEntry from './index.vue'
export { IotEntry }

View File

@ -0,0 +1,269 @@
<template>
<n-tooltip placement="bottom" trigger="hover">
<template #trigger>
<div class="go-iot-entry" @click="showModal = true">
<span class="iot-icon">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<!-- 中心节点 -->
<circle cx="12" cy="12" r="2.6" fill="currentColor" />
<!-- 信号波纹 -->
<path d="M7.76 7.76a6 6 0 0 0 0 8.48" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" />
<path d="M16.24 7.76a6 6 0 0 1 0 8.48" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" />
<path
d="M4.93 4.93a10 10 0 0 0 0 14.14"
stroke="currentColor"
stroke-width="1.8"
stroke-linecap="round"
opacity="0.55"
/>
<path
d="M19.07 4.93a10 10 0 0 1 0 14.14"
stroke="currentColor"
stroke-width="1.8"
stroke-linecap="round"
opacity="0.55"
/>
</svg>
</span>
<span class="iot-text">物联网</span>
<span class="iot-badge">NEW</span>
</div>
</template>
<span>GoViewPro 3.0 物联网功能</span>
</n-tooltip>
<n-modal
v-model:show="showModal"
class="go-iot-modal"
preset="card"
size="small"
:bordered="false"
transform-origin="center"
style="width: 1000px; max-width: 92vw"
>
<template #header>
<n-flex align="center" :size="10" :wrap="false">
<span class="iot-title-mark"></span>
<n-text strong class="iot-title">GoViewPro 3.0 物联网功能大升级</n-text>
<a
class="iot-go-btn"
:class="{ 'is-dark': designStore.getDarkTheme }"
href="https://ai.goviewlink.com/saas/"
target="_blank"
>
<span>立即前往查看</span>
<svg class="iot-go-arrow" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6 3.5L10.5 8L6 12.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</a>
</n-flex>
</template>
<n-carousel
class="go-iot-carousel"
autoplay
show-arrow
draggable
dot-type="line"
:interval="4000"
effect="slide"
@update:current-index="(i: number) => (currentIndex = i)"
>
<a v-for="item in imageList" :key="item.src" href="https://ai.goviewlink.com/saas/" target="_blank" class="iot-slide">
<img :src="item.src" :alt="item.title" />
</a>
</n-carousel>
<n-flex justify="center" class="iot-caption">
<n-text depth="2">{{ imageList[currentIndex]?.title }}</n-text>
</n-flex>
</n-modal>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { useDesignStore } from '@/store/modules/designStore/designStore'
const designStore = useDesignStore()
const showModal = ref(false)
const currentIndex = ref(0)
// 轮播图片来源:项目根目录 readme/iot,文件名格式「序号-标题.后缀」
const modules = import.meta.glob('/readme/iot/*.{png,jpg,jpeg,webp}', { eager: true, import: 'default' }) as Record<
string,
string
>
const imageList = Object.keys(modules)
.sort((a, b) => parseInt(a.split('/').pop()!) - parseInt(b.split('/').pop()!))
.map(path => {
const name = path.split('/').pop()!.replace(/\.\w+$/, '')
return { src: modules[path], title: name.replace(/^\d+-/, '').replace(/-/g, ' · ') }
})
</script>
<style lang="scss" scoped>
.go-iot-entry {
position: relative;
display: inline-flex;
align-items: center;
gap: 5px;
height: 28px;
padding: 0 12px 0 9px;
border-radius: 14px;
cursor: pointer;
user-select: none;
color: #fff;
font-size: 12px;
font-weight: 600;
letter-spacing: 1px;
background: linear-gradient(120deg, #00c6ff 0%, #3a7bfd 50%, #8b5cf6 100%);
background-size: 200% 200%;
box-shadow: 0 2px 10px rgba(58, 123, 253, 0.45);
animation: iot-flow 6s ease infinite;
transition: transform 0.2s ease, box-shadow 0.2s ease;
overflow: hidden;
// 扫光
&::after {
content: '';
position: absolute;
top: 0;
left: -60%;
width: 40%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
transform: skewX(-20deg);
animation: iot-shine 3.5s ease-in-out infinite;
}
&:hover {
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(139, 92, 246, 0.55);
}
.iot-icon {
display: inline-flex;
width: 16px;
height: 16px;
svg {
width: 100%;
height: 100%;
animation: iot-pulse 2s ease-in-out infinite;
}
}
.iot-badge {
margin-left: 2px;
padding: 0 4px;
line-height: 14px;
font-size: 9px;
letter-spacing: 0;
border-radius: 7px;
color: #8b5cf6;
background: #fff;
}
}
@keyframes iot-flow {
0%,
100% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
}
@keyframes iot-shine {
0% {
left: -60%;
}
60%,
100% {
left: 130%;
}
}
@keyframes iot-pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
</style>
<style lang="scss">
.go-iot-modal {
.iot-title-mark {
width: 4px;
height: 18px;
border-radius: 2px;
background: linear-gradient(180deg, #00c6ff, #8b5cf6);
}
.iot-title {
font-size: 17px;
}
.iot-go-btn {
display: inline-flex;
align-items: center;
gap: 2px;
height: 26px;
margin-left: 20px;
padding: 0 8px 0 12px;
border-radius: 13px;
font-size: 12px;
font-weight: 500;
line-height: 1;
color: #3a5bd9;
text-decoration: none;
white-space: nowrap;
background: linear-gradient(90deg, rgba(0, 198, 255, 0.1), rgba(139, 92, 246, 0.12));
box-shadow: inset 0 0 0 1px rgba(90, 120, 240, 0.22);
transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
.iot-go-arrow {
width: 14px;
height: 14px;
transition: transform 0.2s ease;
}
&:hover {
background: linear-gradient(90deg, rgba(0, 198, 255, 0.16), rgba(139, 92, 246, 0.2));
box-shadow: inset 0 0 0 1px rgba(90, 120, 240, 0.4);
.iot-go-arrow {
transform: translateX(2px);
}
}
&.is-dark {
color: #e8ecff;
background: linear-gradient(90deg, rgba(0, 198, 255, 0.18), rgba(139, 92, 246, 0.22));
box-shadow: inset 0 0 0 1px rgba(160, 175, 255, 0.28);
&:hover {
background: linear-gradient(90deg, rgba(0, 198, 255, 0.26), rgba(139, 92, 246, 0.32));
box-shadow: inset 0 0 0 1px rgba(160, 175, 255, 0.5);
}
}
}
.go-iot-carousel {
border-radius: 8px;
overflow: hidden;
aspect-ratio: 16 / 9;
background: #000;
.iot-slide {
display: block;
width: 100%;
height: 100%;
img {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
}
}
}
.iot-caption {
margin-top: 10px;
}
}
</style>

View File

@ -7,7 +7,7 @@
</n-icon>
</template>
</n-button>
<n-space :wrap="false">
<n-space :wrap="false" align="center">
<!-- 模块展示按钮 -->
<n-tooltip v-for="item in btnList" :key="item.key" placement="bottom" trigger="hover">
<template #trigger>
@ -29,6 +29,11 @@
</template>
<span>{{ item.title }}</span>
</n-tooltip>
<n-divider vertical />
<!-- 物联网入口 -->
<iot-entry></iot-entry>
</n-space>
</n-space>
</template>
@ -38,6 +43,7 @@ import { toRefs, Ref, reactive, computed } from 'vue'
import { renderIcon, goDialog, goHome } from '@/utils'
import { icon } from '@/plugins'
import { useRemoveKeyboard } from '../../hooks/useKeyboard.hook'
import { IotEntry } from './components/IotEntry'
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'