跳转页面代码:
uni.navigateTo({
url: '/pages/user/agreement'
})
配置如下:
{
"pages": [{
"path": "pages/user/login",
"style": {
"navigationBarTitleText": "登录",
"app-plus": {
"titleNView": false //禁用原生导航栏
}
}
}, {
"path": "pages/user/agreement",
"style": {
"navigationBarTitleText": "agreement"
}
}],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "系统平台",
"navigationBarBackgroundColor": "#0064BF",
"backgroundColor": "#F8F8F8",
"titleImage": "/static/img/head/mobileLogo.png",
"app-plus": {
"background": "#efeff4",
"titleNView": {
"backButton": { //自定义 backButton
"color": "#ffffff"
}
}
}
}
这是新页面代码:
<template>
<view class="container">
<view class="wrap">
<text class="section"> 第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段第一段</text>
<text class="section"> 第二段第二段第二段第二段第二段第二段第二段第二段第二段第二段第二段第二段第二段第二段第二段</text>
</view>
</view>
</template>
<script>
export default {
}
</script>
<style lang="scss" scoped>
</style>
0 个回复