pages.json 15.3 KB
Newer Older
Y
yurj26 已提交
1
{
DCloud-WZF's avatar
DCloud-WZF 已提交
2 3
  "pages": [
    //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
DCloud_JSON's avatar
DCloud_JSON 已提交
4
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
5
      "path": "pages/tabBar/component",
DCloud_JSON's avatar
DCloud_JSON 已提交
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 63 64 65 66 67 68 69 70
      "style": {
        "navigationBarTitleText": "内置组件",
        "backgroundColor": "#F8F8F8"
      }
    },
    {
      "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"
      }
    },
    {
      "path": "pages/component/slider/slider",
      "style": {
        "navigationBarTitleText": "slider"
      }
    },
Y
yurj26 已提交
71 72 73 74 75 76
    {
      "path": "pages/component/picker-view/picker-view",
      "style": {
        "navigationBarTitleText": "picker-view"
      }
    },
DCloud_JSON's avatar
DCloud_JSON 已提交
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 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
    {
      "path": "pages/component/slider-100/slider-100",
      "style": {
        "navigationBarTitleText": "slider x 100"
      }
    },
    {
      "path": "pages/component/switch/switch",
      "style": {
        "navigationBarTitleText": "switch"
      }
    },
    {
      "path": "pages/component/swiper/swiper",
      "style": {
        "navigationBarTitleText": "swiper"
      }
    },
    {
      "path": "pages/component/image/image",
      "style": {
        "navigationBarTitleText": "image"
      }
    },
    {
      "path": "pages/component/image/image-format",
      "style": {
        "navigationBarTitleText": "image-format"
      }
    },
    {
      "path": "pages/component/image/image-mode",
      "style": {
        "navigationBarTitleText": "image-mode"
      }
    },
    {
      "path": "pages/component/image/image-path",
      "style": {
        "navigationBarTitleText": "image-path"
      }
    },
119 120 121 122 123
    {
      "path": "pages/component/image/image-large",
      "style": {
        "navigationBarTitleText": "大图测试"
      }
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
124 125 126 127 128 129 130
    },
	{
	  "path": "pages/component/video/video",
	  "style": {
	    "navigationBarTitleText": "video"
	  }
	},
