feat: 左下角新增Pro入口

This commit is contained in:
奔跑的面条 2024-08-29 22:46:10 +08:00
parent 17a912e558
commit 84890550c8
3 changed files with 104 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -58,6 +58,7 @@ import {
Search as SearchIcon,
ChevronUpOutline as ChevronUpOutlineIcon,
ChevronDownOutline as ChevronDownOutlineIcon,
ChevronForward as ChevronForwardIcon,
Pulse as PulseIcon,
Folder as FolderIcon,
FolderOpen as FolderOpenIcon,
@ -244,7 +245,9 @@ const ionicons5 = {
// 分析
AnalyticsIcon,
// 飞机
AirPlaneOutlineIcon
AirPlaneOutlineIcon,
// 向右
ChevronForwardIcon
}
const carbon = {

View File

@ -1,10 +1,26 @@
<template>
<div class="go-aside-footer">
<div class="pointer-invest-btn" :class="{ collapsed }" @click="clickHandle">
<div class="btn-left">
<img class="main-img" src="~@/assets/images/tips/Integral-activity.png" title="新用户免费送会员~"/>
<div v-if="!collapsed" class="btn-left-title">
<span class="title-top">
速看!
<span style="color: #e86b6b; text-decoration: underline; font-weight: bold">GoViewPro</span>
有活动
</span>
<span class="title-bottom">新用户免费送会员~</span>
</div>
</div>
<n-icon v-if="!collapsed" :size="18" color="#3E8CF2">
<ChevronForwardIcon></ChevronForwardIcon>
</n-icon>
</div>
<n-divider class="go-mt-0"></n-divider>
<n-space justify="space-around">
<n-space justify="space-around" :vertical="collapsed">
<n-tooltip v-if="collapsed" placement="right" trigger="hover">
<template #trigger>
<n-button secondary @click="handleDoc">
<n-button class="go-ml-2" secondary @click="handleDoc">
<template #icon>
<n-icon size="18">
<document-text-icon></document-text-icon>
@ -28,7 +44,7 @@
<n-tooltip v-if="collapsed" placement="right" trigger="hover">
<template #trigger>
<n-button secondary @click="handleDoc">
<n-button class="go-ml-2" secondary @click="handleDoc">
<template #icon>
<n-icon size="18">
<code-slash-icon></code-slash-icon>
@ -53,10 +69,10 @@
</div>
</template>
<script setup lang="ts">
import { openDoc, openGiteeSourceCode } from '@/utils'
import { openDoc, openGiteeSourceCode, openNewWindow } from '@/utils'
import { icon } from '@/plugins'
const { DocumentTextIcon, CodeSlashIcon } = icon.ionicons5
const { DocumentTextIcon, CodeSlashIcon, ChevronForwardIcon } = icon.ionicons5
const props = defineProps({
collapsed: Boolean
@ -65,13 +81,92 @@ const props = defineProps({
const handleDoc = () => {
openDoc()
}
const handleCode = () => {
openGiteeSourceCode()
}
const clickHandle = () => {
openNewWindow('https://ai.goviewlink.com/saas/')
}
</script>
<style lang="scss" scoped>
@include go('aside-footer') {
padding-bottom: 20px;
.pointer-invest-btn {
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
margin: 10px;
padding: 7px;
cursor: pointer;
background-color: #f1f1f1;
border: 1px solid #e2e2ef;
border-radius: 6px;
overflow: hidden;
.btn-left {
display: flex;
align-items: center;
img.main-img {
width: 32px;
border-radius: 4px;
overflow: hidden;
}
.btn-left-title {
margin-left: 6px;
row-gap: 4px;
display: flex;
flex-direction: column;
.title-top,
.title-bottom {
font-size: 12px;
line-height: 15px;
font-weight: 400;
}
.title-top {
color: #444444;
}
.title-bottom {
color: #5e5e5e;
}
}
}
&.collapsed {
padding: 3px;
.btn-left {
}
}
&::after {
content: '';
position: absolute;
width: 140px;
height: 26px;
bottom: 14px;
top: 0;
left: -100px;
background: linear-gradient(120deg, hsla(0, 0%, 100%, 0.05) 10%, hsla(0, 0%, 100%, 0.1) 126%);
transform: rotate(-45deg);
animation: blink-quick-3bcb41e9 3s ease-in 0s infinite;
}
}
}
@include dark() {
@include go('aside-footer') {
.pointer-invest-btn {
background-color: #2a2a2e;
border: 1px solid #3e3f43;
.btn-left-title {
.title-top {
color: #c1c1c2;
}
.title-bottom {
color: #959698;
}
}
}
}
}
</style>