diff --git a/site/src/pages/home/index.vue b/site/src/pages/home/index.vue index 9e3ffe0b..f88de462 100644 --- a/site/src/pages/home/index.vue +++ b/site/src/pages/home/index.vue @@ -594,6 +594,8 @@ import { figmaWebUrl, figmaMobileUrl, sketchWebUrl, sketchMobileUrl, axWebUrl, x const brandUrl = 'https://1257786608-faj515jw5t-hk.scf.tencentcs.com/brand/list'; const newsUrl = 'https://1257786608-faj515jw5t-hk.scf.tencentcs.com/news'; +const isIntranet = location.host.includes('woa.com'); // 部分动态或内容只能通过内网访问 + export default { name: 'site-home', components: { @@ -866,7 +868,7 @@ export default { getNews() { fetch(newsUrl).then((data) => { data.json().then((list) => { - this.newsList = list; + this.newsList = isIntranet ? list : list.filter((v) => !v.isIntranet); }); }); }, diff --git a/site/src/pages/home/index_zh-CN.vue b/site/src/pages/home/index_zh-CN.vue index 6489f390..3629ee88 100644 --- a/site/src/pages/home/index_zh-CN.vue +++ b/site/src/pages/home/index_zh-CN.vue @@ -575,6 +575,8 @@ import { figmaWebUrl, figmaMobileUrl, sketchWebUrl, sketchMobileUrl, axWebUrl, x const brandUrl = 'https://1257786608-faj515jw5t-hk.scf.tencentcs.com/brand/list'; const newsUrl = 'https://1257786608-faj515jw5t-hk.scf.tencentcs.com/news'; +const isIntranet = location.host.includes('woa.com'); // 部分动态或内容只能通过内网访问 + export default { name: 'site-home', components: { @@ -844,7 +846,7 @@ export default { getNews() { fetch(newsUrl).then((data) => { data.json().then((list) => { - this.newsList = list; + this.newsList = isIntranet ? list : list.filter((v) => !v.isIntranet); }); }); }, diff --git a/site/src/style/home.less b/site/src/style/home.less index 55bbef16..73a64744 100644 --- a/site/src/style/home.less +++ b/site/src/style/home.less @@ -267,7 +267,7 @@ display: flex; margin: 0 auto 48px auto; > div { - flex: 1 0 324px; + flex: 0 0 348px; display: inline-block; &:not(:last-child) { margin-right: 16px; @@ -977,7 +977,7 @@ padding: 28px; box-sizing: border-box; border-radius: 6px; - border: 1px solid transparent; + border: 1.5px solid #fff; background-color: rgba(255, 255, 255, 0.55); text-align: center; display: flex;