pages.json 5.3 KB
Newer Older
Y
init  
yurj26 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
{
    "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
        {
            "path": "pages/tabBar/component/component",
            "style": {
                "navigationBarTitleText": "内置组件"
            }
        },
        {
            "path": "pages/component/view/view",
            "style": {
                "navigationBarTitleText": "view"
            }
        },
        {
            "path": "pages/component/scroll-view/scroll-view",
            "style": {
                "navigationBarTitleText": "scroll-view"
            }
        },
        {
            "path": "pages/component/text/text",
            "style": {
                "navigationBarTitleText": "text"
            }
        },
        {
            "path": "pages/component/progress/progress",
            "style": {
                "navigationBarTitleText": "progress"
            }
        },
        {
            "path": "pages/component/button/button",
            "style": {
                "navigationBarTitleText": "button"
            }
        },
        {
            "path": "pages/component/radio/radio",
            "style": {
                "navigationBarTitleText": "radio"
            }
        },
        {
            "path": "pages/component/checkbox/checkbox",
            "style": {
                "navigationBarTitleText": "checkbox"
            }
        },
        {
            "path": "pages/component/input/input",
            "style": {
                "navigationBarTitleText": "input"
            }
        },
        {
            "path": "pages/component/textarea/textarea",
            "style": {
                "navigationBarTitleText": "textarea"
            }
        },
H
hdx 已提交
63 64 65 66 67 68 69 70 71 72 73 74
        {
            "path": "pages/component/slider/slider",
            "style": {
                "navigationBarTitleText": "slider"
            }
        },
        {
            "path": "pages/component/switch/switch",
            "style": {
                "navigationBarTitleText": "switch"
            }
        },
Y
init  
yurj26 已提交
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
        {
            "path": "pages/component/image/image",
            "style": {
                "navigationBarTitleText": "image"
            }
        },
        {
            "path": "pages/tabBar/API/API",
            "style": {
                "navigationBarTitleText": "接口"
            }
        },
        {
            "path": "pages/API/navigator/navigator",
            "style": {
                "navigationBarTitleText": "页面跳转"
            }
        },
        {
            "path": "pages/API/navigator/new-page/new-uvue-page-1",
            "style": {
                "navigationBarTitleText": "新UVUE页面1"
            }
        },
        {
            "path": "pages/API/navigator/new-page/new-uvue-page-2",
            "style": {
                "navigationBarTitleText": "新UVUE页面2"
            }
Y
yurj26 已提交
104 105 106 107 108 109
        },
        {
            "path": "pages/API/storage/storage",
            "style": {
                "navigationBarTitleText": "数据存储"
            }
Y
yurj26 已提交
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
        },
        {
            "path": "pages/API/action-sheet/action-sheet",
            "style": {
                "navigationBarTitleText": "操作菜单"
            }
        },
        {
            "path": "pages/API/modal/modal",
            "style": {
                "navigationBarTitleText": "模态弹窗"
            }
        },
        {
            "path": "pages/API/show-loading/show-loading",
            "style": {
                "navigationBarTitleText": "加载提示框"
            }
        },
        {
            "path": "pages/API/toast/toast",
            "style": {
                "navigationBarTitleText": "消息提示框"
            }
Y
init  
yurj26 已提交
134 135 136
        }
    ],
    "globalStyle": {
Y
yurj26 已提交
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
        "pageOrientation": "portrait",
        "navigationBarTitleText": "Hello uniapp x",
        "navigationBarTextStyle": "white",
        "navigationBarBackgroundColor": "#007AFF",
        "backgroundColor": "#F8F8F8",
        "backgroundColorTop": "#F4F5F6",
        "backgroundColorBottom": "#F4F5F6",
        "h5": {
            "maxWidth": 1190,
            "navigationBarTextStyle": "black",
            "navigationBarBackgroundColor": "#F1F1F1"
        }
    },
    "tabBar": {
        "color": "#7A7E83",
        "selectedColor": "#007AFF",
        "borderStyle": "black",
        "backgroundColor": "#F8F8F8",
        "list": [{
                "pagePath": "pages/tabBar/component/component",
                "iconPath": "static/component.png",
                "selectedIconPath": "static/componentHL.png",
                "text": "内置组件"
            },
            {
                "pagePath": "pages/tabBar/API/API",
                "iconPath": "static/api.png",
                "selectedIconPath": "static/apiHL.png",
                "text": "接口"
            }
        ]
Y
init  
yurj26 已提交
168 169 170 171 172 173 174 175 176 177 178
    },
    "uniIdRouter": {},
    "condition": { //模式配置,仅开发期间生效
        "current": 0, //当前激活的模式(list 的索引项)
        "list": [{
            "name": "", //模式名称
            "path": "", //启动页面,必选
            "query": "" //启动参数,在页面的onLoad函数里面得到
        }]
    }
}