提交 bec7e6ba 编写于 作者: Anne_LXM's avatar Anne_LXM 提交者: Anne_LXM

宽屏时组件模块首页改为view

上级 df5a8416
...@@ -16,11 +16,6 @@ ...@@ -16,11 +16,6 @@
tabBar : string.PageURIString; tabBar : string.PageURIString;
indexPageUrl : string.PageURIString; indexPageUrl : string.PageURIString;
} }
type OnTabItemTapEvent = {
pagePath : string;
text : string;
index : number;
}
export default { export default {
data() { data() {
return { return {
...@@ -33,7 +28,7 @@ ...@@ -33,7 +28,7 @@
current: 0, current: 0,
indexPage: [{ indexPage: [{
tabBar: '/pages/tabBar/component', tabBar: '/pages/tabBar/component',
indexPageUrl: '/pages/component/global-properties/global-properties' indexPageUrl: '/pages/component/view/view'
}, { }, {
tabBar: '/pages/tabBar/API', tabBar: '/pages/tabBar/API',
indexPageUrl: '/pages/API/get-app/get-app' indexPageUrl: '/pages/API/get-app/get-app'
...@@ -59,7 +54,7 @@ ...@@ -59,7 +54,7 @@
if (path === '/') { if (path === '/') {
category = 'component' category = 'component'
uni.redirectTo({ uni.redirectTo({
url: '/pages/component/global-properties/global-properties' url: '/pages/component/view/view'
}) })
return return
} else if (path.indexOf('/pages/tabBar') === 0) { } else if (path.indexOf('/pages/tabBar') === 0) {
...@@ -80,8 +75,7 @@ ...@@ -80,8 +75,7 @@
} }
}, },
methods: { methods: {
// UniEvent类型报错,临时处理 toSecondMenu(e : OnTabItemTapOption) {
toSecondMenu(e : OnTabItemTapEvent) {
const activeTabBar = '/' + e.pagePath const activeTabBar = '/' + e.pagePath
for (const item of this.indexPage) { for (const item of this.indexPage) {
if (activeTabBar === item.tabBar) { if (activeTabBar === item.tabBar) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册