提交 cf85c1e2 编写于 作者: W wanganxp

tabbar的 基础组件 改名为 组件;宽屏模板首页变为slider100

上级 8ddf83f2
...@@ -1814,7 +1814,7 @@ ...@@ -1814,7 +1814,7 @@
"pagePath": "pages/tabBar/component", "pagePath": "pages/tabBar/component",
"iconPath": "@tabBarComponentIconPath", "iconPath": "@tabBarComponentIconPath",
"selectedIconPath": "@tabBarComponentSelectedIconPath", "selectedIconPath": "@tabBarComponentSelectedIconPath",
"text": "内置组件" "text": "组件"
}, },
{ {
"pagePath": "pages/tabBar/API", "pagePath": "pages/tabBar/API",
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<view class="top-window-header"> <view class="top-window-header">
<view class="left-header"> <view class="left-header">
<navigator class="left-header" open-type="reLaunch" url="/pages/component/global-properties/global-properties"> <navigator class="left-header" open-type="reLaunch" url="/pages/component/global-properties/global-properties">
<image src="/static/logo.png" class="logo" mode="heightFix"></image> <image src="/static/uni.png" class="logo" mode="heightFix"></image>
<text>hello uni-app</text> <text>hello uni-app x</text>
</navigator> </navigator>
</view> </view>
<custom-tab-bar class="tab-bar-flex" direction="horizontal" :show-icon="false" :selected="current" <custom-tab-bar class="tab-bar-flex" direction="horizontal" :show-icon="false" :selected="current"
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
<script lang="uts"> <script lang="uts">
type IndexPageItem = { type IndexPageItem = {
tabBar : string; tabBar : string.PageURIString;
index : string; indexPageUrl : string.PageURIString;
} }
type OnTabItemTapEvent = { type OnTabItemTapEvent = {
pagePath : string; pagePath : string;
...@@ -33,16 +33,16 @@ ...@@ -33,16 +33,16 @@
current: 0, current: 0,
indexPage: [{ indexPage: [{
tabBar: '/pages/tabBar/component', tabBar: '/pages/tabBar/component',
index: '/pages/component/global-properties/global-properties' indexPageUrl: '/pages/component/global-properties/global-properties'
}, { }, {
tabBar: '/pages/tabBar/API', tabBar: '/pages/tabBar/API',
index: '/pages/API/get-app/get-app' indexPageUrl: '/pages/API/get-app/get-app'
}, { }, {
tabBar: '/pages/tabBar/CSS', tabBar: '/pages/tabBar/CSS',
index: '/pages/CSS/layout/width' indexPageUrl: '/pages/CSS/layout/width'
}, { }, {
tabBar: '/pages/tabBar/template', tabBar: '/pages/tabBar/template',
index: '/pages/template/long-list/long-list' indexPageUrl: '/pages/template/slider-100/slider-100'
}] as IndexPageItem[] }] as IndexPageItem[]
} }
}, },
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
return return
} }
uni.redirectTo({ uni.redirectTo({
url: indexPageItem.index url: indexPageItem.indexPageUrl
}) })
return return
} else { } else {
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
for (const item of this.indexPage) { for (const item of this.indexPage) {
if (activeTabBar === item.tabBar) { if (activeTabBar === item.tabBar) {
uni.redirectTo({ uni.redirectTo({
url: item.index url: item.indexPageUrl
}) })
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册