提交 910af899 编写于 作者: inkwalk's avatar inkwalk

update

上级 c78837c0
...@@ -1196,21 +1196,20 @@ ...@@ -1196,21 +1196,20 @@
"globalStyle": { "globalStyle": {
"pageOrientation": "portrait", "pageOrientation": "portrait",
"navigationBarTitleText": "Hello uniapp", "navigationBarTitleText": "Hello uniapp",
// #ifndef H5
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#007AFF", "navigationBarBackgroundColor": "#007AFF",
// #endif
// #ifdef H5
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#F1F1F1",
// #endif
"backgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8",
"backgroundColorTop": "#F4F5F6", "backgroundColorTop": "#F4F5F6",
"backgroundColorBottom": "#F4F5F6", "backgroundColorBottom": "#F4F5F6",
"mp-360": { "mp-360": {
"navigationStyle": "custom" "navigationStyle": "custom"
}, },
"maxWidth": 1190 "h5": {
"maxWidth": 1190,
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#F1F1F1"
}
}, },
"tabBar": { "tabBar": {
"color": "#7A7E83", "color": "#7A7E83",
......
...@@ -51,26 +51,28 @@ ...@@ -51,26 +51,28 @@
}, },
$route: { $route: {
immediate: true, immediate: true,
handler(newRoute) { handler(newRoute) {
if (newRoute.path === '/') { if (this.matchLeftWindow) {
uni.redirectTo({ if (newRoute.path === '/') {
url: 'pages/component/view/view' uni.redirectTo({
}) url: 'pages/component/view/view'
} else if (!newRoute.matched.length) { })
uni.redirectTo({ } else if (!newRoute.matched.length) {
url: 'pages/error/404' uni.redirectTo({
}) url: 'pages/error/404'
} else { })
let active = newRoute.path.split('/')[2] } else {
if (this.nav.includes(active)) { let active = newRoute.path.split('/')[2]
if (active === 'component') { if (this.nav.includes(active)) {
active = 'componentPage' if (active === 'component') {
active = 'componentPage'
}
if (active === 'template') {
active = 'templatePage'
}
this.setActive(active)
} }
if (active === 'template') { }
active = 'templatePage'
}
this.setActive(active)
}
} }
} }
} }
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
} }
</script> </script>
<style lang="scss"> <style>
.top-window-header { .top-window-header {
height: 60px; height: 60px;
padding: 0 15px; padding: 0 15px;
...@@ -104,15 +104,13 @@ ...@@ -104,15 +104,13 @@
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
flex: 1; flex: 1;
}
image { .logo image {
height: 30px; height: 30px;
width: 30px; width: 30px;
} }
.logo text {
text { margin-left: 8px;
margin-left: 8px;
}
} }
.right-header { .right-header {
display: flex; display: flex;
...@@ -130,7 +128,6 @@ ...@@ -130,7 +128,6 @@
border-bottom: 2px solid; border-bottom: 2px solid;
} }
.tab-bar-flex { .tab-bar-flex {
// flex: 1;
width: 360px; width: 360px;
} }
.phone-link { .phone-link {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册