mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-18 02:00:43 +08:00
✨ 新增网站底部slogan设置
This commit is contained in:
parent
86b45b5f2a
commit
2a05809c9c
@ -1,5 +1,6 @@
|
|||||||
window.$$nazhuaConfig = {
|
window.$$nazhuaConfig = {
|
||||||
// title: '哪吒监控', // 网站标题
|
// title: '哪吒监控', // 网站标题
|
||||||
|
// footerSlogan: '不要年付!不要年付!不要年付!<span style="color: #f00;">欢迎访问Nazhua探针</span>',
|
||||||
// freeAmount: '白嫖', // 免费服务的费用名称
|
// freeAmount: '白嫖', // 免费服务的费用名称
|
||||||
// infinityCycle: '长期有效', // 无限周期名称
|
// infinityCycle: '长期有效', // 无限周期名称
|
||||||
// buyBtnText: '购买', // 购买按钮文案
|
// buyBtnText: '购买', // 购买按钮文案
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="layout-footer">
|
<div class="layout-footer">
|
||||||
|
<div
|
||||||
|
v-if="footerSlogan"
|
||||||
|
class="footer-slogan"
|
||||||
|
>
|
||||||
|
<div v-html="footerSlogan" />
|
||||||
|
</div>
|
||||||
<div class="copyright-text">
|
<div class="copyright-text">
|
||||||
<span class="text">
|
<span class="text">
|
||||||
Powered by
|
Powered by
|
||||||
@ -40,9 +46,13 @@ import {
|
|||||||
nextTick,
|
nextTick,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import { useStore } from 'vuex';
|
import { useStore } from 'vuex';
|
||||||
|
import config from '@/config';
|
||||||
|
|
||||||
const version = import.meta.env.VITE_APP_VERSION;
|
const version = import.meta.env.VITE_APP_VERSION;
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
|
|
||||||
|
const footerSlogan = computed(() => decodeURIComponent(config.nazhua?.footerSlogan || ''));
|
||||||
|
|
||||||
const dynamicContentRef = ref();
|
const dynamicContentRef = ref();
|
||||||
|
|
||||||
const dynamicContent = computed(() => {
|
const dynamicContent = computed(() => {
|
||||||
@ -93,6 +103,16 @@ onMounted(() => {
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
|
|
||||||
|
.footer-slogan {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
|
||||||
|
font-size: 14px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
.copyright-text {
|
.copyright-text {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user