diff --git a/package.json b/package.json index 09defd1d..18d217f3 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,11 @@ "init:cert": "npx mkcert create-cert --ca-key certs/data.local.zhishuyun.com.ca.key --ca-cert certs/data.local.zhishuyun.com.ca.crt --validity 36500 --key certs/data.local.zhishuyun.com.cert.key --cert certs/data.local.zhishuyun.com.cert.crt --domains data.local.zhishuyun.com" }, "dependencies": { + "@fortawesome/fontawesome-svg-core": "^6.2.1", + "@fortawesome/free-brands-svg-icons": "^6.2.1", + "@fortawesome/free-regular-svg-icons": "^6.2.1", + "@fortawesome/free-solid-svg-icons": "^6.2.1", + "@fortawesome/vue-fontawesome": "^3.0.2", "@types/uuid": "^8.3.4", "axios": "^0.21.1", "dayjs": "^1.10.7", diff --git a/src/i18n/zh/service/button.ts b/src/i18n/zh/service/button.ts index a77876d3..5cc04415 100644 --- a/src/i18n/zh/service/button.ts +++ b/src/i18n/zh/service/button.ts @@ -1,3 +1,6 @@ export default { - learnMore: '了解更多' + learnMore: '了解更多', + apply: '立即申请', + introduction: '服务介绍', + apis: '接口说明' }; diff --git a/src/i18n/zh/service/message.ts b/src/i18n/zh/service/message.ts index 5edbfc70..57e4af00 100644 --- a/src/i18n/zh/service/message.ts +++ b/src/i18n/zh/service/message.ts @@ -1,3 +1,4 @@ export default { - free: '免费' + free: '免费', + appliedCount: '申请次数' }; diff --git a/src/main.ts b/src/main.ts index a545b67d..68f8fade 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,6 +7,8 @@ import i18n from './i18n/index'; import './assets/css/tailwind.css'; import './assets/scss/style.scss'; import dayjs from './plugins/dayjs'; +import './plugins/font-awesome'; + const app = createApp(App); app.use(router); diff --git a/src/operators/service/models.ts b/src/operators/service/models.ts index 78b64eaa..08e596f0 100644 --- a/src/operators/service/models.ts +++ b/src/operators/service/models.ts @@ -4,8 +4,9 @@ export interface IService { description?: string; tags?: string[]; thumbnail?: string; + icon?: string; price?: number; - applied_count: number; + appliedCount: number; introduction: string; createdAt?: string; updatedAt?: string; diff --git a/src/pages/service/Detail.vue b/src/pages/service/Detail.vue index 4faaf03c..6bac291f 100644 --- a/src/pages/service/Detail.vue +++ b/src/pages/service/Detail.vue @@ -1,55 +1,192 @@ - + diff --git a/src/pages/service/List.vue b/src/pages/service/List.vue index 14776402..74616743 100644 --- a/src/pages/service/List.vue +++ b/src/pages/service/List.vue @@ -5,7 +5,7 @@
- +
{{ service.title }}
@@ -38,7 +38,6 @@ -
@@ -46,7 +45,7 @@