diff --git a/package.json b/package.json index af877ba..bc9459f 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "lodash-es": "^4.17.21", "mitt": "3.0.0", "mobile-select": "1.1.2", + "mockjs": "^1.1.0", "pinia": "^2.1.7", "pinyin": "2.11.1", "vue": "3.4.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fa66de8..00f5658 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,6 +29,9 @@ dependencies: mobile-select: specifier: 1.1.2 version: 1.1.2 + mockjs: + specifier: ^1.1.0 + version: 1.1.0 pinia: specifier: ^2.1.7 version: 2.1.7(vue@3.4.21) @@ -2024,6 +2027,13 @@ packages: resolution: {integrity: sha512-FrVAun32DsxLUZziTE1LPlXC72kD13f8N8tqgf7zVWRIOIIJakNxVs8mR2KMzm3QJAYq5+EJ4ji98pHdWJ7ekw==} dev: false + /mockjs@1.1.0: + resolution: {integrity: sha512-eQsKcWzIaZzEZ07NuEyO4Nw65g0hdWAyurVol1IPl1gahRwY+svqzfgfey8U8dahLwG44d6/RwEzuK52rSa/JQ==} + hasBin: true + dependencies: + commander: 1.1.1 + dev: false + /mrmime@2.0.0: resolution: {integrity: sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==} engines: {node: '>=10'} diff --git a/src/pages/home/AlbumDetail.vue b/src/pages/home/AlbumDetail.vue index ff3a81b..2ff0b9b 100644 --- a/src/pages/home/AlbumDetail.vue +++ b/src/pages/home/AlbumDetail.vue @@ -16,7 +16,7 @@ -
+
@@ -35,21 +35,21 @@
{{ state.detail.note_card?.display_title }}
-
03:11
+
{{ state.detail.note_card.createTime }}
- 评论 {{ state.detail.note_card?.interact_info?.liked_count }} + 评论 {{ state.detail.note_card.comment_list.length }}
查看全部
-
+
- 花***栽:东西不错质量也很好 性价比很高 良心商家就冲这图必须给好评 + {{ i.name }}:{{ i.text }}
@@ -66,15 +66,15 @@
-
178
+
{{ state.detail.note_card.comment_list.length }}
-
82
+
{{ state.detail.note_card?.interact_info?.collect_count }}
-
23
+
{{ state.detail.note_card?.interact_info?.share_count }}
@@ -84,12 +84,13 @@ diff --git a/src/pages/home/slide/Community.vue b/src/pages/home/slide/Community.vue index 94dbd12..5b4456e 100644 --- a/src/pages/home/slide/Community.vue +++ b/src/pages/home/slide/Community.vue @@ -21,7 +21,7 @@
{{ item.note_card?.user?.nickname }}
- +
{{ item.note_card?.interact_info?.liked_count }}
@@ -39,6 +39,7 @@ import {_checkImgUrl, _notice} from "@/utils"; import Scroll from "@/components/Scroll.vue"; import {recommendedPost} from "@/api/user"; import {useNav} from "@/utils/hooks/useNav"; +import {Icon} from "@iconify/vue"; const nav = useNav() const props = defineProps({ @@ -63,7 +64,7 @@ watch(() => props.active, n => { }) function loadData() { - console.log('loadData') + state.pageNo++ getData() } @@ -126,7 +127,7 @@ async function getData(loading = true, refresh = false) { padding: 10rem; .title { - font-size: 16rem; + font-size: 15rem; margin-bottom: 8rem; } @@ -148,10 +149,11 @@ async function getData(loading = true, refresh = false) { .star { display: flex; + align-items: center; + gap: 3rem; - img { - width: 15rem; - margin-right: 5rem; + svg { + font-size: 16rem; } .num { diff --git a/src/pages/me/Me.vue b/src/pages/me/Me.vue index 6170f41..ecdacbd 100644 --- a/src/pages/me/Me.vue +++ b/src/pages/me/Me.vue @@ -48,7 +48,7 @@ @click="previewImg = _checkImgUrl(userinfo.cover_url[0].url_list[0])">
+ @click.stop="previewImg = _checkImgUrl(userinfo.avatar_300x300.url_list[0])">

{{ userinfo.nickname }}

diff --git a/vite.config.js b/vite.config.js index 66ce431..fe9c58a 100644 --- a/vite.config.js +++ b/vite.config.js @@ -53,6 +53,11 @@ export default defineConfig({ var: 'VueDemi', path: 'https://lib.baomitu.com/vue-demi/0.14.7/index.iife.min.js', }, + { + name: 'mockjs', + var: 'Mock', + path: 'https://lib.baomitu.com/Mock.js/1.0.1-beta3/mock-min.js', + }, { name: 'axios', var: 'axios',