Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
0bf5470b
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6059
Star
93
Fork
166
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
0bf5470b
编写于
2月 28, 2024
作者:
雪洛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: web端开启long-list示例,调整swiper-list示例
上级
4c4af673
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
1291 addition
and
1283 deletion
+1291
-1283
pages.json
pages.json
+1274
-1276
pages/tabBar/template.uvue
pages/tabBar/template.uvue
+2
-4
pages/template/long-list/long-list.uvue
pages/template/long-list/long-list.uvue
+6
-2
pages/template/long-list2/long-list2.uvue
pages/template/long-list2/long-list2.uvue
+7
-1
pages/template/swiper-list/swiper-list.uvue
pages/template/swiper-list/swiper-list.uvue
+1
-0
pages/template/swiper-list2/swiper-list2.uvue
pages/template/swiper-list2/swiper-list2.uvue
+1
-0
未找到文件。
pages.json
浏览文件 @
0bf5470b
{
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/tabBar/component"
,
"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/scroll-view/scroll-view-refresher"
,
"style"
:
{
"navigationBarTitleText"
:
"scroll-view-refresher"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-props"
,
"style"
:
{
"navigationBarTitleText"
:
"非下拉刷新的scroll-view属性示例"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-refresher-props"
,
"style"
:
{
"navigationBarTitleText"
:
"下拉刷新的scroll-view属性示例"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-custom-refresher-props"
,
"style"
:
{
"navigationBarTitleText"
:
"自定义下拉刷新的scroll-view属性示例"
}
},
{
"path"
:
"pages/component/swiper/swiper"
,
"style"
:
{
"navigationBarTitleText"
:
"swiper"
}
},
{
"path"
:
"pages/component/list-view/list-view"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view"
}
},
{
"path"
:
"pages/component/list-view/list-view-multiplex"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex"
}
},
{
"path"
:
"pages/component/list-view/list-view-multiplex-input"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view复用input"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/component/list-view/list-view-multiplex-video"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex-video"
}
},
{
"path"
:
"pages/component/list-view/list-view-children-in-slot"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-children-in-slot"
}
},
//
#ifdef
APP
{
"path"
:
"pages/component/sticky-section/sticky-section"
,
"style"
:
{
"navigationBarTitleText"
:
"sticky-section"
}
},
{
"path"
:
"pages/component/sticky-header/sticky-header"
,
"style"
:
{
"navigationBarTitleText"
:
"sticky-header"
,
"enablePullDownRefresh"
:
false
}
},
//#endif
{
"path"
:
"pages/component/text/text"
,
"style"
:
{
"navigationBarTitleText"
:
"text"
}
},
{
"path"
:
"pages/component/text/text-props"
,
"style"
:
{
"navigationBarTitleText"
:
"text-props"
}
},
{
"path"
:
"pages/component/rich-text/rich-text"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text"
}
},
{
"path"
:
"pages/component/rich-text/rich-text-tags"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text-tags"
}
},
{
"path"
:
"pages/component/rich-text/rich-text-complex"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text-complex"
}
},
{
"path"
:
"pages/component/progress/progress"
,
"style"
:
{
"navigationBarTitleText"
:
"progress"
}
},
{
"path"
:
"pages/component/form/form"
,
"style"
:
{
"navigationBarTitleText"
:
"form"
}
},
{
"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"
}
},
{
"path"
:
"pages/component/picker-view/picker-view"
,
"style"
:
{
"navigationBarTitleText"
:
"picker-view"
}
},
{
"path"
:
"pages/component/slider-100/slider-100"
,
"style"
:
{
"navigationBarTitleText"
:
"slider x 100"
}
},
{
"path"
:
"pages/component/switch/switch"
,
"style"
:
{
"navigationBarTitleText"
:
"switch"
}
},
{
"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"
}
},
{
"path"
:
"pages/component/image/image-large"
,
"style"
:
{
"navigationBarTitleText"
:
"大图测试"
}
},
{
"path"
:
"pages/component/video/video"
,
"style"
:
{
"navigationBarTitleText"
:
"video"
}
},
{
"path"
:
"pages/component/video/video-format"
,
"style"
:
{
"navigationBarTitleText"
:
"video-format"
}
},
{
"path"
:
"pages/component/navigator/navigator"
,
"style"
:
{
"navigationBarTitleText"
:
"navigator"
}
},
{
"path"
:
"pages/component/navigator/navigate"
,
"style"
:
{
"navigationBarTitleText"
:
"navigatePage"
}
},
{
"path"
:
"pages/component/navigator/redirect"
,
"style"
:
{
"navigationBarTitleText"
:
"redirectPage"
}
},
{
"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"
}
},
//
#ifndef
APP-IOS
{
"path"
:
"pages/component/unicloud-db-contacts/list"
,
"style"
:
{
"navigationBarTitleText"
:
"联系人"
,
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/component/unicloud-db-contacts/add"
,
"style"
:
{
"navigationBarTitleText"
:
"新增联系人"
}
},
{
"path"
:
"pages/component/unicloud-db-contacts/edit"
,
"style"
:
{
"navigationBarTitleText"
:
"编辑联系人"
}
},
{
"path"
:
"pages/component/unicloud-db-contacts/detail"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/component/mixin-datacom/mixin-datacom"
,
"style"
:
{
"navigationBarTitleText"
:
"mixinDatacom"
}
},
//
#endif
{
"path"
:
"pages/component/general-attribute/general-attribute"
,
"style"
:
{
"navigationBarTitleText"
:
"general-attribute"
}
},
{
"path"
:
"pages/component/general-event/general-event"
,
"style"
:
{
"navigationBarTitleText"
:
"general-event"
}
},
{
"path"
:
"pages/component/general-event/transition-event"
,
"style"
:
{
"navigationBarTitleText"
:
"transitionend事件"
}
},
{
"path"
:
"pages/component/general-event/touch-event"
,
"style"
:
{
"navigationBarTitleText"
:
"touch-event"
}
},
{
"path"
:
"pages/tabBar/API"
,
"style"
:
{
"navigationBarTitleText"
:
"接口"
,
"backgroundColor"
:
"#F8F8F8"
}
},
//
{
//
"path"
:
"pages/API/canvas/canvas"
,
//
"style"
:
{
//
"navigationBarTitleText"
:
"创建绘画"
//
}
//
},
{
"path"
:
"pages/API/get-app/get-app"
,
"style"
:
{
"navigationBarTitleText"
:
"getApp"
}
},
//
#ifdef
APP-ANDROID
{
"path"
:
"pages/API/exit/exit"
,
"style"
:
{
"navigationBarTitleText"
:
"exit"
}
},
{
"path"
:
"pages/API/install-apk/install-apk"
,
"style"
:
{
"navigationBarTitleText"
:
"install-apk"
,
"enablePullDownRefresh"
:
false
}
},
//
#endif
{
"path"
:
"pages/API/get-current-pages/get-current-pages"
,
"style"
:
{
"navigationBarTitleText"
:
"getCurrentPages"
}
},
{
"path"
:
"pages/API/get-launch-options-sync/get-launch-options-sync"
,
"style"
:
{
"navigationBarTitleText"
:
"getLaunchOptionsSync"
}
},
{
"path"
:
"pages/API/navigator/navigator"
,
"style"
:
{
"navigationBarTitleText"
:
"页面跳转"
}
},
{
"path"
:
"pages/API/set-navigation-bar-color/set-navigation-bar-color"
,
"style"
:
{
"navigationBarTitleText"
:
"设置导航条颜色"
}
},
{
"path"
:
"pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"设置状态栏颜色"
}
},
{
"path"
:
"pages/API/set-navigation-bar-title/set-navigation-bar-title"
,
"style"
:
{
"navigationBarTitleText"
:
"设置导航条标题"
}
},
{
"path"
:
"pages/API/navigator/new-page/new-page-1"
,
"style"
:
{
"navigationBarTitleText"
:
"新页面-1"
}
},
{
"path"
:
"pages/API/navigator/new-page/new-page-3"
,
"style"
:
{
"navigationBarTitleText"
:
"新页面-3"
}
},
{
"path"
:
"pages/API/navigator/new-page/onLoad"
,
"style"
:
{
"navigationBarTitleText"
:
"onLoad 生命周期测试"
}
},
{
"path"
:
"pages/API/pull-down-refresh/pull-down-refresh"
,
"style"
:
{
"navigationBarTitleText"
:
"页面级下拉刷新"
,
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/API/get-element-by-id/get-element-by-id"
,
"style"
:
{
"navigationBarTitleText"
:
"获取节点"
}
},
{
"path"
:
"pages/API/get-element-by-id/get-element-by-id-multiple-root-node"
,
"style"
:
{
"navigationBarTitleText"
:
"获取节点-多根节点"
}
},
{
"path"
:
"pages/API/nodes-info/nodes-info"
,
"style"
:
{
"navigationBarTitleText"
:
"查询节点信息的对象"
}
},
{
"path"
:
"pages/API/storage/storage"
,
"style"
:
{
"navigationBarTitleText"
:
"数据存储"
}
},
//
#ifndef
WEB
{
"path"
:
"pages/API/get-file-system-manager/get-file-system-manager"
,
"style"
:
{
"navigationBarTitleText"
:
"文件管理"
}
},
//
#endif
{
"path"
:
"pages/API/action-sheet/action-sheet"
,
"style"
:
{
"navigationBarTitleText"
:
"操作菜单"
}
},
{
"path"
:
"pages/API/modal/modal"
,
"style"
:
{
"navigationBarTitleText"
:
"模态弹窗"
}
},
{
"path"
:
"pages/API/loading/loading"
,
"style"
:
{
"navigationBarTitleText"
:
"加载提示框"
}
},
{
"path"
:
"pages/API/toast/toast"
,
"style"
:
{
"navigationBarTitleText"
:
"消息提示框"
}
},
{
"path"
:
"pages/API/load-font-face/load-font-face"
,
"style"
:
{
"navigationBarTitleText"
:
"动态加载字体"
}
},
{
"path"
:
"pages/API/load-font-face/load-font-face-child"
,
"style"
:
{
"navigationBarTitleText"
:
"动态加载字体-子页面"
}
},
{
"path"
:
"pages/API/get-location/get-location"
,
"style"
:
{
"navigationBarTitleText"
:
"获取定位"
}
},
{
"path"
:
"pages/API/interceptor/interceptor"
,
"style"
:
{
"navigationBarTitleText"
:
"拦截器"
}
},
{
"path"
:
"pages/API/interceptor/page1"
,
"style"
:
{
"navigationBarTitleText"
:
"拦截器测试页面 1"
}
},
{
"path"
:
"pages/API/interceptor/page2"
,
"style"
:
{
"navigationBarTitleText"
:
"拦截器测试页面 2"
}
},
{
"path"
:
"pages/API/request/request"
,
"style"
:
{
"navigationBarTitleText"
:
"request"
}
},
{
"path"
:
"pages/API/upload-file/upload-file"
,
"style"
:
{
"navigationBarTitleText"
:
"upload-file"
}
},
{
"path"
:
"pages/API/download-file/download-file"
,
"style"
:
{
"navigationBarTitleText"
:
"download-file"
}
},
{
"path"
:
"pages/API/websocket-socketTask/websocket-socketTask"
,
"style"
:
{
"navigationBarTitleText"
:
"websocket-socketTask"
}
},
{
"path"
:
"pages/API/websocket-global/websocket-global"
,
"style"
:
{
"navigationBarTitleText"
:
"websocket-global"
}
},
//
#ifndef
APP-IOS
{
"path"
:
"pages/API/unicloud-call-function/unicloud-call-function"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/API/unicloud-import-object/unicloud-import-object"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
//
#endif
{
"path"
:
"pages/API/get-system-info/get-system-info"
,
"style"
:
{
"navigationBarTitleText"
:
"get-system-info"
}
},
{
"path"
:
"pages/API/get-device-info/get-device-info"
,
"style"
:
{
"navigationBarTitleText"
:
"get-device-info"
}
},
{
"path"
:
"pages/API/get-app-base-info/get-app-base-info"
,
"style"
:
{
"navigationBarTitleText"
:
"get-app-base-info"
}
},
//
#ifdef
APP
{
"path"
:
"pages/API/get-system-setting/get-system-setting"
,
"style"
:
{
"navigationBarTitleText"
:
"get-system-setting"
}
},
//
#endif
//
#ifndef
WEB
{
"path"
:
"pages/API/get-app-authorize-setting/get-app-authorize-setting"
,
"style"
:
{
"navigationBarTitleText"
:
"get-app-authorize-setting"
}
},
{
"path"
:
"pages/API/save-image-to-photos-album/save-image-to-photos-album"
,
"style"
:
{
"navigationBarTitleText"
:
"保存图片到相册"
}
},
//
#endif
{
"path"
:
"pages/API/preview-image/preview-image"
,
"style"
:
{
"navigationBarTitleText"
:
"图片预览"
}
},
{
"path"
:
"pages/API/choose-image/choose-image"
,
"style"
:
{
"navigationBarTitleText"
:
"图片"
}
},
{
"path"
:
"pages/API/get-network-type/get-network-type"
,
"style"
:
{
"navigationBarTitleText"
:
"get-network-type"
}
},
{
"path"
:
"pages/API/page-scroll-to/page-scroll-to"
,
"style"
:
{
"navigationBarTitleText"
:
"pageScrollTo"
}
},
{
"path"
:
"pages/API/event-bus/event-bus"
,
"style"
:
{
"navigationBarTitleText"
:
"event-bus"
}
},
//
#ifndef
APP-IOS
{
"path"
:
"pages/API/unicloud-file-api/unicloud-file-api"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/API/unicloud-database/unicloud-database"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/API/get-battery-info/get-battery-info"
,
"style"
:
{
"navigationBarTitleText"
:
"电量"
}
},
//
#endif
{
"path"
:
"pages/API/get-window-info/get-window-info"
,
"style"
:
{
"navigationBarTitleText"
:
"get-window-info"
}
},
//
#ifdef
APP-ANDROID
{
"path"
:
"pages/API/facial-recognition-verify/facial-recognition-verify"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/element-takesnapshot/element-takesnapshot"
,
"style"
:
{
"navigationBarTitleText"
:
"takeSnapshot"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/element-draw/element-draw"
,
"style"
:
{
"navigationBarTitleText"
:
"getDrawableContext"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/get-univerify-manager/get-univerify-manager"
,
"style"
:
{
"navigationBarTitleText"
:
"uni-verify"
,
"enablePullDownRefresh"
:
false
}
},
//
#endif
{
"path"
:
"pages/tabBar/CSS"
,
"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-bottom"
,
"style"
:
{
"navigationBarTitleText"
:
"border-bottom"
}
},
{
"path"
:
"pages/CSS/border/border-color"
,
"style"
:
{
"navigationBarTitleText"
:
"border-color"
}
},
{
"path"
:
"pages/CSS/border/border-left"
,
"style"
:
{
"navigationBarTitleText"
:
"border-left"
}
},
{
"path"
:
"pages/CSS/border/border-radius"
,
"style"
:
{
"navigationBarTitleText"
:
"border-radius"
}
},
{
"path"
:
"pages/CSS/border/border-right"
,
"style"
:
{
"navigationBarTitleText"
:
"border-right"
}
},
{
"path"
:
"pages/CSS/border/border-style"
,
"style"
:
{
"navigationBarTitleText"
:
"border-style"
}
},
{
"path"
:
"pages/CSS/border/border-top"
,
"style"
:
{
"navigationBarTitleText"
:
"border-top"
}
},
{
"path"
:
"pages/CSS/border/border-width"
,
"style"
:
{
"navigationBarTitleText"
:
"border-width"
}
},
{
"path"
:
"pages/CSS/border/border"
,
"style"
:
{
"navigationBarTitleText"
:
"border"
}
},
{
"path"
:
"pages/CSS/border/complex-border/complex-border"
,
"style"
:
{
"navigationBarTitleText"
:
"border属性组合示例"
}
},
{
"path"
:
"pages/CSS/box-shadow/box-shadow"
,
"style"
:
{
"navigationBarTitleText"
:
"box-shadow"
}
},
{
"path"
:
"pages/CSS/display/flex"
,
"style"
:
{
"navigationBarTitleText"
:
"display:flex"
}
},
{
"path"
:
"pages/CSS/display/none"
,
"style"
:
{
"navigationBarTitleText"
:
"display:none"
}
},
{
"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/layout/z-index"
,
"style"
:
{
"navigationBarTitleText"
:
"z-index"
}
},
{
"path"
:
"pages/CSS/layout/visibility"
,
"style"
:
{
"navigationBarTitleText"
:
"visibility"
}
},
{
"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/overflow/overflow"
,
"style"
:
{
"navigationBarTitleText"
:
"overflow"
}
},
{
"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/letter-spacing"
,
"style"
:
{
"navigationBarTitleText"
:
"letter-spacing"
}
},
{
"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-overflow"
,
"style"
:
{
"navigationBarTitleText"
:
"text-overflow"
}
},
{
"path"
:
"pages/CSS/text/text-decoration-line"
,
"style"
:
{
"navigationBarTitleText"
:
"text-decoration-line"
}
},
{
"path"
:
"pages/CSS/transition/transition"
,
"style"
:
{
"navigationBarTitleText"
:
"Transition"
}
},
{
"path"
:
"pages/CSS/transform/translate"
,
"style"
:
{
"navigationBarTitleText"
:
"Translate"
}
},
{
"path"
:
"pages/CSS/transform/scale"
,
"style"
:
{
"navigationBarTitleText"
:
"Scale"
}
},
{
"path"
:
"pages/CSS/transform/rotate"
,
"style"
:
{
"navigationBarTitleText"
:
"Rotate"
}
},
{
"path"
:
"pages/CSS/variable/variable"
,
"style"
:
{
"navigationBarTitleText"
:
"css 变量"
}
},
{
"path"
:
"pages/tabBar/template"
,
"style"
:
{
"navigationBarTitleText"
:
"模板"
}
},
{
"path"
:
"pages/template/list-news/list-news"
,
"style"
:
{
"navigationBarTitleText"
:
"列表到详情示例"
}
},
{
"path"
:
"pages/template/list-news/detail/detail"
,
"style"
:
{
"navigationBarTitleText"
:
"详情示例"
}
},
{
"path"
:
"pages/template/drop-card/drop-card"
,
"style"
:
{
"navigationBarTitleText"
:
"drop-card"
}
},
{
"path"
:
"pages/template/swiper-list/swiper-list"
,
"style"
:
{
"navigationBarTitleText"
:
"swiper-list"
}
},
{
"path"
:
"pages/template/swiper-list2/swiper-list2"
,
"style"
:
{
"navigationBarTitleText"
:
"swiper-list2"
}
},
{
"path"
:
"pages/template/swiper-vertical-video/swiper-vertical-video"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"transparent"
}
},
//
#ifdef
APP
{
"path"
:
"pages/template/scroll-sticky/scroll-sticky"
,
"style"
:
{
"navigationBarTitleText"
:
"scroll-view自定义滚动吸顶"
}
},
//
#endif
{
"path"
:
"pages/template/scroll-fold-nav/scroll-fold-nav"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarBackgroundColor"
:
"transparent"
}
},
{
"path"
:
"pages/template/custom-refresher/custom-refresher"
,
"style"
:
{
"navigationBarTitleText"
:
"自定义下拉刷新"
}
},
{
"path"
:
"pages/template/half-screen/half-screen"
,
"style"
:
{
"navigationBarTitleText"
:
"半屏弹窗"
}
},
//
#ifdef
APP
{
"path"
:
"pages/template/long-list/long-list"
,
"style"
:
{
"navigationBarTitleText"
:
"顶部搜索框随时下移长列表"
,
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/template/long-list2/long-list2"
,
"style"
:
{
"navigationBarTitleText"
:
"顶部banner长列表"
,
"enablePullDownRefresh"
:
true
}
},
//
#endif
{
"path"
:
"pages/template/pull-zoom-image/pull-zoom-image"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"transparent"
}
},
{
"path"
:
"pages/template/navbar-lite/navbar-lite"
,
"style"
:
{
"navigationBarTitleText"
:
"自定义导航栏"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/template/custom-tab-bar/custom-tab-bar"
,
"style"
:
{
"navigationBarTitleText"
:
"自定义TabBar"
}
},
//
#ifdef
WEB
{
"path"
:
"pages/template/browser-canvas/browser-canvas"
,
"style"
:
{
"navigationBarTitleText"
:
"如何使用浏览器 canvas"
}
},
//
#endif
//
#ifdef
APP-ANDROID
{
"path"
:
"pages/template/calendar/calendar"
,
"style"
:
{
"navigationBarTitleText"
:
"日历"
}
},
{
"path"
:
"pages/template/schema/schema"
,
"style"
:
{
"navigationBarTitleText"
:
"打开schema示例"
}
},
{
"path"
:
"pages/template/share/share"
,
"style"
:
{
"navigationBarTitleText"
:
"分享"
,
"enablePullDownRefresh"
:
false
}
},
//
#endif
{
"path"
:
"pages/webview-screenshot-comparison/webview-screenshot-comparison"
,
"style"
:
{
"navigationBarTitleText"
:
"截图对比测试"
,
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"transparent"
}
},
{
"path"
:
"pages/webview-screenshot/webview-screenshot"
,
"style"
:
{
"navigationBarTitleText"
:
"webview 截图测试"
,
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"transparent"
}
},
//
#ifdef
APP
{
"path"
:
"pages/API/rewarded-video-ad/rewarded-video-ad"
,
"style"
:
{
"navigationBarTitleText"
:
"激励视频广告"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/create-request-permission-listener/create-request-permission-listener"
,
"style"
:
{
"navigationBarTitleText"
:
"权限申请监听"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/request-payment/request-payment"
,
"style"
:
{
"navigationBarTitleText"
:
"支付"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/component/list-view/list-view-refresh"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-refresh"
,
"enablePullDownRefresh"
:
false
}
}
//
#endif
],
"globalStyle"
:
{
"pageOrientation"
:
"portrait"
,
"navigationBarTitleText"
:
"Hello uniapp x"
,
"navigationBarTextStyle"
:
"white"
,
"navigationBarBackgroundColor"
:
"#007AFF"
,
"backgroundColorContent"
:
"#efeff4"
,
"backgroundColor"
:
"#efeff4"
,
"backgroundColorTop"
:
"#F4F5F6"
,
"backgroundColorBottom"
:
"#F4F5F6"
},
"tabBar"
:
{
"color"
:
"#7A7E83"
,
"selectedColor"
:
"#007AFF"
,
"borderStyle"
:
"black"
,
"backgroundColor"
:
"#F8F8F8"
,
"list"
:
[{
"pagePath"
:
"pages/tabBar/component"
,
"iconPath"
:
"static/component.png"
,
"selectedIconPath"
:
"static/componentHL.png"
,
"text"
:
"内置组件"
},
{
"pagePath"
:
"pages/tabBar/API"
,
"iconPath"
:
"static/api.png"
,
"selectedIconPath"
:
"static/apiHL.png"
,
"text"
:
"接口"
},
{
"pagePath"
:
"pages/tabBar/CSS"
,
"iconPath"
:
"static/css.png"
,
"selectedIconPath"
:
"static/cssHL.png"
,
"text"
:
"CSS"
},
{
"pagePath"
:
"pages/tabBar/template"
,
"iconPath"
:
"static/template.png"
,
"selectedIconPath"
:
"static/templateHL.png"
,
"text"
:
"模板"
}
]
},
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[{
"name"
:
""
,
//模式名称
"path"
:
""
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}]
}
{
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/tabBar/component"
,
"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/scroll-view/scroll-view-refresher"
,
"style"
:
{
"navigationBarTitleText"
:
"scroll-view-refresher"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-props"
,
"style"
:
{
"navigationBarTitleText"
:
"非下拉刷新的scroll-view属性示例"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-refresher-props"
,
"style"
:
{
"navigationBarTitleText"
:
"下拉刷新的scroll-view属性示例"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-custom-refresher-props"
,
"style"
:
{
"navigationBarTitleText"
:
"自定义下拉刷新的scroll-view属性示例"
}
},
{
"path"
:
"pages/component/swiper/swiper"
,
"style"
:
{
"navigationBarTitleText"
:
"swiper"
}
},
{
"path"
:
"pages/component/list-view/list-view"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view"
}
},
{
"path"
:
"pages/component/list-view/list-view-multiplex"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex"
}
},
{
"path"
:
"pages/component/list-view/list-view-multiplex-input"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view复用input"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/component/list-view/list-view-multiplex-video"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex-video"
}
},
{
"path"
:
"pages/component/list-view/list-view-children-in-slot"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-children-in-slot"
}
},
//
#ifdef
APP
{
"path"
:
"pages/component/sticky-section/sticky-section"
,
"style"
:
{
"navigationBarTitleText"
:
"sticky-section"
}
},
{
"path"
:
"pages/component/sticky-header/sticky-header"
,
"style"
:
{
"navigationBarTitleText"
:
"sticky-header"
,
"enablePullDownRefresh"
:
false
}
},
//#endif
{
"path"
:
"pages/component/text/text"
,
"style"
:
{
"navigationBarTitleText"
:
"text"
}
},
{
"path"
:
"pages/component/text/text-props"
,
"style"
:
{
"navigationBarTitleText"
:
"text-props"
}
},
{
"path"
:
"pages/component/rich-text/rich-text"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text"
}
},
{
"path"
:
"pages/component/rich-text/rich-text-tags"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text-tags"
}
},
{
"path"
:
"pages/component/rich-text/rich-text-complex"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text-complex"
}
},
{
"path"
:
"pages/component/progress/progress"
,
"style"
:
{
"navigationBarTitleText"
:
"progress"
}
},
{
"path"
:
"pages/component/form/form"
,
"style"
:
{
"navigationBarTitleText"
:
"form"
}
},
{
"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"
}
},
{
"path"
:
"pages/component/picker-view/picker-view"
,
"style"
:
{
"navigationBarTitleText"
:
"picker-view"
}
},
{
"path"
:
"pages/component/slider-100/slider-100"
,
"style"
:
{
"navigationBarTitleText"
:
"slider x 100"
}
},
{
"path"
:
"pages/component/switch/switch"
,
"style"
:
{
"navigationBarTitleText"
:
"switch"
}
},
{
"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"
}
},
{
"path"
:
"pages/component/image/image-large"
,
"style"
:
{
"navigationBarTitleText"
:
"大图测试"
}
},
{
"path"
:
"pages/component/video/video"
,
"style"
:
{
"navigationBarTitleText"
:
"video"
}
},
{
"path"
:
"pages/component/video/video-format"
,
"style"
:
{
"navigationBarTitleText"
:
"video-format"
}
},
{
"path"
:
"pages/component/navigator/navigator"
,
"style"
:
{
"navigationBarTitleText"
:
"navigator"
}
},
{
"path"
:
"pages/component/navigator/navigate"
,
"style"
:
{
"navigationBarTitleText"
:
"navigatePage"
}
},
{
"path"
:
"pages/component/navigator/redirect"
,
"style"
:
{
"navigationBarTitleText"
:
"redirectPage"
}
},
{
"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"
}
},
//
#ifndef
APP-IOS
{
"path"
:
"pages/component/unicloud-db-contacts/list"
,
"style"
:
{
"navigationBarTitleText"
:
"联系人"
,
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/component/unicloud-db-contacts/add"
,
"style"
:
{
"navigationBarTitleText"
:
"新增联系人"
}
},
{
"path"
:
"pages/component/unicloud-db-contacts/edit"
,
"style"
:
{
"navigationBarTitleText"
:
"编辑联系人"
}
},
{
"path"
:
"pages/component/unicloud-db-contacts/detail"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/component/mixin-datacom/mixin-datacom"
,
"style"
:
{
"navigationBarTitleText"
:
"mixinDatacom"
}
},
//
#endif
{
"path"
:
"pages/component/general-attribute/general-attribute"
,
"style"
:
{
"navigationBarTitleText"
:
"general-attribute"
}
},
{
"path"
:
"pages/component/general-event/general-event"
,
"style"
:
{
"navigationBarTitleText"
:
"general-event"
}
},
{
"path"
:
"pages/component/general-event/transition-event"
,
"style"
:
{
"navigationBarTitleText"
:
"transitionend事件"
}
},
{
"path"
:
"pages/component/general-event/touch-event"
,
"style"
:
{
"navigationBarTitleText"
:
"touch-event"
}
},
{
"path"
:
"pages/tabBar/API"
,
"style"
:
{
"navigationBarTitleText"
:
"接口"
,
"backgroundColor"
:
"#F8F8F8"
}
},
//
{
//
"path"
:
"pages/API/canvas/canvas"
,
//
"style"
:
{
//
"navigationBarTitleText"
:
"创建绘画"
//
}
//
},
{
"path"
:
"pages/API/get-app/get-app"
,
"style"
:
{
"navigationBarTitleText"
:
"getApp"
}
},
//
#ifdef
APP-ANDROID
{
"path"
:
"pages/API/exit/exit"
,
"style"
:
{
"navigationBarTitleText"
:
"exit"
}
},
{
"path"
:
"pages/API/install-apk/install-apk"
,
"style"
:
{
"navigationBarTitleText"
:
"install-apk"
,
"enablePullDownRefresh"
:
false
}
},
//
#endif
{
"path"
:
"pages/API/get-current-pages/get-current-pages"
,
"style"
:
{
"navigationBarTitleText"
:
"getCurrentPages"
}
},
{
"path"
:
"pages/API/get-launch-options-sync/get-launch-options-sync"
,
"style"
:
{
"navigationBarTitleText"
:
"getLaunchOptionsSync"
}
},
{
"path"
:
"pages/API/navigator/navigator"
,
"style"
:
{
"navigationBarTitleText"
:
"页面跳转"
}
},
{
"path"
:
"pages/API/set-navigation-bar-color/set-navigation-bar-color"
,
"style"
:
{
"navigationBarTitleText"
:
"设置导航条颜色"
}
},
{
"path"
:
"pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"设置状态栏颜色"
}
},
{
"path"
:
"pages/API/set-navigation-bar-title/set-navigation-bar-title"
,
"style"
:
{
"navigationBarTitleText"
:
"设置导航条标题"
}
},
{
"path"
:
"pages/API/navigator/new-page/new-page-1"
,
"style"
:
{
"navigationBarTitleText"
:
"新页面-1"
}
},
{
"path"
:
"pages/API/navigator/new-page/new-page-3"
,
"style"
:
{
"navigationBarTitleText"
:
"新页面-3"
}
},
{
"path"
:
"pages/API/navigator/new-page/onLoad"
,
"style"
:
{
"navigationBarTitleText"
:
"onLoad 生命周期测试"
}
},
{
"path"
:
"pages/API/pull-down-refresh/pull-down-refresh"
,
"style"
:
{
"navigationBarTitleText"
:
"页面级下拉刷新"
,
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/API/get-element-by-id/get-element-by-id"
,
"style"
:
{
"navigationBarTitleText"
:
"获取节点"
}
},
{
"path"
:
"pages/API/get-element-by-id/get-element-by-id-multiple-root-node"
,
"style"
:
{
"navigationBarTitleText"
:
"获取节点-多根节点"
}
},
{
"path"
:
"pages/API/nodes-info/nodes-info"
,
"style"
:
{
"navigationBarTitleText"
:
"查询节点信息的对象"
}
},
{
"path"
:
"pages/API/storage/storage"
,
"style"
:
{
"navigationBarTitleText"
:
"数据存储"
}
},
//
#ifndef
WEB
{
"path"
:
"pages/API/get-file-system-manager/get-file-system-manager"
,
"style"
:
{
"navigationBarTitleText"
:
"文件管理"
}
},
//
#endif
{
"path"
:
"pages/API/action-sheet/action-sheet"
,
"style"
:
{
"navigationBarTitleText"
:
"操作菜单"
}
},
{
"path"
:
"pages/API/modal/modal"
,
"style"
:
{
"navigationBarTitleText"
:
"模态弹窗"
}
},
{
"path"
:
"pages/API/loading/loading"
,
"style"
:
{
"navigationBarTitleText"
:
"加载提示框"
}
},
{
"path"
:
"pages/API/toast/toast"
,
"style"
:
{
"navigationBarTitleText"
:
"消息提示框"
}
},
{
"path"
:
"pages/API/load-font-face/load-font-face"
,
"style"
:
{
"navigationBarTitleText"
:
"动态加载字体"
}
},
{
"path"
:
"pages/API/load-font-face/load-font-face-child"
,
"style"
:
{
"navigationBarTitleText"
:
"动态加载字体-子页面"
}
},
{
"path"
:
"pages/API/get-location/get-location"
,
"style"
:
{
"navigationBarTitleText"
:
"获取定位"
}
},
{
"path"
:
"pages/API/interceptor/interceptor"
,
"style"
:
{
"navigationBarTitleText"
:
"拦截器"
}
},
{
"path"
:
"pages/API/interceptor/page1"
,
"style"
:
{
"navigationBarTitleText"
:
"拦截器测试页面 1"
}
},
{
"path"
:
"pages/API/interceptor/page2"
,
"style"
:
{
"navigationBarTitleText"
:
"拦截器测试页面 2"
}
},
{
"path"
:
"pages/API/request/request"
,
"style"
:
{
"navigationBarTitleText"
:
"request"
}
},
{
"path"
:
"pages/API/upload-file/upload-file"
,
"style"
:
{
"navigationBarTitleText"
:
"upload-file"
}
},
{
"path"
:
"pages/API/download-file/download-file"
,
"style"
:
{
"navigationBarTitleText"
:
"download-file"
}
},
{
"path"
:
"pages/API/websocket-socketTask/websocket-socketTask"
,
"style"
:
{
"navigationBarTitleText"
:
"websocket-socketTask"
}
},
{
"path"
:
"pages/API/websocket-global/websocket-global"
,
"style"
:
{
"navigationBarTitleText"
:
"websocket-global"
}
},
//
#ifndef
APP-IOS
{
"path"
:
"pages/API/unicloud-call-function/unicloud-call-function"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/API/unicloud-import-object/unicloud-import-object"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
//
#endif
{
"path"
:
"pages/API/get-system-info/get-system-info"
,
"style"
:
{
"navigationBarTitleText"
:
"get-system-info"
}
},
{
"path"
:
"pages/API/get-device-info/get-device-info"
,
"style"
:
{
"navigationBarTitleText"
:
"get-device-info"
}
},
{
"path"
:
"pages/API/get-app-base-info/get-app-base-info"
,
"style"
:
{
"navigationBarTitleText"
:
"get-app-base-info"
}
},
//
#ifdef
APP
{
"path"
:
"pages/API/get-system-setting/get-system-setting"
,
"style"
:
{
"navigationBarTitleText"
:
"get-system-setting"
}
},
//
#endif
//
#ifndef
WEB
{
"path"
:
"pages/API/get-app-authorize-setting/get-app-authorize-setting"
,
"style"
:
{
"navigationBarTitleText"
:
"get-app-authorize-setting"
}
},
{
"path"
:
"pages/API/save-image-to-photos-album/save-image-to-photos-album"
,
"style"
:
{
"navigationBarTitleText"
:
"保存图片到相册"
}
},
//
#endif
{
"path"
:
"pages/API/preview-image/preview-image"
,
"style"
:
{
"navigationBarTitleText"
:
"图片预览"
}
},
{
"path"
:
"pages/API/choose-image/choose-image"
,
"style"
:
{
"navigationBarTitleText"
:
"图片"
}
},
{
"path"
:
"pages/API/get-network-type/get-network-type"
,
"style"
:
{
"navigationBarTitleText"
:
"get-network-type"
}
},
{
"path"
:
"pages/API/page-scroll-to/page-scroll-to"
,
"style"
:
{
"navigationBarTitleText"
:
"pageScrollTo"
}
},
{
"path"
:
"pages/API/event-bus/event-bus"
,
"style"
:
{
"navigationBarTitleText"
:
"event-bus"
}
},
//
#ifndef
APP-IOS
{
"path"
:
"pages/API/unicloud-file-api/unicloud-file-api"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/API/unicloud-database/unicloud-database"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/API/get-battery-info/get-battery-info"
,
"style"
:
{
"navigationBarTitleText"
:
"电量"
}
},
//
#endif
{
"path"
:
"pages/API/get-window-info/get-window-info"
,
"style"
:
{
"navigationBarTitleText"
:
"get-window-info"
}
},
//
#ifdef
APP-ANDROID
{
"path"
:
"pages/API/facial-recognition-verify/facial-recognition-verify"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/element-takesnapshot/element-takesnapshot"
,
"style"
:
{
"navigationBarTitleText"
:
"takeSnapshot"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/element-draw/element-draw"
,
"style"
:
{
"navigationBarTitleText"
:
"getDrawableContext"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/get-univerify-manager/get-univerify-manager"
,
"style"
:
{
"navigationBarTitleText"
:
"uni-verify"
,
"enablePullDownRefresh"
:
false
}
},
//
#endif
{
"path"
:
"pages/tabBar/CSS"
,
"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-bottom"
,
"style"
:
{
"navigationBarTitleText"
:
"border-bottom"
}
},
{
"path"
:
"pages/CSS/border/border-color"
,
"style"
:
{
"navigationBarTitleText"
:
"border-color"
}
},
{
"path"
:
"pages/CSS/border/border-left"
,
"style"
:
{
"navigationBarTitleText"
:
"border-left"
}
},
{
"path"
:
"pages/CSS/border/border-radius"
,
"style"
:
{
"navigationBarTitleText"
:
"border-radius"
}
},
{
"path"
:
"pages/CSS/border/border-right"
,
"style"
:
{
"navigationBarTitleText"
:
"border-right"
}
},
{
"path"
:
"pages/CSS/border/border-style"
,
"style"
:
{
"navigationBarTitleText"
:
"border-style"
}
},
{
"path"
:
"pages/CSS/border/border-top"
,
"style"
:
{
"navigationBarTitleText"
:
"border-top"
}
},
{
"path"
:
"pages/CSS/border/border-width"
,
"style"
:
{
"navigationBarTitleText"
:
"border-width"
}
},
{
"path"
:
"pages/CSS/border/border"
,
"style"
:
{
"navigationBarTitleText"
:
"border"
}
},
{
"path"
:
"pages/CSS/border/complex-border/complex-border"
,
"style"
:
{
"navigationBarTitleText"
:
"border属性组合示例"
}
},
{
"path"
:
"pages/CSS/box-shadow/box-shadow"
,
"style"
:
{
"navigationBarTitleText"
:
"box-shadow"
}
},
{
"path"
:
"pages/CSS/display/flex"
,
"style"
:
{
"navigationBarTitleText"
:
"display:flex"
}
},
{
"path"
:
"pages/CSS/display/none"
,
"style"
:
{
"navigationBarTitleText"
:
"display:none"
}
},
{
"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/layout/z-index"
,
"style"
:
{
"navigationBarTitleText"
:
"z-index"
}
},
{
"path"
:
"pages/CSS/layout/visibility"
,
"style"
:
{
"navigationBarTitleText"
:
"visibility"
}
},
{
"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/overflow/overflow"
,
"style"
:
{
"navigationBarTitleText"
:
"overflow"
}
},
{
"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/letter-spacing"
,
"style"
:
{
"navigationBarTitleText"
:
"letter-spacing"
}
},
{
"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-overflow"
,
"style"
:
{
"navigationBarTitleText"
:
"text-overflow"
}
},
{
"path"
:
"pages/CSS/text/text-decoration-line"
,
"style"
:
{
"navigationBarTitleText"
:
"text-decoration-line"
}
},
{
"path"
:
"pages/CSS/transition/transition"
,
"style"
:
{
"navigationBarTitleText"
:
"Transition"
}
},
{
"path"
:
"pages/CSS/transform/translate"
,
"style"
:
{
"navigationBarTitleText"
:
"Translate"
}
},
{
"path"
:
"pages/CSS/transform/scale"
,
"style"
:
{
"navigationBarTitleText"
:
"Scale"
}
},
{
"path"
:
"pages/CSS/transform/rotate"
,
"style"
:
{
"navigationBarTitleText"
:
"Rotate"
}
},
{
"path"
:
"pages/CSS/variable/variable"
,
"style"
:
{
"navigationBarTitleText"
:
"css 变量"
}
},
{
"path"
:
"pages/tabBar/template"
,
"style"
:
{
"navigationBarTitleText"
:
"模板"
}
},
{
"path"
:
"pages/template/list-news/list-news"
,
"style"
:
{
"navigationBarTitleText"
:
"列表到详情示例"
}
},
{
"path"
:
"pages/template/list-news/detail/detail"
,
"style"
:
{
"navigationBarTitleText"
:
"详情示例"
}
},
{
"path"
:
"pages/template/drop-card/drop-card"
,
"style"
:
{
"navigationBarTitleText"
:
"drop-card"
}
},
{
"path"
:
"pages/template/swiper-list/swiper-list"
,
"style"
:
{
"navigationBarTitleText"
:
"swiper-list"
}
},
{
"path"
:
"pages/template/swiper-list2/swiper-list2"
,
"style"
:
{
"navigationBarTitleText"
:
"swiper-list2"
}
},
{
"path"
:
"pages/template/swiper-vertical-video/swiper-vertical-video"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"transparent"
}
},
//
#ifdef
APP
{
"path"
:
"pages/template/scroll-sticky/scroll-sticky"
,
"style"
:
{
"navigationBarTitleText"
:
"scroll-view自定义滚动吸顶"
}
},
//
#endif
{
"path"
:
"pages/template/scroll-fold-nav/scroll-fold-nav"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarBackgroundColor"
:
"transparent"
}
},
{
"path"
:
"pages/template/custom-refresher/custom-refresher"
,
"style"
:
{
"navigationBarTitleText"
:
"自定义下拉刷新"
}
},
{
"path"
:
"pages/template/half-screen/half-screen"
,
"style"
:
{
"navigationBarTitleText"
:
"半屏弹窗"
}
},
{
"path"
:
"pages/template/long-list/long-list"
,
"style"
:
{
"navigationBarTitleText"
:
"顶部搜索框随时下移长列表"
,
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/template/long-list2/long-list2"
,
"style"
:
{
"navigationBarTitleText"
:
"顶部banner长列表"
,
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/template/pull-zoom-image/pull-zoom-image"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"transparent"
}
},
{
"path"
:
"pages/template/navbar-lite/navbar-lite"
,
"style"
:
{
"navigationBarTitleText"
:
"自定义导航栏"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/template/custom-tab-bar/custom-tab-bar"
,
"style"
:
{
"navigationBarTitleText"
:
"自定义TabBar"
}
},
//
#ifdef
WEB
{
"path"
:
"pages/template/browser-canvas/browser-canvas"
,
"style"
:
{
"navigationBarTitleText"
:
"如何使用浏览器 canvas"
}
},
//
#endif
//
#ifdef
APP-ANDROID
{
"path"
:
"pages/template/calendar/calendar"
,
"style"
:
{
"navigationBarTitleText"
:
"日历"
}
},
{
"path"
:
"pages/template/schema/schema"
,
"style"
:
{
"navigationBarTitleText"
:
"打开schema示例"
}
},
{
"path"
:
"pages/template/share/share"
,
"style"
:
{
"navigationBarTitleText"
:
"分享"
,
"enablePullDownRefresh"
:
false
}
},
//
#endif
{
"path"
:
"pages/webview-screenshot-comparison/webview-screenshot-comparison"
,
"style"
:
{
"navigationBarTitleText"
:
"截图对比测试"
,
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"transparent"
}
},
{
"path"
:
"pages/webview-screenshot/webview-screenshot"
,
"style"
:
{
"navigationBarTitleText"
:
"webview 截图测试"
,
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"transparent"
}
},
//
#ifdef
APP
{
"path"
:
"pages/API/rewarded-video-ad/rewarded-video-ad"
,
"style"
:
{
"navigationBarTitleText"
:
"激励视频广告"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/create-request-permission-listener/create-request-permission-listener"
,
"style"
:
{
"navigationBarTitleText"
:
"权限申请监听"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/request-payment/request-payment"
,
"style"
:
{
"navigationBarTitleText"
:
"支付"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/component/list-view/list-view-refresh"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-refresh"
,
"enablePullDownRefresh"
:
false
}
}
//
#endif
],
"globalStyle"
:
{
"pageOrientation"
:
"portrait"
,
"navigationBarTitleText"
:
"Hello uniapp x"
,
"navigationBarTextStyle"
:
"white"
,
"navigationBarBackgroundColor"
:
"#007AFF"
,
"backgroundColorContent"
:
"#efeff4"
,
"backgroundColor"
:
"#efeff4"
,
"backgroundColorTop"
:
"#F4F5F6"
,
"backgroundColorBottom"
:
"#F4F5F6"
},
"tabBar"
:
{
"color"
:
"#7A7E83"
,
"selectedColor"
:
"#007AFF"
,
"borderStyle"
:
"black"
,
"backgroundColor"
:
"#F8F8F8"
,
"list"
:
[{
"pagePath"
:
"pages/tabBar/component"
,
"iconPath"
:
"static/component.png"
,
"selectedIconPath"
:
"static/componentHL.png"
,
"text"
:
"内置组件"
},
{
"pagePath"
:
"pages/tabBar/API"
,
"iconPath"
:
"static/api.png"
,
"selectedIconPath"
:
"static/apiHL.png"
,
"text"
:
"接口"
},
{
"pagePath"
:
"pages/tabBar/CSS"
,
"iconPath"
:
"static/css.png"
,
"selectedIconPath"
:
"static/cssHL.png"
,
"text"
:
"CSS"
},
{
"pagePath"
:
"pages/tabBar/template"
,
"iconPath"
:
"static/template.png"
,
"selectedIconPath"
:
"static/templateHL.png"
,
"text"
:
"模板"
}
]
},
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[{
"name"
:
""
,
//模式名称
"path"
:
""
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}]
}
}
pages/tabBar/template.uvue
浏览文件 @
0bf5470b
...
...
@@ -54,8 +54,7 @@
export default {
data() {
return {
list: [
// #ifdef APP
list: [
{
id: 'long-list',
url: 'long-list',
...
...
@@ -72,8 +71,7 @@
url: 'long-list2'
},
] as Page[],
},
// #endif
},
{
id: 'list-news',
url: 'list-news',
...
...
pages/template/long-list/long-list.uvue
浏览文件 @
0bf5470b
...
...
@@ -7,7 +7,7 @@
<view class="swiper-list">
<scroll-view ref="tabScroll" class="swiper-tabs" direction="horizontal" :show-scrollbar="false">
<view class="flex-row" style="align-self: flex-start;">
<text ref="swipertab" class="swiper-tabs-item" :class="swiperIndex==index ? 'swiper-tabs-item-active' : ''"
<text ref="swipertab"
space="nbsp"
class="swiper-tabs-item" :class="swiperIndex==index ? 'swiper-tabs-item-active' : ''"
v-for="(item, index) in swiperList" :key="index" @click="onTabClick(index)">
{{item.name}}
</text>
...
...
@@ -209,7 +209,7 @@
// 滚动到水平中心位置
const scroll_x = x - this.swiperWidth / 2
if(this.tabScrollView !=
=
null){
if(this.tabScrollView != null){
this.tabScrollView!.scrollLeft = scroll_x
}
},
...
...
@@ -238,6 +238,9 @@
.swiper-list {
height: 100%;
/* #ifdef WEB */
flex: 1;
/* #endif */
}
.swiper-tabs {
...
...
@@ -249,6 +252,7 @@
color: #555;
font-size: 16px;
padding: 12px 25px;
white-space: nowrap;
}
.swiper-tabs-item-active {
...
...
pages/template/long-list2/long-list2.uvue
浏览文件 @
0bf5470b
...
...
@@ -165,7 +165,9 @@
const percentage = Math.abs(current_offset_x) / this.swiperWidth
// 通知更新指示线
this.updateTabIndicator(current_index, move_to_index, percentage)
if (current_index != move_to_index) {
this.updateTabIndicator(current_index, move_to_index, percentage)
}
// 首次可见时初始化数据
this.initSwiperItemData(move_to_index)
...
...
@@ -242,6 +244,9 @@
.swiper-list {
height: 100%;
/* #ifdef WEB */
flex: 1;
/* #endif */
}
.swiper-tabs {
...
...
@@ -253,6 +258,7 @@
color: #555;
font-size: 16px;
padding: 12px 25px;
white-space: nowrap;
}
.swiper-tabs-item-active {
...
...
pages/template/swiper-list/swiper-list.uvue
浏览文件 @
0bf5470b
...
...
@@ -191,6 +191,7 @@
color: #555;
font-size: 16px;
padding: 12px 25px;
white-space: nowrap;
}
.swiper-tabs-item-active {
...
...
pages/template/swiper-list2/swiper-list2.uvue
浏览文件 @
0bf5470b
...
...
@@ -143,6 +143,7 @@
color: #555;
font-size: 16px;
margin: 15px 25px 5px 25px;
white-space: nowrap;
}
.swiper-tabs-item-active {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录