diff --git a/pages.json b/pages.json index 5b94d2b..bec07dc 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": { @@ -76,7 +76,21 @@ "navigationBarTitleText": "VIP", "navigationStyle": "custom" } - } + }, + { + "path": "pages/index/compontents/bigMaster", + "style": { + "navigationBarTitleText": "大宗师", + "navigationStyle": "custom" + } + }, + { + "path": "pages/index/compontents/masterHand", + "style": { + "navigationBarTitleText": "高手详情", + "navigationStyle": "custom" + } + } ], "globalStyle": { "navigationBarTextStyle": "black", @@ -90,14 +104,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/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 01a6baa..2d0e4a5 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -51,13 +51,13 @@ 推荐高手 - 查看更多 + 查看更多 - + 人名 @@ -97,6 +97,18 @@ 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' + }); +}; +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; +};