From 864238a8ddb335f21c4841c3dd578dd7e50a0a2b Mon Sep 17 00:00:00 2001 From: zhangqun <179111901@qq.com> Date: Thu, 31 Aug 2023 16:29:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A6=96=E9=A1=B5=EF=BC=8C?= =?UTF-8?q?=E9=AB=98=E9=80=9F=E5=88=97=E8=A1=A8ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 5 + pages.json | 999 +------------------------------- pages/highWay/runData/form.vue | 193 +++++- pages/highWay/runData/list.vue | 191 +++++- pages/home/home.vue | 98 ++++ pages/home/index.vue | 244 ++++---- pages/login/login.vue | 62 +- static/image/highway01.png | Bin 0 -> 10803 bytes static/image/icon_rundata.png | Bin 0 -> 2023 bytes static/image/icon_runstatus.png | Bin 0 -> 1472 bytes static/image/loginBg.png | Bin 0 -> 179515 bytes store/index.js | 6 +- util/request.js | 5 +- 13 files changed, 620 insertions(+), 1183 deletions(-) create mode 100644 pages/home/home.vue create mode 100644 static/image/highway01.png create mode 100644 static/image/icon_rundata.png create mode 100644 static/image/icon_runstatus.png create mode 100644 static/image/loginBg.png diff --git a/App.vue b/App.vue index 6adad76..f49dd0d 100644 --- a/App.vue +++ b/App.vue @@ -44,6 +44,11 @@ }, onShow: function() { console.log('App Show') + if(!uni.getStorageSync('satoken')) { + uni.navigateTo({ + url: '/pages/login/login' + }) + } }, onHide: function() { console.log('App Hide') diff --git a/pages.json b/pages.json index 1912a38..2e83ee4 100644 --- a/pages.json +++ b/pages.json @@ -13,25 +13,38 @@ }, "pages": [ { - "path": "pages/home/index", + "path": "pages/home/home", "style": { "navigationBarTitleText": "首页" } }, + { + "path": "pages/home/index", + "style": { + "navigationBarTitleText": "高速" + } + }, { "path": "pages/login/login", "style": { - "navigationBarTitleText": "登录" + "navigationBarTitleText": "", + "navigationBarBackgroundColor": "#2D8CF0" } }, { - "path": "pages/highWay/runData/list", + "path": "pages/highway/runData/list", "style": { "navigationBarTitleText": "高速运行数据" } }, { - "path": "pages/highWay/runStatusData/list", + "path": "pages/highway/runData/form", + "style": { + "navigationBarTitleText": "高速运行数据报送" + } + }, + { + "path": "pages/highway/runStatusData/list", "style": { "navigationBarTitleText": "高速运行情况" } @@ -377,979 +390,11 @@ } } ], - "subPackages": [{ - "root": "pages/API", - "pages": [{ - "path": "login/login", - "style": { - "navigationBarTitleText": "授权登录" - } - }, - // #ifdef APP-PLUS - { - "path": "subnvue/subnvue", - "style": { - "navigationBarTitleText": "原生子窗体", - "app-plus": { - "subNVues": [{ - "id": "drawer", - "path": "subnvue/subnvue/drawer", - "type": "popup", - "style": { - "width": "50%" - } - }, { - "id": "popup", - "path": "subnvue/subnvue/popup", - "type": "popup", - "style": { - "margin": "auto", - "width": "80%", - "height": "600rpx" - } - }, { - "id": "video_mask", - "path": "subnvue/subnvue/video-mask", - "style": { - "position": "absolute", - "bottom": "30px", - "left": "0", - "width": "230px", - "height": "110px", - "background": "transparent" - } - }] - } - } - }, - // #endif - { - "path": "get-user-info/get-user-info", - "style": { - "navigationBarTitleText": "获取用户信息" - } - }, - { - "path": "request-payment/request-payment", - "style": { - "navigationBarTitleText": "发起支付" - } - }, - { - "path": "share/share", - "style": { - "navigationBarTitleText": "分享" - } - }, - { - "path": "set-navigation-bar-title/set-navigation-bar-title", - "style": { - "navigationBarTitleText": "设置界面标题" - } - }, - { - "path": "show-loading/show-loading", - "style": { - "navigationBarTitleText": "加载提示框" - } - }, - { - "path": "navigator/navigator", - "style": { - "navigationBarTitleText": "页面跳转" - } - }, - { - "path": "navigator/new-page/new-vue-page-1", - "style": { - "navigationBarTitleText": "新VUE页面1" - } - }, - { - "path": "navigator/new-page/new-vue-page-2", - "style": { - "navigationBarTitleText": "新VUE页面2" - } - }, - // #ifndef VUE3 - { - "path": "navigator/new-page/new-nvue-page-1", - "style": { - "navigationBarTitleText": "新NVUE页面1" - } - }, - { - "path": "navigator/new-page/new-nvue-page-2", - "style": { - "navigationBarTitleText": "新NVUE页面2" - } - }, - // #endif - { - "path": "pull-down-refresh/pull-down-refresh", - "style": { - "navigationBarTitleText": "下拉刷新", - "enablePullDownRefresh": true - } - }, - { - "path": "animation/animation", - "style": { - "navigationBarTitleText": "创建动画" - } - }, - { - "path": "get-node-info/get-node-info", - "style": { - "navigationBarTitleText": "节点信息" - } - }, - { - "path": "intersection-observer/intersection-observer", - "style": { - "navigationBarTitleText": "节点布局相交状态" - } - }, - { - "path": "canvas/canvas", - "style": { - "navigationBarTitleText": "创建绘画" - } - }, - { - "path": "action-sheet/action-sheet", - "style": { - "navigationBarTitleText": "操作菜单" - } - }, - { - "path": "modal/modal", - "style": { - "navigationBarTitleText": "模态弹窗" - } - }, - { - "path": "toast/toast", - "style": { - "navigationBarTitleText": "消息提示框" - } - }, - { - "path": "get-network-type/get-network-type", - "style": { - "navigationBarTitleText": "获取设备网络状态" - } - }, - { - "path": "get-system-info/get-system-info", - "style": { - "navigationBarTitleText": "获取设备系统信息" - } - }, - { - "path": "add-phone-contact/add-phone-contact", - "style": { - "navigationBarTitleText": "添加手机联系人" - } - }, - { - "path": "on-accelerometer-change/on-accelerometer-change", - "style": { - "navigationBarTitleText": "监听加速度计数据" - } - }, - { - "path": "on-compass-change/on-compass-change", - "style": { - "navigationBarTitleText": "监听罗盘数据" - } - }, - { - "path": "make-phone-call/make-phone-call", - "style": { - "navigationBarTitleText": "打电话" - } - }, - { - "path": "scan-code/scan-code", - "style": { - "navigationBarTitleText": "扫码" - } - }, - { - "path": "clipboard/clipboard", - "style": { - "navigationBarTitleText": "剪贴板" - } - }, - { - "path": "request/request", - "style": { - "navigationBarTitleText": "网络请求" - } - }, - { - "path": "upload-file/upload-file", - "style": { - "navigationBarTitleText": "上传文件" - } - }, - { - "path": "download-file/download-file", - "style": { - "navigationBarTitleText": "下载文件" - } - }, - { - "path": "image/image", - "style": { - "navigationBarTitleText": "图片" - } - }, - { - "path": "voice/voice", - "style": { - "navigationBarTitleText": "录音" - } - }, - { - "path": "inner-audio/inner-audio", - "style": { - "navigationBarTitleText": "音频" - } - }, - { - "path": "background-audio/background-audio", - "style": { - "navigationBarTitleText": "背景音频" - } - }, - { - "path": "video/video", - "style": { - "navigationBarTitleText": "视频" - } - }, - { - "path": "file/file", - "style": { - "navigationBarTitleText": "文件" - } - }, - // #ifndef MP-QQ || MP-TOUTIAO - { - "path": "map/map", - "style": { - "navigationBarTitleText": "map" - } - }, - // #endif - // #ifdef APP-PLUS - { - "path": "map-search/map-search", - "style": { - "navigationBarTitleText": "map search" - } - }, - // #endif - { - "path": "get-location/get-location", - "style": { - "navigationBarTitleText": "获取位置" - } - }, - { - "path": "open-location/open-location", - "style": { - "navigationBarTitleText": "查看位置" - } - }, - // #ifndef MP-TOUTIAO - { - "path": "choose-location/choose-location", - "style": { - "navigationBarTitleText": "使用地图选择位置" - } - }, - // #endif - { - "path": "storage/storage", - "style": { - "navigationBarTitleText": "数据存储" - } - }, - { - "path": "sqlite/sqlite", - "style": { - "navigationBarTitleText": "SQLite" - } - }, - // #ifdef APP-PLUS || MP-WEIXIN - { - "path": "rewarded-video-ad/rewarded-video-ad", - "style": { - "navigationBarTitleText": "激励视频广告" - } - }, - // #endif - // #ifdef APP-PLUS - { - "path": "full-screen-video-ad/full-screen-video-ad", - "style": { - "navigationBarTitleText": "全屏视频广告" - } - }, - // #endif - // #ifndef H5 - { - "path": "brightness/brightness", - "style": { - "navigationBarTitleText": "屏幕亮度" - } - }, - // #endif - // #ifndef H5 || MP-ALIPAY - { - "path": "save-media/save-media", - "style": { - "navigationBarTitleText": "保存媒体到本地" - } - }, - // #endif - // #ifdef APP-PLUS || MP-WEIXIN || MP-QQ || MP-JD - { - "path": "bluetooth/bluetooth", - "style": { - "navigationBarTitleText": "蓝牙" - } - }, - { - "path": "soter/soter", - "style": { - "navigationBarTitleText": "生物认证" - } - }, - // #endif - // #ifdef APP-PLUS || MP-WEIXIN - { - "path": "ibeacon/ibeacon", - "style": { - "navigationBarTitleText": "iBeacon" - } - }, - // #endif - { - "path": "vibrate/vibrate", - "style": { - "navigationBarTitleText": "震动" - } - }, - // #ifndef MP-ALIPAY - { - "path": "websocket-socketTask/websocket-socketTask", - "style": { - "navigationBarTitleText": "websocket-socketTask" - } - }, - // #endif - { - "path": "websocket-global/websocket-global", - "style": { - "navigationBarTitleText": "websocket-global" - } - } - ] - }, - { - "root": "pages/extUI", - "pages": [{ - "path": "forms/forms", - "style": { - "navigationBarTitleText": "Form 表单" - } - }, - { - "path": "group/group", - "style": { - "navigationBarTitleText": "Group 分组" - } - }, - { - "path": "badge/badge", - "style": { - "navigationBarTitleText": "Badge 数字角标" - } - }, - { - "path": "breadcrumb/breadcrumb", - "style": { - "navigationBarTitleText": "Breadcrumb 面包屑" - } - }, - { - "path": "countdown/countdown", - "style": { - "navigationBarTitleText": "Countdown 倒计时" - } - }, - { - "path": "drawer/drawer", - "style": { - "navigationBarTitleText": "Drawer 抽屉" - } - }, - { - "path": "icons/icons", - "style": { - "navigationBarTitleText": "Icons 图标" - } - }, - { - "path": "load-more/load-more", - "style": { - "navigationBarTitleText": "LoadMore 加载更多" - } - }, - { - "path": "nav-bar/nav-bar", - "style": { - "navigationBarTitleText": "NavBar 导航栏", - "navigationStyle": "custom", - "enablePullDownRefresh": true, - "app-plus": { - "titleNView": false, - "bounce": "none", - "pullToRefresh": { - "style": "circle", - "offset": "70px" - } - } - } - }, - { - "path": "number-box/number-box", - "style": { - "navigationBarTitleText": "NumberBox 数字输入框" - } - }, - { - "path": "popup/popup", - "style": { - "navigationBarTitleText": "Popup 弹出层", - "app-plus": { - "softinputMode": "adjustResize" - } - } - }, - { - "path": "segmented-control/segmented-control", - "style": { - "navigationBarTitleText": "SegmentedControl 分段器" - } - }, - { - "path": "tag/tag", - "style": { - "navigationBarTitleText": "Tag 标签" - } - }, - { - "path": "list/list", - "style": { - "navigationBarTitleText": "List 列表" - } - }, - { - "path": "card/card", - "style": { - "navigationBarTitleText": "Card 卡片" - } - }, - { - "path": "collapse/collapse", - "style": { - "navigationBarTitleText": "Collapse 折叠面板" - } - }, - { - "path": "pagination/pagination", - "style": { - "navigationBarTitleText": "Pagination 分页器" - } - }, - { - "path": "swiper-dot/swiper-dot", - "style": { - "navigationBarTitleText": "SwiperDot 轮播图指示点", - "mp-baidu": { - "disableSwipeBack": true - } - } - }, - { - "path": "grid/grid", - "style": { - "navigationBarTitleText": "Grid 宫格" - } - }, - { - "path": "rate/rate", - "style": { - "navigationBarTitleText": "Rate 评分" - } - }, - { - "path": "steps/steps", - "style": { - "navigationBarTitleText": "Steps 步骤条" - } - }, - { - "path": "notice-bar/notice-bar", - "style": { - "navigationBarTitleText": "NoticeBar 通告栏" - } - }, - { - "path": "swipe-action/swipe-action", - "style": { - "navigationBarTitleText": "SwipeAction 滑动操作", - "app-plus": { - "bounce": "none" - } - } - }, - { - "path": "search-bar/search-bar", - "style": { - "navigationBarTitleText": "SearchBar 搜索栏" - } - }, - { - "path": "calendar/calendar", - "style": { - "navigationBarTitleText": "Calendar 日历" - } - }, - { - "path": "indexed-list/indexed-list", - "style": { - "navigationBarTitleText": "IndexedList 索引列表", - "mp-weixin": { - "disableScroll": true - }, - "app-plus": { - "bounce": "none" - }, - "mp-alipay": { - "allowsBounceVertical": "NO" - }, - "mp-baidu": { - "disableScroll": true - } - } - }, - { - "path": "fab/fab", - "style": { - "navigationBarTitleText": "Fab 悬浮按钮" - } - }, - { - "path": "fav/fav", - "style": { - "navigationBarTitleText": "Fav 收藏按钮" - } - }, - { - "path": "goods-nav/goods-nav", - "style": { - "navigationBarTitleText": "GoodsNav 商品导航" - } - }, - { - "path": "section/section", - "style": { - "navigationBarTitleText": "Section 标题栏" - } - }, - { - "path": "transition/transition", - "style": { - "navigationBarTitleText": "Transition 过渡动画" - } - }, - { - "path": "title/title", - "style": { - "navigationBarTitleText": "Title 章节标题" - } - }, - { - "path": "tooltip/tooltip", - "style": { - "navigationBarTitleText": "Tooltip 文字提示" - } - }, - { - "path": "link/link", - "style": { - "navigationBarTitleText": "Link 链接" - } - }, - { - "path": "combox/combox", - "style": { - "navigationBarTitleText": "Combox 组合框" - } - }, - { - "path": "list/chat", - "style": {} - }, - { - "path": "table/table", - "style": { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - }, - { - "path": "dateformat/dateformat", - "style": { - "navigationBarTitleText": "Dateformat 日期格式化", - "enablePullDownRefresh": false - } - }, - { - "path": "data-checkbox/data-checkbox", - "style": { - "navigationBarTitleText": "DataCheckbox 单选复选框", - "enablePullDownRefresh": false - } - }, - { - "path": "easyinput/easyinput", - "style": { - "navigationBarTitleText": "Easyinput 增强输入框", - "enablePullDownRefresh": false - } - }, - { - "path": "data-picker/data-picker", - "style": { - "navigationBarTitleText": "DataPicker 级联选择", - "enablePullDownRefresh": false - } - }, - { - "path": "data-select/data-select", - "style": { - "navigationBarTitleText": "DataSelect 下拉框", - "enablePullDownRefresh": false - } - }, - { - "path": "datetime-picker/datetime-picker", - "style": { - "navigationBarTitleText": "DatetimePicker 日期时间", - "enablePullDownRefresh": false - } - }, - { - "path": "row/row", - "style": { - "navigationBarTitleText": "Layout 布局", - "enablePullDownRefresh": false - } - }, - { - "path": "file-picker/file-picker", - "style": { - "navigationBarTitleText": "FilePicker 文件选择上传", - "enablePullDownRefresh": false - } - }, - { - "path": "space/space", - "style": { - "navigationBarTitleText": "间距", - "enablePullDownRefresh": false - } - }, - { - "path": "font/font", - "style": { - "navigationBarTitleText": "字体", - "enablePullDownRefresh": false - } - }, - { - "path": "color/color", - "style": { - "navigationBarTitleText": "颜色", - "enablePullDownRefresh": false - } - }, - { - "path": "radius/radius", - "style": { - "navigationBarTitleText": "圆角", - "enablePullDownRefresh": false - } - }, - { - "path": "button/button", - "style": { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - } - ] - }, - { - "root": "pages/template", - "pages": [ - // #ifndef VUE3 - { - "path": "ucharts/ucharts", - "style": { - "navigationBarTitleText": "uCharts 图表" - } - }, - // #endif - { - "path": "nav-default/nav-default", - "style": { - "navigationBarTitleText": "默认导航栏" - } - }, - { - "path": "component-communication/component-communication", - "style": { - "navigationBarTitleText": "组件通讯" - } - }, - // #ifdef APP-PLUS || H5 || MP-ALIPAY - { - "path": "nav-transparent/nav-transparent", - "style": { - "navigationBarTitleText": "透明渐变导航栏", - "transparentTitle": "auto" - } - }, - // #endif - // #ifdef APP-PLUS || H5 - { - "path": "nav-button/nav-button", - "style": { - "navigationBarTitleText": "导航栏带自定义按钮", - "app-plus": { - "titleNView": { - "buttons": [{ - "type": "share" - }, - { - "type": "favorite" - } - ] - } - } - } - }, - // #endif - // #ifdef APP-PLUS || H5 || MP-ALIPAY - { - "path": "nav-image/nav-image", - "style": { - "navigationBarBackgroundColor": "#FFFFFF", - "navigationBarTextStyle": "black", - "titleImage": "https://web-assets.dcloud.net.cn/unidoc/zh/logo1@2x.png" - } - }, - // #endif - // #ifdef APP-PLUS || H5 - { - "path": "nav-city-dropdown/nav-city-dropdown", - "style": { - "navigationBarTitleText": "导航栏带城市选择", - "app-plus": { - "titleNView": { - "buttons": [{ - "text": "北京市", - "fontSize": "14", - "select": true, - "width": "auto" - }] - } - } - } - }, - { - "path": "nav-dot/nav-dot", - "style": { - "navigationBarTitleText": "导航栏带红点和角标", - "app-plus": { - "titleNView": { - "buttons": [{ - "text": "消息", - "fontSize": "14", - "redDot": true - }, - { - "text": "关注", - "fontSize": "14", - "badgeText": "12" - } - ] - } - } - } - }, - { - "path": "nav-search-input/nav-search-input", - "style": { - "navigationBarTitleText": "导航栏带搜索框", - "app-plus": { - "titleNView": { - "type": "transparent", - "titleColor": "#fff", - "backgroundColor": "#007AFF", - "buttons": [{ - "fontSrc": "/static/uni.ttf", - "text": "\ue537", - "width": "40px", - "fontSize": "28px", - "color": "#fff", - "background": "rgba(0,0,0,0)" - }], - "searchInput": { - "backgroundColor": "#fff", - "borderRadius": "6px", - "placeholder": "请输入地址 如:大钟寺", - "disabled": true - } - } - } - } - }, - { - "path": "nav-search-input/detail/detail", - "style": { - "navigationBarTitleText": "搜索", - "app-plus": { - "titleNView": { - "titleColor": "#fff", - "backgroundColor": "#007AFF", - "buttons": [{ - "fontSrc": "/static/uni.ttf", - "text": "\ue537", - "width": "auto", - "fontSize": "28px", - "color": "#fff" - }], - "searchInput": { - "backgroundColor": "#fff", - "borderRadius": "6px", - "placeholder": "请输入地址 如:大钟寺", - "autoFocus": true - } - } - } - } - }, - // #endif - { - "path": "list2detail-list/list2detail-list", - "style": { - "navigationBarTitleText": "列表到详情示例", - "enablePullDownRefresh": true - } - }, - { - "path": "list2detail-detail/list2detail-detail", - "style": { - "navigationBarTitleText": "详情", - "app-plus": { - "titleNView": { - "type": "transparent", - "buttons": [{ - "type": "share" - }] - } - }, - "h5": { - "titleNView": { - "type": "transparent", - "buttons": [] - } - } - } - }, - { - "path": "tabbar/tabbar", - "style": { - "navigationBarTitleText": "可拖动顶部选项卡" - } - }, - { - "path": "tabbar/detail/detail", - "style": { - "navigationBarTitleText": "详情页面" - } - }, - // #ifdef APP-PLUS || H5 || MP-WEIXIN || MP-QQ - { - "path": "swiper-vertical/swiper-vertical", - "style": { - "navigationBarTitleText": "上下滑动切换视频", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "swiper-list/swiper-list", - "style": { - "navigationBarTitleText": "swiper-list" - } - }, - // #endif - // #ifdef APP-PLUS - { - "path": "swiper-list-nvue/swiper-list-nvue", - "style": { - "navigationBarTitleText": "swiper-list" - } - }, - // #endif - { - "path": "scheme/scheme", - "style": { - "navigationBarTitleText": "打开外部应用" - } - }, - // #ifdef APP-PLUS || MP-WEIXIN || MP-QQ || H5 - // #ifndef VUE3 - { - "path": "vant-button/vant-button", - "style": { - "navigationBarTitleText": "微信自定义组件示例", - "usingComponents": { - "van-button": "/wxcomponents/vant/button/index" - } - } - }, - // #endif - // #endif - { - "path": "global/global", - "style": { - "navigationBarTitleText": "GlobalData和vuex" - } - } - ] - } + "subPackages": [ + // { + // "root": "pages/API", + // "pages": [] + // }, ], "globalStyle": { "pageOrientation": "portrait", diff --git a/pages/highWay/runData/form.vue b/pages/highWay/runData/form.vue index 3529f54..5ac0ba7 100644 --- a/pages/highWay/runData/form.vue +++ b/pages/highWay/runData/form.vue @@ -1,16 +1,73 @@ \ No newline at end of file diff --git a/pages/home/home.vue b/pages/home/home.vue new file mode 100644 index 0000000..98a8ce2 --- /dev/null +++ b/pages/home/home.vue @@ -0,0 +1,98 @@ + + + + \ No newline at end of file diff --git a/pages/home/index.vue b/pages/home/index.vue index 04bed32..fcb3f29 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -1,132 +1,58 @@ \ No newline at end of file diff --git a/pages/login/login.vue b/pages/login/login.vue index 942009e..bbb3808 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -1,18 +1,17 @@