fix: 新增代理系列授权-建议售价使用套餐
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m38s

This commit is contained in:
sexygoat
2026-06-12 10:41:37 +08:00
parent d23e896f97
commit e04a283319
98 changed files with 4279 additions and 6170 deletions

View File

@@ -362,8 +362,8 @@
color: var(--el-text-color-regular);
em {
color: var(--el-color-primary);
font-style: normal;
color: var(--el-color-primary);
}
}
}

View File

@@ -1,140 +0,0 @@
<template>
<div class="card-banner art-custom-card">
<div class="banner-content">
<div class="banner-icon">
<img :src="props.icon" :alt="props.title" />
</div>
<div class="banner-text">
<p class="banner-title">{{ props.title }}</p>
<p class="banner-description">{{ props.description }}</p>
</div>
<div class="banner-buttons">
<div
v-if="showCancel"
class="banner-button cancel-button"
:style="{ backgroundColor: cancelButtonColor, color: cancelButtonTextColor }"
@click="handleCancel"
>
{{ cancelButtonText }}
</div>
<div
class="banner-button"
:style="{ backgroundColor: buttonColor, color: buttonTextColor }"
@click="handleClick"
>
{{ buttonText }}
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import defaultIcon from '@imgs/3d/icon1.webp'
interface CardBannerProps {
icon?: string
title: string
description: string
buttonText?: string
buttonColor?: string
buttonTextColor?: string
showCancel?: boolean
cancelButtonText?: string
cancelButtonColor?: string
cancelButtonTextColor?: string
}
const props = withDefaults(defineProps<CardBannerProps>(), {
icon: defaultIcon,
title: '',
description: '',
buttonText: '重试',
buttonColor: 'var(--main-color)',
buttonTextColor: '#fff',
showCancel: false,
cancelButtonText: '取消',
cancelButtonColor: '#f5f5f5',
cancelButtonTextColor: '#666'
})
const emit = defineEmits<{
(e: 'click'): void
(e: 'cancel'): void
}>()
const handleClick = () => {
emit('click')
}
const handleCancel = () => {
emit('cancel')
}
</script>
<style lang="scss" scoped>
.card-banner {
padding: 3rem 0 4rem;
background-color: var(--art-main-bg-color);
border-radius: calc(var(--custom-radius) + 2px) !important;
.banner-content {
display: flex;
flex-direction: column;
gap: 16px;
align-items: center;
text-align: center;
}
.banner-icon {
width: 180px;
img {
width: 100%;
height: 100%;
object-fit: contain;
}
}
.banner-text {
.banner-title {
margin-bottom: 8px;
font-size: 18px;
font-weight: 600;
color: var(--art-text-gray-800);
}
.banner-description {
margin: 0;
font-size: 14px;
color: var(--art-text-gray-600);
}
}
.banner-buttons {
display: flex;
gap: 12px;
align-items: center;
}
.banner-button {
display: inline-block;
height: var(--el-component-custom-height);
padding: 0 12px;
font-size: 14px;
line-height: var(--el-component-custom-height);
cursor: pointer;
user-select: none;
border-radius: 6px;
transition: opacity 0.3s;
&:hover {
opacity: 0.9;
}
&.cancel-button {
border: 1px solid #dcdfe6;
}
}
}
</style>

View File

