Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-10-13 22:57:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
312a586cc3252d01fd00a74bd307e494dc208e2d
312a586c
1 parent
112a2d9f
底部跳转我的页面逻辑调整
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
src/components/navbar.vue
src/components/navbar.vue
View file @
312a586
<!--
* @Date: 2022-09-21 11:59:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-13 2
0:26:49
* @LastEditTime: 2022-10-13 2
2:56:44
* @FilePath: /swx/src/components/navbar.vue
* @Description: 底部导航栏
-->
...
...
@@ -38,17 +38,23 @@ import icon_add from '@/images/icon/new@2x.png'
import Taro from '@tarojs/taro'
const goTo = (page) => {
if (props.activated === 'home') { // 首页调用
if (page === 'home') {
if (currentPage.value === 'home') return;
return;
} else {
wx.redirectTo({
url: '../index
/index'
url: '../my
/index'
})
}
} else { // 我的页面调用
if (page === 'me') {
return;
} else {
if (currentPage.value === 'my') return;
wx.redirectTo({
url: '../my
/index'
url: '../index
/index'
})
}
}
}
const createActivity = () => {
...
...
Please
register
or
login
to post a comment