From 7aa94f2efdf8d018cde079aa62148b20e374a1d4 Mon Sep 17 00:00:00 2001 From: chenhaizhao <2291973799@qq.com> Date: Tue, 6 Jan 2026 17:20:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- main.js | 3 + pages.json | 12 +++ pages/index/index.vue | 11 ++- .../patientFbDetail/patientFbDetail.vue | 63 +++++++-------- pages/patient/patientFbList/patientFbList.vue | 81 +++++++++++-------- pages/patient/patientList/patientList.vue | 18 +++-- 7 files changed, 117 insertions(+), 74 deletions(-) diff --git a/.gitignore b/.gitignore index 3539e58..02d9f16 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ unpackage -node_modules \ No newline at end of file +node_modules +CLAUDE.md \ No newline at end of file diff --git a/main.js b/main.js index 105595c..5d2aeee 100644 --- a/main.js +++ b/main.js @@ -1,8 +1,11 @@ import App from './App' import { createSSRApp } from 'vue' import pinia from './store' +import Loadmore from "@/components/Loadmore/Loadmore.vue" + export function createApp() { const app = createSSRApp(App) + app.component("Loadmore", Loadmore) app.use(pinia) return { app diff --git a/pages.json b/pages.json index 791b48f..cd82078 100644 --- a/pages.json +++ b/pages.json @@ -7,6 +7,18 @@ }, "pages": [ + { + "path": "pages/brand/brandDetail/brandDetail", + "style": { + "navigationBarTitleText": "品牌详情" + } + }, + { + "path": "pages/brand/brandList/brandList", + "style": { + "navigationBarTitleText": "品牌列表" + } + }, { "path": "pages/index/index", "style": { diff --git a/pages/index/index.vue b/pages/index/index.vue index d5638a0..1e0f10f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -31,7 +31,16 @@ const clickMenu = (value) => { uni.navigateTo({ url:"/pages/patient/patientList/patientList" }) - + break; + case 2: + uni.navigateTo({ + url:"/pages/patient/patientFbList/patientFbList" + }) + break; + case 3: + uni.navigateTo({ + url:"/pages/brand/brandList/brandList" + }) break; default: diff --git a/pages/patient/patientFbDetail/patientFbDetail.vue b/pages/patient/patientFbDetail/patientFbDetail.vue index e9f5b7e..256ef83 100644 --- a/pages/patient/patientFbDetail/patientFbDetail.vue +++ b/pages/patient/patientFbDetail/patientFbDetail.vue @@ -29,41 +29,38 @@ \ No newline at end of file diff --git a/pages/patient/patientFbList/patientFbList.vue b/pages/patient/patientFbList/patientFbList.vue index 8e00368..6671a66 100644 --- a/pages/patient/patientFbList/patientFbList.vue +++ b/pages/patient/patientFbList/patientFbList.vue @@ -1,55 +1,70 @@ \ No newline at end of file diff --git a/pages/patient/patientList/patientList.vue b/pages/patient/patientList/patientList.vue index 83034a5..a0f5669 100644 --- a/pages/patient/patientList/patientList.vue +++ b/pages/patient/patientList/patientList.vue @@ -3,18 +3,22 @@ import { ref } from 'vue'; import { onLoad } from "@dcloudio/uni-app" import { getPatientList } from "@/services/patient" let active = ref('all') +let num = ref(5) +// 切换导航 let cutNav = (type) => { active.value = type } onLoad(() => { - getPatientList() + // getPatientList() }) +const reachBottom = () => { + if (num.value < 20) num.value += 5 +}