hookehuyr

底部跳转我的页面逻辑调整

<!--
* @Date: 2022-09-21 11:59:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-13 20:26:49
* @LastEditTime: 2022-10-13 22: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 = () => {
......