uniapp 路由的配置

本文详细介绍了uniapp的路由配置方法,包括页面跳转、参数传递、动态路由、堆栈管理等方面,帮助开发者掌握uniapp的路由管理技巧。
摘要由CSDN通过智能技术生成
==============
page.json
==============
{
	"pages": [
		//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
		{
			"path": "pages/tabBar/component/component",
			"style": {
				"navigationBarTitleText": "组件",
				"app-plus": {
					"titleNView": {
						"buttons": [{
							"text": "\ue534",
							"fontSrc": "/static/uni.ttf",
							"fontSize": "22px",
							"color": "#999999"
						}]
					}
				}
			}
		},
		{
			"path": "pages/tabBar/API/API",
			"style": {
				"navigationBarTitleText": "接口",
				"app-plus": {
					"titleNView": {
						"buttons": [{
							"text": "\ue534",
							"fontSrc": "/static/uni.ttf",
							"fontSize": "22px",
							"color": "#999999"
						}]
					}
				}
			}
		},
		{
			"path": "pages/tabBar/template/template",
			"style": {
				"navigationBarTitleText": "模版",
				"app-plus": {
					"titleNView": {
						"buttons": [{
							"text": "\ue534",
							"fontSrc": "/static/uni.ttf",
							"fontSize": "22px",
							"color": "#999999"
						}]
					}
				}
			}
		},
		{
			"path": "pages/component/view/view",
			"style": {
				"navigationBarTitleText": "view"
			}
		},
		{
			"path": "pages/component/scroll-view/scroll-view",
			"style": {
				"navigationBarTitleText": "scroll-view"
			}
		},
		{
			"path": "pages/component/swiper/swiper",
			"style": {
				"navigationBarTitleText": "swiper"
			}
		},
		{
			"path": "pages/component/movable-view/movable-view",
			"style": {
				"navigationBarTitleText": "movable-view"
			}
		},
		{
			"path": "pages/component/text/text",
			"style": {
				"navigationBarTitleText": "text"
			}
		},
		{
			"path": "pages/component/rich-text/rich-text",
			"style": {
				"navigationBarTitleText": "rich-text"
			}
		},
		{
			"path": "pages/component/progress/progress",
			"style": {
				"navigationBarTitleText": "progress"
			}
		},
		{
			"path": "pages/component/button/button",
			"style": {
				"navigationBarTitleText": "button"
			}
		},
		{
			"path": "pages/component/checkbox/checkbox",
			"style": {
				"navigationBarTitleText": "checkbox"
			}
		},
		{
			"path": "pages/component/form/form",
			"style": {
				"navigationBarTitleText": "form"
			}
		},
		{
			"path": "pages/component/input/input",
			"style": {
				"navigationBarTitleText": "input"
			}
		},
		{
			"path": "pages/component/label/label",
			"style": {
				"navigationBarTitleText": "label"
			}
		},
		{
			"path": "pages/component/picker/picker",
			"style": {
				"navigationBarTitleText": "picker"
			}
		},
		{
			"path": "pages/component/picker-view/picker-view",
			"style": {
				"navigationBarTitleText": "picker-view"
			}
		},
		{
			"path": "pages/component/radio/radio",
			"style": {
				"navigationBarTitleText": "radio"
			}
		},
		{
			"path": "pages/component/slider/slider",
			"style": {
				"navigationBarTitleText": "slider"
			}
		},
		{
			"path": "pages/component/switch/switch",
			"style": {
				"navigationBarTitleText": "switch"
			}
		},
		{
			"path": "pages/component/textarea/textarea",
			"style": {
				"navigationBarTitleText": "textarea"
			}
		},
		{
			"path": "pages/component/navigator/navigator",
			"style": {
				"navigationBarTitleText": "navigator"
	
  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值