Skip to content

Commit 43f9fd8

Browse files
SkyBird233HouLiXieBuRou
authored andcommitted
feat: add crowdsourcing pages
1 parent 6420db1 commit 43f9fd8

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

components/CategoryList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { data, error, status } = await useAsyncData(
2929
<span class="flex-1 truncate">
3030
{{ item.title }}
3131
</span>
32-
<span class="pr-6">[{{ item.date.split('T')[0] }}]</span>
32+
<span v-if="item.date" class="pr-6">[{{ item.date.split('T')[0] }}]</span>
3333
</NuxtLinkLocale>
3434
</div>
3535
</div>

locales/en-us/json/page/crowdsourcing.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
],
2727
"If the crowdfunding project is cancelled, the full amount of the donation will be refunded to the donor."
2828
]
29-
}
29+
},
30+
"title3": "Crowdfunding records"
3031
}
3132
}

locales/zh-cn/json/page/crowdsourcing.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
["如捐款者不接受退款,可根据需要调整众筹内容。"],
2525
"如众筹项目被取消,将全额退还捐款予捐赠者。"
2626
]
27-
}
27+
},
28+
"title3": "众筹记录"
2829
}
2930
}

pages/crowdsourcing/[slug].vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<common-content category="crowdsourcing" />
3+
</template>

pages/crowdsourcing/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ useHead({ title: textValue.title1 });
2626
<div class="p-6 py-6 pl-16">
2727
<app-ul-ordinary :lis="textValue.ul1.li" my-key="crowdsourcing-1" />
2828
</div>
29+
30+
<category-second :title="textValue.title3" />
31+
<category-list category="crowdsourcing" />
2932
</div>
3033
</template>
3134

0 commit comments

Comments
 (0)