diff --git a/pages.json b/pages.json index 0a6ecf52aa41a0ea28bb8a51f472db4d5aa3982f..82728a34d881c203dbc3b6e6f770344bc7aad040 100644 --- a/pages.json +++ b/pages.json @@ -1,148 +1,148 @@ -{ - "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" - } - }, - { - "path": "pages/component/slider/slider", - "style": { - "navigationBarTitleText": "slider" - } - }, - { - "path": "pages/component/switch/switch", - "style": { - "navigationBarTitleText": "switch" - } - }, - { - "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" - } - }, - { - "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": "获取定位" - } - }, - { - "path": "pages/API/quitApp/quitApp", - "style": { - "navigationBarTitleText": "退出应用" - } +{ + "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" + } + }, + { + "path": "pages/component/slider/slider", + "style": { + "navigationBarTitleText": "slider" + } + }, + { + "path": "pages/component/switch/switch", + "style": { + "navigationBarTitleText": "switch" + } + }, + { + "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" + } + }, + { + "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": "获取定位" + } + }, + { + "path": "pages/API/quitApp/quitApp", + "style": { + "navigationBarTitleText": "退出应用" + } }, { "path": "pages/tabBar/CSS/CSS", @@ -401,54 +401,144 @@ "style": { "navigationBarTitleText": "text-decoration-line" } - } - ], - "globalStyle": { - "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": "接口" + } + ,{ + "path" : "pages/API/request/request", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/API/upload-file/upload-file", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/API/download-file/download-file", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/API/websocket-socketTask/websocket-socketTask", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/API/websocket-global/websocket-global", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/API/get-system-info/get-system-info", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/API/get-device-info/get-device-info", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/API/get-app-base-info/get-app-base-info", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/API/get-system-setting/get-system-setting", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/API/get-app-authorize-setting/get-app-authorize-setting", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ], + "globalStyle": { + "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": "接口" }, { "pagePath": "pages/tabBar/CSS/CSS", "iconPath": "static/extui.png", "selectedIconPath": "static/extuiHL.png", "text": "CSS" - } - ] - }, - "uniIdRouter": {}, - "condition": { //模式配置,仅开发期间生效 - "current": 0, //当前激活的模式(list 的索引项) - "list": [{ - "name": "", //模式名称 - "path": "", //启动页面,必选 - "query": "" //启动参数,在页面的onLoad函数里面得到 - }] - } + } + ] + }, + "uniIdRouter": {}, + "condition": { //模式配置,仅开发期间生效 + "current": 0, //当前激活的模式(list 的索引项) + "list": [{ + "name": "", //模式名称 + "path": "", //启动页面,必选 + "query": "" //启动参数,在页面的onLoad函数里面得到 + }] + } } \ No newline at end of file diff --git a/pages/API/download-file/download-file.uvue b/pages/API/download-file/download-file.uvue new file mode 100644 index 0000000000000000000000000000000000000000..61a7af8292c765bdacb8eb304357a0870dd03000 --- /dev/null +++ b/pages/API/download-file/download-file.uvue @@ -0,0 +1,66 @@ + + + + diff --git a/pages/API/get-app-authorize-setting/get-app-authorize-setting.uvue b/pages/API/get-app-authorize-setting/get-app-authorize-setting.uvue new file mode 100644 index 0000000000000000000000000000000000000000..b7c63a2b61a8f5c8ee3f55fb336309f1e7010ed2 --- /dev/null +++ b/pages/API/get-app-authorize-setting/get-app-authorize-setting.uvue @@ -0,0 +1,86 @@ + + + + diff --git a/pages/API/get-app-base-info/get-app-base-info.uvue b/pages/API/get-app-base-info/get-app-base-info.uvue new file mode 100644 index 0000000000000000000000000000000000000000..ab1bb3f2e6892746b776b5c34685eef76356ba14 --- /dev/null +++ b/pages/API/get-app-base-info/get-app-base-info.uvue @@ -0,0 +1,96 @@ + + + + diff --git a/pages/API/get-device-info/get-device-info.uvue b/pages/API/get-device-info/get-device-info.uvue new file mode 100644 index 0000000000000000000000000000000000000000..627af9fc11d4b3a1d18f490a14f2f6f693fdf9e9 --- /dev/null +++ b/pages/API/get-device-info/get-device-info.uvue @@ -0,0 +1,116 @@ + + + + diff --git a/pages/API/get-system-info/get-system-info.uvue b/pages/API/get-system-info/get-system-info.uvue new file mode 100644 index 0000000000000000000000000000000000000000..83358ff6d66f7ed0a6004e3824751e0ff1ed4b71 --- /dev/null +++ b/pages/API/get-system-info/get-system-info.uvue @@ -0,0 +1,175 @@ + + + + diff --git a/pages/API/get-system-setting/get-system-setting.uvue b/pages/API/get-system-setting/get-system-setting.uvue new file mode 100644 index 0000000000000000000000000000000000000000..6a218bc1e7ff0d5e11c5cb39f782524fb5d45326 --- /dev/null +++ b/pages/API/get-system-setting/get-system-setting.uvue @@ -0,0 +1,76 @@ + + + + diff --git a/pages/API/request/request.uvue b/pages/API/request/request.uvue new file mode 100644 index 0000000000000000000000000000000000000000..292682584852c41840b666b659adc45f75ee6441 --- /dev/null +++ b/pages/API/request/request.uvue @@ -0,0 +1,69 @@ + + diff --git a/pages/API/upload-file/upload-file.uvue b/pages/API/upload-file/upload-file.uvue new file mode 100644 index 0000000000000000000000000000000000000000..a5f26a60a5ee9bb236d25728d0b1eb63c5b1c004 --- /dev/null +++ b/pages/API/upload-file/upload-file.uvue @@ -0,0 +1,87 @@ + + + + \ No newline at end of file diff --git a/pages/API/websocket-global/websocket-global.uvue b/pages/API/websocket-global/websocket-global.uvue new file mode 100644 index 0000000000000000000000000000000000000000..6b277d400aec014dcbb2215dede3a38ff2688ab5 --- /dev/null +++ b/pages/API/websocket-global/websocket-global.uvue @@ -0,0 +1,152 @@ + + + + + diff --git a/pages/API/websocket-socketTask/websocket-socketTask.uvue b/pages/API/websocket-socketTask/websocket-socketTask.uvue new file mode 100644 index 0000000000000000000000000000000000000000..de19b878b89c0cb38f66409189959d119a9921e1 --- /dev/null +++ b/pages/API/websocket-socketTask/websocket-socketTask.uvue @@ -0,0 +1,152 @@ + + + + + \ No newline at end of file diff --git a/pages/tabBar/API/API.uvue b/pages/tabBar/API/API.uvue index e0221f91b7d39b9a6ab0c2f0d6a8dd26bdee0413..1cc8f89be4140780f33a02b1bd83bd8eaeae1041 100644 --- a/pages/tabBar/API/API.uvue +++ b/pages/tabBar/API/API.uvue @@ -124,9 +124,30 @@ url: "get-network-type", }, { - name: "获取设备系统信息", - url: "get-system-info", - }, + name: "获取系统信息", + url: "get-system-info", + enable:true + }, + { + name: "获取设备信息", + url: "get-device-info", + enable:true + }, + { + name: "获取APP基础信息", + url: "get-app-base-info", + enable:true + }, + { + name: "获取设备设置", + url: "get-system-setting", + enable:true + }, + { + name: "获取APP授权设置", + url: "get-app-authorize-setting", + enable:true + }, { name: "打电话", url: "make-phone-call", @@ -214,15 +235,18 @@ pages: [ { name: "发起一个请求", - url: "request", + url: "request", + enable: true }, { name: "上传文件", - url: "upload-file", + url: "upload-file", + enable: true }, { name: "下载文件", - url: "download-file", + url: "download-file", + enable: true }, ] as Page[], }, @@ -234,12 +258,14 @@ // #ifndef MP-ALIPAY { name: "socketTask", - url: "websocket-socketTask", + url: "websocket-socketTask", + enable: true }, // #endif { name: "全局websocket", - url: "websocket-global", + url: "websocket-global", + enable: true }, ] as Page[], },