Commit 8b876913 by LJM

css

parent 8812edfd
...@@ -23,13 +23,16 @@ ...@@ -23,13 +23,16 @@
"style": { "style": {
"navigationBarTitleText": "购物车" "navigationBarTitleText": "购物车"
} }
},
{
"path": "pages/mine/login",
"style": {
"navigationBarTitleText": "登录"
}
} }
], ],
"globalStyle": { "globalStyle": {
// "navigationBarTextStyle": "black",
// "navigationBarTitleText": "uni-app",
// "navigationBarBackgroundColor": "#F8F8F8",
// "backgroundColor": "#F8F8F8"
}, },
"uniIdRouter": {} "uniIdRouter": {}
} }
\ No newline at end of file
<template>
<view class="page-login column rowCenter verCenter"><image src="../../static/logo.png" mode=""></image></view>
</template>
<script>
export default {
data() {
return {};
},
onLoad() {},
methods: {}
};
</script>
<style lang="scss">
@import '@/assets/css/mine/login.scss';
</style>
...@@ -12,35 +12,41 @@ const router = new Router({ ...@@ -12,35 +12,41 @@ const router = new Router({
animationDuration: 300 animationDuration: 300
} }
}, },
encodeURI: false, //页面刷新后地址栏参数丢失问题 false不丢失 true刷新后地址栏参数清空 encodeURI: false,
routes: [{ routes: [{
//注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦
path: '/pages/index/index', path: '/pages/index/index',
aliasPath: '/', //对于h5端你必须在首页加上aliasPath并设置为/ aliasPath: '/',
meta: { meta: {
title: '首页', title: '首页',
}, }
}, },
{ {
path: '/pages/search/search', path: '/pages/search/search',
aliasPath: '/search', aliasPath: '/search',
meta: { meta: {
title: '搜索首页', title: '搜索首页',
}, }
}, },
{ {
path: '/pages/search/searchlist', path: '/pages/search/searchlist',
aliasPath: '/s', aliasPath: '/s',
meta: { meta: {
title: '搜索列表', title: '搜索列表',
}, }
}, },
{ {
path: '/pages/car/car', path: '/pages/car/car',
aliasPath: '/joincart', aliasPath: '/joincart',
meta: { meta: {
title: '购物车', title: '购物车',
}
}, },
{
path: '/pages/mine/login',
aliasPath: '/login',
meta: {
title: '登录',
}
}, },
] ]
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment