主页广告
This commit is contained in:
parent
7b7fb5f67a
commit
4ff2546774
@ -194,7 +194,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { onMounted } from 'vue';
|
||||
import { onMounted, h } from 'vue';
|
||||
import { ArrowUpOutlined, ArrowDownOutlined } from '@vicons/antd';
|
||||
import { useNotification } from 'naive-ui';
|
||||
import NewVisitAmount from './components/NewVisitAmount.vue';
|
||||
@ -205,8 +205,19 @@
|
||||
onMounted(() => {
|
||||
if (!localStorage.getItem('adClosed')) {
|
||||
notification.info({
|
||||
title: '提示',
|
||||
content: '登录成功',
|
||||
title: '双十二限时特惠',
|
||||
content: () =>
|
||||
h('div', [
|
||||
h('span', '正在进行双十二限时促销活动,五折特平惠,'),
|
||||
h(
|
||||
'a',
|
||||
{
|
||||
href: 'www.baidu.com',
|
||||
target: '_blank',
|
||||
},
|
||||
'前往购买授权',
|
||||
),
|
||||
]),
|
||||
duration: 5000,
|
||||
});
|
||||
localStorage.setItem('adClosed', 'true');
|
||||
|
Loading…
Reference in New Issue
Block a user