Skip to content

Commit 7a727bb

Browse files
committed
fix:去除广告
1 parent de80adf commit 7a727bb

File tree

8 files changed

+9323
-6647
lines changed

8 files changed

+9323
-6647
lines changed

docs/.vuepress/components/HomeAds.vue

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ const isApple = computed(() => {
4343

4444
<template>
4545
<div class="ads-container">
46-
<div class="wwads-container">
46+
<!-- <div class="vidhub-new-bgc">
47+
<img src="/img/ss/vidhub-new-bg.pic.jpg" alt="VidHub Banner" />
48+
</div> -->
49+
<!-- <div class="wwads-container">
4750
<div
4851
class="wwads wwads-cn wwads-horizontal"
4952
data-id="213"
@@ -65,7 +68,7 @@ const isApple = computed(() => {
6568
</div>
6669
</a>
6770
<a class="new_site" href="https://alistgo.com" target="_blank">{{ vidHub.new_site }}</a>
68-
</div>
71+
</div> -->
6972
</div>
7073
</template>
7174

@@ -189,4 +192,25 @@ const isApple = computed(() => {
189192
}
190193
max-width: var(--home-page-width);
191194
}
195+
196+
.vidhub-new-bgc {
197+
// width: 100%;
198+
// max-width: 100%;
199+
// 以上为展示图片圆角,暂时先注释
200+
margin: 10px auto;
201+
overflow: hidden;
202+
display: flex;
203+
justify-content: center;
204+
align-items: center;
205+
background: none;
206+
height: auto;
207+
border-radius: 10px;
208+
}
209+
.vidhub-new-bgc img {
210+
width: 100%;
211+
max-height: 200px;
212+
height: auto;
213+
display: block;
214+
object-fit: contain;//cover 为正常宽展示,但是图片宽高过大会被拉伸,先用contain
215+
}
192216
</style>

docs/.vuepress/components/Sidebar.vue

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22
<Sidebar>
33
<template #top>
44
<div class="ss">
5+
<!-- <div class="sidebar-ad-placeholder">
6+
广告 1
7+
</div>
8+
<div class="sidebar-ad-placeholder">
9+
广告 2
10+
</div>
11+
<div class="sidebar-ad-placeholder">
12+
广告 3
13+
</div> -->
514
<div class="mingdao" v-if="showMingdao">
6-
<a
7-
href="https://www.mingdao.com?s=utm_51=utm_source=alist&utm_medium=banner&utm_campaign=%E5%93%81%E7%89%8C%E6%8E%A8%E5%B9%BF&utm_content=IT%E8%B5%8B%E8%83%BD%E4%B8%9A%E5%8A%A1"
8-
target="_blank"
9-
><img src="/img/ss/mingdao.png" alt=""
10-
/></a>
15+
<a href="https://www.mingdao.com?s=utm_51=utm_source=alist&utm_medium=banner&utm_campaign=%E5%93%81%E7%89%8C%E6%8E%A8%E5%B9%BF&utm_content=IT%E8%B5%8B%E8%83%BD%E4%B8%9A%E5%8A%A1"
16+
target="_blank"><img src="/img/ss/mingdao.png" alt="" /></a>
1117
<span>{{ spStr }}</span>
1218
</div>
1319
<div style="padding: 8px; padding-bottom: 0; margin-bottom: -16px;" v-if="isDrivers">
@@ -38,6 +44,17 @@ const showMingdao = false;
3844
</script>
3945

4046
<style scoped lang="scss">
47+
.sidebar-ad-placeholder {
48+
width: 100%;
49+
height: 100px;
50+
margin-bottom: 16px;
51+
// background: #eee;
52+
border-radius: 5px;
53+
display: flex;
54+
align-items: center;
55+
justify-content: center;
56+
}
57+
4158
.mingdao {
4259
margin-top: 8px;
4360
display: flex;

docs/.vuepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default defineUserConfig({
4545
`var _hmt = _hmt || [];
4646
(function() {
4747
var hm = document.createElement("script");
48-
hm.src = "https://hm.baidu.com/hm.js?6c8a68035d2804b5cfeafe6d96df4c75";
48+
hm.src = "https://hm.baidu.com/hm.js?d5fb1cfe9d7593407463111c8fd17ca3";
4949
var s = document.getElementsByTagName("script")[0];
5050
s.parentNode.insertBefore(hm, s);
5151
})();`,
66.2 KB
Loading

docs/zh/guide/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ category:
8383

8484
- https://al.nn.ci
8585

86-
## 特别赞助
86+
<!-- ## 特别赞助
8787
8888
- [VidHub](https://zh.okaapps.com/product/1659622164?ref=alist) - 苹果生态下优雅的网盘视频播放器,iPhone,iPad,Mac,Apple TV全平台支持。
8989
- [亚洲云](https://www.asiayun.com/aff/QQCOOQKZ) - 高防服务器|服务器租用|福州高防|广东电信|香港服务器|美国服务器|海外服务器 - 国内靠谱的企业级云计算服务提供商 (国内API服务器赞助)
90-
- [找资源](http://zhaoziyuan2.cc/) - 阿里云盘资源搜索引擎
90+
- [找资源](http://zhaoziyuan2.cc/) - 阿里云盘资源搜索引擎 -->
9191

9292
## 许可
9393

0 commit comments

Comments
 (0)