diff --git a/index.html b/index.html index 5dd6e40..d124ec1 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,8 @@ OTOW -
+ +
diff --git a/src/api/market/type.ts b/src/api/market/type.ts deleted file mode 100644 index 8b7570d..0000000 --- a/src/api/market/type.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface MarketData { - title: string; - description: string; - price: number; - cover: string; -} \ No newline at end of file diff --git a/src/assets/main.css b/src/assets/main.css index 0473870..a4661d7 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -29,6 +29,13 @@ button{ border-radius: 10px; } +.icon { + width: 1em; height: 1em; + vertical-align: -0.15em; + fill: currentColor; + overflow: hidden; +} + /* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */ @font-face { font-family: "default"; diff --git a/src/components/market/MarketCard.vue b/src/components/market/MarketCard.vue index 412ee86..ea67e71 100644 --- a/src/components/market/MarketCard.vue +++ b/src/components/market/MarketCard.vue @@ -11,14 +11,16 @@ const props = defineProps<{
- {{ props.marketData.title }} + {{ props.marketData.name }}
- {{ props.marketData.description }} + {{ props.marketData.introduce }}
- View Product - + View Product +
@@ -60,5 +62,6 @@ const props = defineProps<{ align-items: center; /* 垂直居中(可选) */ width: 100%; height: 15%; + cursor: pointer } diff --git a/src/main.ts b/src/main.ts index 58d9e2c..0c995a4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -10,16 +10,17 @@ import { createVuetify } from 'vuetify' import * as components from 'vuetify/components' import * as directives from 'vuetify/directives' import { aliases, md } from 'vuetify/iconsets/md' + const vuetify = createVuetify({ - components, - directives, - icons: { - defaultSet: 'md', - aliases, - sets: { - md, + components, + directives, + icons: { + defaultSet: 'md', + aliases, + sets: { + md, + }, }, - }, }) // Pinia import { createPinia } from 'pinia' diff --git a/src/type/market/Market.ts b/src/type/market/Market.ts index 8b7570d..99a6025 100644 --- a/src/type/market/Market.ts +++ b/src/type/market/Market.ts @@ -1,6 +1,22 @@ export interface MarketData { - title: string; - description: string; + // 项目id + id: string; + // 项目名称 + name: string; + // 介绍 + introduce: string; + // 价格 price: number; + // 封面 cover: string; + // 项目语言 + codeLanguage: string; + // 浏览数量 + viewNums: number; + // 下载数量 + downloadNums: number; + // 作者 + nickname: string; + + } \ No newline at end of file diff --git a/src/views/market/index.vue b/src/views/market/index.vue index 9f234d9..b3cc219 100644 --- a/src/views/market/index.vue +++ b/src/views/market/index.vue @@ -1,6 +1,6 @@