@@ -20,7 +20,9 @@
<div class="chat-messages" ref="messageContainer">
<template v-for="(message, index) in messages" :key="index">
<div :class="['message-item', message.isMe ? 'message-right' : 'message-left']">
<el-avatar :size="32" :src="message.avatar" class="message-avatar" />
<el-avatar :size="32" class="message-avatar">
{{ message.sender.slice(0, 1) }}
</el-avatar>
<div class="message-content">
<div class="message-info">
<span class="sender-name">{{ message.sender }}</span>
@@ -67,8 +69,6 @@
import { ref, onMounted } from 'vue'
import { Picture, Paperclip } from '@element-plus/icons-vue'
import { mittBus } from '@/utils/sys'
import meAvatar from '@/assets/img/avatar/avatar5.webp'
import aiAvatar from '@/assets/img/avatar/avatar10.webp'
const { width } = useWindowSize()
const isMobile = computed(() => width.value < 500)
@@ -86,79 +86,68 @@
sender: 'Art Bot',
content: '你好!我是你的AI助手,有什么我可以帮你的吗?',
time: '10:00',
isMe: false,
avatar: aiAvatar
isMe: false
},
{
id: 2,
sender: 'Ricky',
content: '我想了解一下系统的使用方法。',
time: '10:01',
isMe: true,
avatar: meAvatar
isMe: true
},
{
id: 3,
sender: 'Art Bot',
content: '好的,我来为您介绍系统的主要功能。首先,您可以通过左侧菜单访问不同的功能模块...',
time: '10:02',
isMe: false,
avatar: aiAvatar
isMe: false
},
{
id: 4,
sender: 'Ricky',
content: '听起来很不错,能具体讲讲数据分析部分吗?',
time: '10:05',
isMe: true,
avatar: meAvatar
isMe: true
},
{
id: 5,
sender: 'Art Bot',
content: '当然可以。数据分析模块可以帮助您实时监控关键指标,并生成详细的报表...',
time: '10:06',
isMe: false,
avatar: aiAvatar
isMe: false
},
{
id: 6,
sender: 'Ricky',
content: '太好了,那我如何开始使用呢?',
time: '10:08',
isMe: true,
avatar: meAvatar
isMe: true
},
{
id: 7,
sender: 'Art Bot',
content: '您可以先创建一个项目,然后在项目中添加相关的数据源,系统会自动进行分析。',
time: '10:09',
isMe: false,
avatar: aiAvatar
isMe: false
},
{
id: 8,
sender: 'Ricky',
content: '明白了,谢谢你的帮助!',
time: '10:10',
isMe: true,
avatar: meAvatar
isMe: true
},
{
id: 9,
sender: 'Art Bot',
content: '不客气,有任何问题随时联系我。',
time: '10:11',
isMe: false,
avatar: aiAvatar
isMe: false
}
])
const messageId = ref(10) // 用于生成唯一的消息ID
const userAvatar = ref(meAvatar) // 使用导入的头像
// 发送消息
const sendMessage = () => {
const text = messageText.value.trim()
@@ -169,8 +158,7 @@
sender: 'Ricky',
content: text,
time: new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }),
isMe: true,
avatar: userAvatar.value
isMe: true
})
messageText.value = ''

View File

