From 140927c2ab31ba16660e17321b60fc7c8664a18a Mon Sep 17 00:00:00 2001 From: sundongyu <2811054731@qq.com> Date: Thu, 18 Apr 2024 19:39:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BA=86=E5=A4=A7?= =?UTF-8?q?=E5=AE=97=E5=B8=88=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 65 ++++++----- pages/index/compontents/bigMaster.vue | 162 ++++++++++++++++++++++++++ pages/index/index.vue | 8 +- 3 files changed, 205 insertions(+), 30 deletions(-) create mode 100644 pages/index/compontents/bigMaster.vue diff --git a/pages.json b/pages.json index 7e02529..928e044 100644 --- a/pages.json +++ b/pages.json @@ -7,13 +7,13 @@ "navigationStyle": "custom" } }, - { - "path": "pages/school/index", - "style": { - "navigationBarTitleText": "门派", - "navigationStyle": "custom" - } - }, + { + "path": "pages/school/index", + "style": { + "navigationBarTitleText": "门派", + "navigationStyle": "custom" + } + }, { "path": "pages/intelLigence/index", "style": { @@ -28,20 +28,27 @@ "navigationStyle": "custom" } }, - { - "path": "pages/user/index", - "style": { - "navigationBarTitleText": "我的", - "navigationStyle": "custom" - } - }, - { - "path": "pages/user/compontents/attention", - "style": { - "navigationBarTitleText": "关注列表", - "navigationStyle": "custom" - } - } + { + "path": "pages/user/index", + "style": { + "navigationBarTitleText": "我的", + "navigationStyle": "custom" + } + }, + { + "path": "pages/user/compontents/attention", + "style": { + "navigationBarTitleText": "关注列表", + "navigationStyle": "custom" + } + }, + { + "path": "pages/index/compontents/bigMaster", + "style": { + "navigationBarTitleText": "大宗师", + "navigationStyle": "custom" + } + } ], "globalStyle": { "navigationBarTextStyle": "black", @@ -55,14 +62,14 @@ "pagePath": "pages/index/index", "text": "首页" }, - { - "pagePath": "pages/school/index", - "text": "门派" - }, - { - "pagePath": "pages/intelLigence/index", - "text": "赛事" - }, + { + "pagePath": "pages/school/index", + "text": "门派" + }, + { + "pagePath": "pages/intelLigence/index", + "text": "赛事" + }, { "pagePath": "pages/rankList/index", "text": "排行榜" diff --git a/pages/index/compontents/bigMaster.vue b/pages/index/compontents/bigMaster.vue new file mode 100644 index 0000000..cb30ea1 --- /dev/null +++ b/pages/index/compontents/bigMaster.vue @@ -0,0 +1,162 @@ + + + + + diff --git a/pages/index/index.vue b/pages/index/index.vue index 01a6baa..194ba19 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -51,7 +51,7 @@ 推荐高手 - 查看更多 + 查看更多 @@ -97,6 +97,12 @@ const src = ref({ src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg', text: '无头像' }); +const ViewGuru = () => { + uni.navigateTo({ + url: '/pages/index/compontents/bigMaster', + animationDuration: '300' + }); +}; // #ifdef H5 || APP console.log('运行在 App'); // #endif From fa7e984df0b39b446171d4865b89c7b5e82f08f3 Mon Sep 17 00:00:00 2001 From: sundongyu <2811054731@qq.com> Date: Fri, 19 Apr 2024 14:06:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BA=86=E9=AB=98?= =?UTF-8?q?=E6=89=8B=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 7 + pages/index/compontents/masterHand.vue | 334 +++++++++++++++++++++++++ pages/index/index.vue | 8 +- pages/school/index.vue | 9 + 4 files changed, 357 insertions(+), 1 deletion(-) create mode 100644 pages/index/compontents/masterHand.vue diff --git a/pages.json b/pages.json index 928e044..fdc7b57 100644 --- a/pages.json +++ b/pages.json @@ -48,6 +48,13 @@ "navigationBarTitleText": "大宗师", "navigationStyle": "custom" } + }, + { + "path": "pages/index/compontents/masterHand", + "style": { + "navigationBarTitleText": "高手详情", + "navigationStyle": "custom" + } } ], "globalStyle": { diff --git a/pages/index/compontents/masterHand.vue b/pages/index/compontents/masterHand.vue new file mode 100644 index 0000000..313bf24 --- /dev/null +++ b/pages/index/compontents/masterHand.vue @@ -0,0 +1,334 @@ + + + + + diff --git a/pages/index/index.vue b/pages/index/index.vue index 194ba19..2d0e4a5 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -57,7 +57,7 @@ - + 人名 @@ -103,6 +103,12 @@ const ViewGuru = () => { animationDuration: '300' }); }; +const masterHand = (item) => { + uni.navigateTo({ + url: '/pages/index/compontents/masterHand', + animationDuration: '300' + }); +}; // #ifdef H5 || APP console.log('运行在 App'); // #endif diff --git a/pages/school/index.vue b/pages/school/index.vue index 4ef047f..d1d6f51 100644 --- a/pages/school/index.vue +++ b/pages/school/index.vue @@ -68,6 +68,10 @@ + + + + @@ -75,6 +79,8 @@ import { ref, reactive } from 'vue'; // 获取安全区域的边界 const { safeAreaInsets } = uni.getSystemInfoSync(); +const show = ref(true); +const content = ref('uview-plus的目标是成为uni-app生态最优秀的UI框架'); const categoryList = reactive([ { id: 1, @@ -116,6 +122,9 @@ const showCategory = (index) => { const toCategory = (box) => { console.log(box); }; +const confirm = () => { + show.value = false; +};