Skip to content

Commit

Permalink
chore: fix style and content (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Aug 14, 2024
1 parent 87d29a2 commit 27e3094
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion site/src/pages/home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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);
});
});
},
Expand Down
4 changes: 3 additions & 1 deletion site/src/pages/home/index_zh-CN.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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);
});
});
},
Expand Down
4 changes: 2 additions & 2 deletions site/src/style/home.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 27e3094

Please sign in to comment.