DCloud_JSON's avatar
DCloud_JSON 已提交
131 132 133 134 135 136 137 138 139 140 141 142 143
    {
      "path": "pages/component/web-view/web-view",
      "style": {
        "navigationBarTitleText": "web-view"
      }
    },
    {
      "path": "pages/component/web-view-local/web-view-local",
      "style": {
        "navigationBarTitleText": "web-view-local"
      }
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
144
      "path": "pages/tabBar/API",
DCloud_JSON's avatar
DCloud_JSON 已提交
145 146 147 148 149 150 151 152 153 154 155 156
      "style": {
        "navigationBarTitleText": "接口",
        "backgroundColor": "#F8F8F8"
      }
    },
    {
      "path": "pages/API/navigator/navigator",
      "style": {
        "navigationBarTitleText": "页面跳转"
      }
    },
    {
DCloud-WZF's avatar
DCloud-WZF 已提交
157
      "path": "pages/API/navigator/new-page/new-page",
DCloud_JSON's avatar
DCloud_JSON 已提交
158
      "style": {
DCloud-WZF's avatar
DCloud-WZF 已提交
159
        "navigationBarTitleText": "新页面"
DCloud_JSON's avatar
DCloud_JSON 已提交
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
      }
    },
    {
      "path": "pages/API/storage/storage",
      "style": {
        "navigationBarTitleText": "数据存储"
      }
    },
    {
      "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": "消息提示框"
      }
    },
    {
      "path": "pages/API/get-location/get-location",
      "style": {
        "navigationBarTitleText": "获取定位"
      }
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
199
      "path": "pages/tabBar/CSS",
DCloud_JSON's avatar
DCloud_JSON 已提交
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455
      "style": {
        "navigationBarTitleText": "CSS",
        "backgroundColor": "#F8F8F8"
      }
    },
    {
      "path": "pages/CSS/background/background-color",
      "style": {
        "navigationBarTitleText": "background-color"
      }
    },
    {
      "path": "pages/CSS/background/background-image",
      "style": {
        "navigationBarTitleText": "background-image"
      }
    },
    {
      "path": "pages/CSS/border/border-color",
      "style": {
        "navigationBarTitleText": "border-color"
      }
    },
    {
      "path": "pages/CSS/border/border-radius",
      "style": {
        "navigationBarTitleText": "border-radius"
      }
    },
    {
      "path": "pages/CSS/border/border-style",
      "style": {
        "navigationBarTitleText": "border-style"
      }
    },
    {
      "path": "pages/CSS/border/border-width",
      "style": {
        "navigationBarTitleText": "border-width"
      }
    },
    {
      "path": "pages/CSS/border/border",
      "style": {
        "navigationBarTitleText": "border"
      }
    },
    {
      "path": "pages/CSS/box-shadow/box-shadow",
      "style": {
        "navigationBarTitleText": "box-shadow"
      }
    },
    {
      "path": "pages/CSS/flex/align-content",
      "style": {
        "navigationBarTitleText": "align-content"
      }
    },
    {
      "path": "pages/CSS/flex/align-items",
      "style": {
        "navigationBarTitleText": "align-items"
      }
    },
    {
      "path": "pages/CSS/flex/flex-basis",
      "style": {
        "navigationBarTitleText": "flex-basis"
      }
    },
    {
      "path": "pages/CSS/flex/flex-direction",
      "style": {
        "navigationBarTitleText": "flex-direction"
      }
    },
    {
      "path": "pages/CSS/flex/flex-flow",
      "style": {
        "navigationBarTitleText": "flex-flow"
      }
    },
    {
      "path": "pages/CSS/flex/flex-grow",
      "style": {
        "navigationBarTitleText": "flex-grow"
      }
    },
    {
      "path": "pages/CSS/flex/flex-shrink",
      "style": {
        "navigationBarTitleText": "flex-shrink"
      }
    },
    {
      "path": "pages/CSS/flex/flex",
      "style": {
        "navigationBarTitleText": "flex"
      }
    },
    {
      "path": "pages/CSS/flex/justify-content",
      "style": {
        "navigationBarTitleText": "justify-content"
      }
    },
    {
      "path": "pages/CSS/layout/height",
      "style": {
        "navigationBarTitleText": "height"
      }
    },
    {
      "path": "pages/CSS/layout/max-height",
      "style": {
        "navigationBarTitleText": "max-height"
      }
    },
    {
      "path": "pages/CSS/layout/max-width",
      "style": {
        "navigationBarTitleText": "max-width"
      }
    },
    {
      "path": "pages/CSS/layout/min-height",
      "style": {
        "navigationBarTitleText": "min-height"
      }
    },
    {
      "path": "pages/CSS/layout/min-width",
      "style": {
        "navigationBarTitleText": "min-width"
      }
    },
    {
      "path": "pages/CSS/layout/position",
      "style": {
        "navigationBarTitleText": "position"
      }
    },
    {
      "path": "pages/CSS/layout/width",
      "style": {
        "navigationBarTitleText": "width"
      }
    },
    {
      "path": "pages/CSS/margin/margin-bottom",
      "style": {
        "navigationBarTitleText": "margin-bottom"
      }
    },
    {
      "path": "pages/CSS/margin/margin-left",
      "style": {
        "navigationBarTitleText": "margin-left"
      }
    },
    {
      "path": "pages/CSS/margin/margin-right",
      "style": {
        "navigationBarTitleText": "margin-right"
      }
    },
    {
      "path": "pages/CSS/margin/margin-top",
      "style": {
        "navigationBarTitleText": "margin-top"
      }
    },
    {
      "path": "pages/CSS/margin/margin",
      "style": {
        "navigationBarTitleText": "margin"
      }
    },
    {
      "path": "pages/CSS/padding/padding-bottom",
      "style": {
        "navigationBarTitleText": "padding-bottom"
      }
    },
    {
      "path": "pages/CSS/padding/padding-left",
      "style": {
        "navigationBarTitleText": "padding-left"
      }
    },
    {
      "path": "pages/CSS/padding/padding-right",
      "style": {
        "navigationBarTitleText": "padding-right"
      }
    },
    {
      "path": "pages/CSS/padding/padding-top",
      "style": {
        "navigationBarTitleText": "padding-top"
      }
    },
    {
      "path": "pages/CSS/padding/padding",
      "style": {
        "navigationBarTitleText": "padding"
      }
    },
    {
      "path": "pages/CSS/text/color",
      "style": {
        "navigationBarTitleText": "color"
      }
    },
    {
      "path": "pages/CSS/text/font-family",
      "style": {
        "navigationBarTitleText": "font-family"
      }
    },
    {
      "path": "pages/CSS/text/font-size",
      "style": {
        "navigationBarTitleText": "font-size"
      }
    },
    {
      "path": "pages/CSS/text/font-style",
      "style": {
        "navigationBarTitleText": "font-style"
      }
    },
    {
      "path": "pages/CSS/text/font-weight",
      "style": {
        "navigationBarTitleText": "font-weight"
      }
    },
    {
      "path": "pages/CSS/text/line-height",
      "style": {
        "navigationBarTitleText": "line-height"
      }
    },
    {
      "path": "pages/CSS/text/text-align",
      "style": {
        "navigationBarTitleText": "text-align"
      }
    },
    {
      "path": "pages/CSS/text/text-decoration-line",
      "style": {
        "navigationBarTitleText": "text-decoration-line"
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
456 457
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
458 459 460 461
      "path": "pages/CSS/transition/transition",
      "style": {
        "navigationBarTitleText": "Transition"
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
462 463
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
464 465 466 467
      "path": "pages/CSS/transform/transform",
      "style": {
        "navigationBarTitleText": "Transform"
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
468 469
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
470 471
      "path": "pages/API/request/request",
      "style": {
472
        "navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
473
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
474 475
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
476 477
      "path": "pages/API/upload-file/upload-file",
      "style": {
478
        "navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
479
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
480 481
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
482 483
      "path": "pages/API/download-file/download-file",
      "style": {
484
        "navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
485
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
486 487
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
488 489
      "path": "pages/API/websocket-socketTask/websocket-socketTask",
      "style": {
490
        "navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
491
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
492 493
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
494 495
      "path": "pages/API/websocket-global/websocket-global",
      "style": {
496
        "navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
497
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
498 499
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
500 501
      "path": "pages/API/get-system-info/get-system-info",
      "style": {
502
        "navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
503
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
504 505
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
506 507
      "path": "pages/API/get-device-info/get-device-info",
      "style": {
508
        "navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
509
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
510 511
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
512 513
      "path": "pages/API/get-app-base-info/get-app-base-info",
      "style": {
514
        "navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
515
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
516 517
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
518 519
      "path": "pages/API/get-system-setting/get-system-setting",
      "style": {
520
        "navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
521
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
522 523
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
524 525
      "path": "pages/API/get-app-authorize-setting/get-app-authorize-setting",
      "style": {
526
        "navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
527
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
528 529
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
530 531
      "path": "pages/API/preview-image/preview-image",
      "style": {
532
        "navigationBarTitleText": "图片预览"
DCloud_JSON's avatar
DCloud_JSON 已提交
533
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
534 535
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
536 537
      "path": "pages/component/scroll-view/scroll-view-refresher",
      "style": {
538
        "navigationBarTitleText": "scroll-view-refresher"
DCloud_JSON's avatar
DCloud_JSON 已提交
539
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
540 541
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
542 543
      "path": "pages/component/list/list",
      "style": {
544
        "navigationBarTitleText": "列表到详情示例"
DCloud_JSON's avatar
DCloud_JSON 已提交
545
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
546 547
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
548 549
      "path": "pages/API/get-network-type/get-network-type",
      "style": {
550
        "navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
551
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
552 553
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
554 555
      "path": "pages/component/list/detail/detail",
      "style": {
556
        "navigationBarTitleText": "详情示例"
DCloud_JSON's avatar
DCloud_JSON 已提交
557
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
558 559
    },
    {
560
      "path": "pages/API/page-scroll-to/page-scroll-to",
DCloud_JSON's avatar
DCloud_JSON 已提交
561
      "style": {
562
        "navigationBarTitleText": "pageScrollTo"
Q
qiang 已提交
563
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
564 565
    },
    {
Q
qiang 已提交
566 567
      "path": "pages/API/event-bus/event-bus",
      "style": {
568
        "navigationBarTitleText": "event-bus"
DCloud_JSON's avatar
DCloud_JSON 已提交
569
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
570 571
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
572 573
      "path": "pages/template/drop-card/drop-card",
      "style": {
574
        "navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
575
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
576 577
    },
    {
DCloud_JSON's avatar
DCloud_JSON 已提交
578
      "path": "pages/tabBar/template",
DCloud_JSON's avatar
DCloud_JSON 已提交
579
      "style": {
580
        "navigationBarTitleText": "模板"
DCloud_JSON's avatar
DCloud_JSON 已提交
581
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
582 583 584 585
    },
    {
      "path": "pages/component/long-list/long-list",
      "style": {
586
        "navigationBarTitleText": "长列表示例"
DCloud-WZF's avatar
DCloud-WZF 已提交
587 588 589 590 591
      }
    },
    {
      "path": "pages/component/long-list/detail/detail",
      "style": {
592
        "navigationBarTitleText": "详情示例"
DCloud-WZF's avatar
DCloud-WZF 已提交
593 594 595
      }
    },
    {
596
      "path": "pages/template/swiper-vertical-video/swiper-vertical-video",
DCloud-WZF's avatar
DCloud-WZF 已提交
597
      "style": {
598
        "navigationBarTitleText": ""
DCloud-WZF's avatar
DCloud-WZF 已提交
599
      }
DCloud-WZF's avatar
DCloud-WZF 已提交
600 601 602 603 604 605
    },
    {
      "path": "pages/API/get-battery-info/get-battery-info",
      "style": {
        "navigationBarTitleText": "电量"
      }
taohebin@dcloud.io's avatar
taohebin@dcloud.io 已提交
606
    }
DCloud-WZF's avatar
DCloud-WZF 已提交
607
  ],
DCloud_JSON's avatar
DCloud_JSON 已提交
608 609 610 611 612 613 614
  "globalStyle": {
    "pageOrientation": "portrait",
    "navigationBarTitleText": "Hello uniapp x",
    "navigationBarTextStyle": "white",
    "navigationBarBackgroundColor": "#007AFF",
    "backgroundColor": "#efeff4",
    "backgroundColorTop": "#F4F5F6",
615
    "backgroundColorBottom": "#F4F5F6"
DCloud_JSON's avatar
DCloud_JSON 已提交
616 617 618 619 620 621
  },
  "tabBar": {
    "color": "#7A7E83",
    "selectedColor": "#007AFF",
    "borderStyle": "black",
    "backgroundColor": "#F8F8F8",
DCloud-WZF's avatar
DCloud-WZF 已提交
622 623
    "list": [
      {
DCloud_JSON's avatar
DCloud_JSON 已提交
624
        "pagePath": "pages/tabBar/component",
DCloud_JSON's avatar
DCloud_JSON 已提交
625 626 627 628 629
        "iconPath": "static/component.png",
        "selectedIconPath": "static/componentHL.png",
        "text": "内置组件"
      },
      {
DCloud_JSON's avatar
DCloud_JSON 已提交
630
        "pagePath": "pages/tabBar/API",
DCloud_JSON's avatar
DCloud_JSON 已提交
631 632 633 634 635
        "iconPath": "static/api.png",
        "selectedIconPath": "static/apiHL.png",
        "text": "接口"
      },
      {
DCloud_JSON's avatar
DCloud_JSON 已提交
636
        "pagePath": "pages/tabBar/CSS",
DCloud_JSON's avatar
DCloud_JSON 已提交
637 638
        "iconPath": "static/css.png",
        "selectedIconPath": "static/cssHL.png",
DCloud_JSON's avatar
DCloud_JSON 已提交
639 640 641
        "text": "CSS"
      },
      {
DCloud_JSON's avatar
DCloud_JSON 已提交
642
        "pagePath": "pages/tabBar/template",
DCloud_JSON's avatar
DCloud_JSON 已提交
643 644 645 646 647 648
        "iconPath": "static/template.png",
        "selectedIconPath": "static/templateHL.png",
        "text": "模板"
      }
    ]
  },
DCloud-WZF's avatar
DCloud-WZF 已提交
649 650
  "condition": {
    //模式配置,仅开发期间生效
DCloud_JSON's avatar
DCloud_JSON 已提交
651
    "current": 0, //当前激活的模式(list 的索引项)
DCloud-WZF's avatar
DCloud-WZF 已提交
652 653 654 655 656 657 658
    "list": [
      {
        "name": "", //模式名称
        "path": "", //启动页面,必选
        "query": "" //启动参数,在页面的onLoad函数里面得到
      }
    ]
DCloud_JSON's avatar
DCloud_JSON 已提交
659
  }
DCloud-WZF's avatar
DCloud-WZF 已提交
660
}