@@ -78,13 +78,6 @@
const applications = computed<Application[]>(() => {
const apps: Application[] = [
{
name: '聊天',
description: '即时通讯功能',
icon: '&#xe70a;',
iconColor: '#13DEB9',
path: RoutesAlias.Chat
},
{
name: '官方文档',
description: '使用指南与开发文档',

View File

@@ -22,7 +22,7 @@
CIRCLE: { SIZE: 12 }, // 圆形直径
TRIANGLE: { SIZE: 10 }, // 三角形边长
OVAL: { WIDTH: 24, HEIGHT: 12 }, // 椭圆宽高
IMAGE: { WIDTH: 30, HEIGHT: 30 } // 图片尺寸
IMAGE: { WIDTH: 30, HEIGHT: 30 } // 保留尺寸配置,兼容历史粒子类型
},
// 旋转相关参数
ROTATION: {
@@ -61,32 +61,6 @@
]
}
// 图片缓存
const imageCache: { [url: string]: HTMLImageElement } = {}
// 预加载图片函数
const preloadImage = (url: string): Promise<HTMLImageElement> => {
return new Promise((resolve, reject) => {
if (imageCache[url]) {
if (imageCache[url].complete) {
resolve(imageCache[url])
} else {
imageCache[url].onload = () => resolve(imageCache[url])
imageCache[url].onerror = reject
}
} else {
const img = new Image()
img.crossOrigin = 'anonymous' // 处理CORS
img.src = url
img.onload = () => {
imageCache[url] = img
resolve(img)
}
img.onerror = reject
}
})
}
interface Firework {
x: number
y: number
@@ -99,7 +73,6 @@
shape: string
active: boolean
rotationSpeed: { x: number; y: number; z: number }
imageUrl?: string
opacity: number // 新增透明度属性
}
@@ -139,14 +112,12 @@
}
// 创建烟花
const createFirework = (imageUrl?: string) => {
const createFirework = () => {
// 异步创建粒子,避免阻塞主线程
setTimeout(() => {
const startX = Math.random() * window.innerWidth
const startY = window.innerHeight
const availableShapes = imageUrl && imageCache[imageUrl] ? ['image'] : CONFIG.SHAPES
for (let i = 0; i < CONFIG.PARTICLES_PER_BURST; i++) {
const particle = getParticleFromPool()
if (!particle) continue
@@ -167,8 +138,7 @@
rotationX: Math.random() * 360 - 180,
rotationY: Math.random() * 360 - 180,
scale: 0.8 + Math.random() * 0.4,
shape: availableShapes[Math.floor(Math.random() * availableShapes.length)],
imageUrl: imageUrl && imageCache[imageUrl] ? imageUrl : undefined,
shape: CONFIG.SHAPES[Math.floor(Math.random() * CONFIG.SHAPES.length)],
rotationSpeed: {
x:
(Math.random() * CONFIG.ROTATION.RANDOM_SPEED + CONFIG.ROTATION.BASE_SPEED) *
@@ -289,20 +259,6 @@
ctx.value.closePath()
ctx.value.fill()
break
case 'image':
if (firework.imageUrl) {
const img = imageCache[firework.imageUrl]
if (img && img.complete) {
ctx.value.drawImage(
img,
-CONFIG.SIZES.IMAGE.WIDTH / 2,
-CONFIG.SIZES.IMAGE.HEIGHT / 2,
CONFIG.SIZES.IMAGE.WIDTH,
CONFIG.SIZES.IMAGE.HEIGHT
)
}
}
break
default:
break
}
@@ -351,43 +307,20 @@
}
}
import bp from '@imgs/ceremony/hb.png'
import sd from '@imgs/ceremony/sd.png'
import yd from '@imgs/ceremony/yd.png'
// 预加载所有需要的图片
const preloadAllImages = async () => {
const imageUrls = [bp, sd, yd]
try {
await Promise.all(imageUrls.map((url) => preloadImage(url)))
} catch (error) {
console.error('Image preloading failed', error)
}
}
onMounted(async () => {
onMounted(() => {
if (canvas.value) {
ctx.value = canvas.value.getContext('2d')
resizeCanvas()
}
initParticlePool()
// 预加载所有图片
await preloadAllImages()
animate()
useEventListener(window, 'keydown', handleKeyPress)
useEventListener(window, 'resize', resizeCanvas)
// 监听触发烟花的事件
mittBus.on('triggerFireworks', ((event: unknown) => {
const imageUrl = event as string | undefined
if (imageUrl && imageCache[imageUrl]?.complete) {
createFirework(imageUrl)
} else {
createFirework()
}
mittBus.on('triggerFireworks', (() => {
createFirework()
}) as Handler<unknown>)
})

View File

@@ -48,7 +48,7 @@
<ul class="user-list" v-show="barActiveIndex === 1">
<li v-for="(item, index) in msgList" :key="index">
<div class="avatar">
<img :src="item.avatar" />
<span>{{ item.title.slice(0, 1) }}</span>
</div>
<div class="text">
<h4>{{ item.title }}</h4>
@@ -89,12 +89,6 @@
</template>
<script setup lang="ts">
import avatar1 from '@/assets/img/avatar/avatar1.webp'
import avatar2 from '@/assets/img/avatar/avatar2.webp'
import avatar3 from '@/assets/img/avatar/avatar3.webp'
import avatar4 from '@/assets/img/avatar/avatar4.webp'
import avatar5 from '@/assets/img/avatar/avatar5.webp'
import avatar6 from '@/assets/img/avatar/avatar6.webp'
import AppConfig from '@/config'
import { useI18n } from 'vue-i18n'
@@ -169,33 +163,27 @@
const msgList: any = [
{
title: '池不胖 关注了你',
time: '2021-2-26 23:50',
avatar: avatar1
time: '2021-2-26 23:50'
},
{
title: '唐不苦 关注了你',
time: '2021-2-21 8:05',
avatar: avatar2
time: '2021-2-21 8:05'
},
{
title: '中小鱼 关注了你',
time: '2020-1-17 21:12',
avatar: avatar3
time: '2020-1-17 21:12'
},
{
title: '何小荷 关注了你',
time: '2021-01-14 0:20',
avatar: avatar4
time: '2021-01-14 0:20'
},
{
title: '誶誶淰 关注了你',
time: '2020-12-20 0:15',
avatar: avatar5
time: '2020-12-20 0:15'
},
{
title: '冷月呆呆 关注了你',
time: '2020-12-17 22:06',
avatar: avatar6
time: '2020-12-17 22:06'
}
]

View File

@@ -17,7 +17,7 @@
</ElRadioGroup>
</ElFormItem>
<ElFormItem>
<div style="font-size: 12px; color: #909399; line-height: 1.6">
<div style="font-size: 12px; line-height: 1.6; color: #909399">
<p>说明:</p>
<p>• <strong>无需实名</strong>:用户使用设备无需进行实名认证</p>
<p>• <strong>先实名后充值/购买</strong>:用户必须先完成实名认证才能进行充值或购买套餐</p>