mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 09:08:51 +08:00
refactor: ♻️ 更新赞助渠道样式
This commit is contained in:
parent
3564bce12f
commit
e0b605a49f
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: weisheng
|
||||
* @Date: 2025-09-21 17:13:45
|
||||
* @LastEditTime: 2025-09-21 19:08:34
|
||||
* @LastEditTime: 2025-09-21 19:33:17
|
||||
* @LastEditors: weisheng
|
||||
* @Description:
|
||||
* @FilePath: /wot-design-uni/docs/.vitepress/theme/components/AsideSponsors.vue
|
||||
@ -86,6 +86,10 @@ const isGoldSponsorsOdd = computed(() => {
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.VPDocAsideSponsors{
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.vp-sponsor-grid-text {
|
||||
color: var(--vp-c-text-2);
|
||||
font-size: 12px;
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted } from 'vue'
|
||||
import { onMounted, ref } from 'vue'
|
||||
import AsideSponsors from './AsideSponsors.vue'
|
||||
|
||||
|
||||
const showTemp = ref(false)
|
||||
|
||||
// function called if wwads is blocked
|
||||
function ABDetected() {
|
||||
@ -28,6 +32,7 @@ onMounted(() => {
|
||||
docReady(() => {
|
||||
setTimeout(() => {
|
||||
if ((window as any)._AdBlockInit === undefined) {
|
||||
showTemp.value = true
|
||||
ABDetected()
|
||||
}
|
||||
}, 3000)
|
||||
@ -36,10 +41,12 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="wwads-container">
|
||||
<div class="wwads-container" v-if="!showTemp">
|
||||
<div class="wwads-cn wwads-vertical" data-id="372"></div>
|
||||
</div>
|
||||
<div class="aside-temp wwads-vertical"></div>
|
||||
<div class="aside-temp wwads-vertical" v-if="showTemp"></div>
|
||||
|
||||
<AsideSponsors></AsideSponsors>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
|
||||
@ -1,3 +1,12 @@
|
||||
/*
|
||||
* @Author: weisheng
|
||||
* @Date: 2025-09-21 19:12:03
|
||||
* @LastEditTime: 2025-09-21 19:37:14
|
||||
* @LastEditors: weisheng
|
||||
* @Description:
|
||||
* @FilePath: /wot-design-uni/docs/.vitepress/theme/composables/adSponsor.ts
|
||||
* 记得注释
|
||||
*/
|
||||
import { ref, onMounted } from 'vue'
|
||||
import axios from 'axios'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author: weisheng
|
||||
* @Date: 2024-10-12 22:09:33
|
||||
* @LastEditTime: 2025-09-21 16:34:43
|
||||
* @LastEditTime: 2025-09-21 19:38:17
|
||||
* @LastEditors: weisheng
|
||||
* @Description:
|
||||
* @FilePath: /wot-design-uni/docs/.vitepress/theme/index.ts
|
||||
@ -9,7 +9,6 @@
|
||||
*/
|
||||
import { h } from 'vue'
|
||||
import Theme from 'vitepress/theme'
|
||||
import { useRouter } from 'vitepress'
|
||||
import './styles/vars.css'
|
||||
import './styles/custom.css'
|
||||
import './styles/scrollbar.scss'
|
||||
@ -24,7 +23,7 @@ import WwAds from './components/WwAds.vue'
|
||||
import SpecialSponsor from './components/SpecialSponsor.vue'
|
||||
import ElementPlus, { ElMessageBox } from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
import AsideSponsors from './components/AsideSponsors.vue'
|
||||
import 'element-plus/theme-chalk/dark/css-vars.css'
|
||||
// 声明百度统计全局变量
|
||||
declare global {
|
||||
interface Window {
|
||||
@ -39,7 +38,6 @@ export default {
|
||||
return h(Theme.Layout, null, {
|
||||
'home-hero-info-after':()=>h(HomeStar),
|
||||
'home-hero-after': () => h(SpecialSponsor),
|
||||
'aside-ads-before': () => h(AsideSponsors),
|
||||
'home-features-after': () => h(HomeFriendly),
|
||||
'layout-bottom':() => h(CustomFooter),
|
||||
'nav-bar-title-after': () => h(NavBarTitleAfter),
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
* @Author: 810505339
|
||||
* @Date: 2025-02-11 21:17:21
|
||||
* @LastEditors: weisheng
|
||||
* @LastEditTime: 2025-05-07 18:55:55
|
||||
* @LastEditTime: 2025-09-21 19:35:08
|
||||
* @FilePath: /wot-design-uni/src/subPages/signature/Index.vue
|
||||
* 记得注释
|
||||
-->
|
||||
@ -78,7 +78,6 @@ const img = ref<Partial<SignatureResult>>({})
|
||||
const disabled = ref(true)
|
||||
|
||||
function confirm(result: SignatureResult) {
|
||||
debugger
|
||||
if (result.success) {
|
||||
uni.previewImage({
|
||||
urls: [result.tempFilePath]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user