From 13e67b8aa9a5881e40d076d97c3ff66087875f15 Mon Sep 17 00:00:00 2001 From: zzp <34701892@qq.com> Date: Sun, 17 Aug 2025 17:09:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(login):=20=E6=B7=BB=E5=8A=A0=E9=9A=90?= =?UTF-8?q?=E7=A7=81=E6=94=BF=E7=AD=96=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refactor: 移除mock数据引用并优化代码格式 style: 统一代码缩进和换行格式 --- src/components/article/index.vue | 10 ++++-- src/components/article/indexNewsInfo.vue | 42 ++++++++++++++++-------- src/pages/login/indexMini.vue | 10 +++++- src/pages/news/index.vue | 27 +++++++++++---- 4 files changed, 65 insertions(+), 24 deletions(-) diff --git a/src/components/article/index.vue b/src/components/article/index.vue index 980587c..20c6199 100644 --- a/src/components/article/index.vue +++ b/src/components/article/index.vue @@ -24,7 +24,11 @@ - + @@ -38,12 +42,12 @@ import { onShareAppMessage, onShareTimeline, } from "@dcloudio/uni-app"; -import articleMock from "@/mock/article.js"; +// import articleMock from "@/mock/article.js"; const props = defineProps({ data: { type: Object, - default: () => { }, + default: () => {}, }, }); diff --git a/src/components/article/indexNewsInfo.vue b/src/components/article/indexNewsInfo.vue index 1b68820..3e41c80 100644 --- a/src/components/article/indexNewsInfo.vue +++ b/src/components/article/indexNewsInfo.vue @@ -16,17 +16,31 @@ - + - {{ item }} + {{ item }} - + - {{ item }} + {{ item }} @@ -42,15 +56,17 @@ - - + - - + @@ -32,7 +41,12 @@ - + @@ -44,7 +58,7 @@ import { onLoad, onShow } from "@dcloudio/uni-app"; import List from "@/components/articleList/index.vue"; import Pay from "@/components/pay/index.vue"; import articleListMock from "@/mock/articleList.js"; -import { newsList } from "@/mock/list.js"; +// import { newsList } from "@/mock/list.js"; const articleList = ref([...articleListMock]); @@ -88,8 +102,7 @@ function back() { }); } -onShow(() => { -}); +onShow(() => {}); function handleSubListItem(id: any) { uni.setStorageSync("newsItem", id);