From 111ce947027c746581dbfa6ce236f53470bc9c1d Mon Sep 17 00:00:00 2001
From: mc <393918995@qq.com>
Date: Tue, 23 Sep 2025 17:56:56 +0800
Subject: [PATCH] 1
---
App.vue | 68 +++---
components/dateSelection/dateSelection.vue | 2 +-
main.js | 1 +
manifest.json | 10 +-
pages.json | 9 +-
pages/index.vue | 104 ++++++---
pages/pages/details.vue | 69 +++---
pages/pages/history.vue | 3 +-
pages/pages/passingTheCar.vue | 65 +++---
pages/pages/setUp.vue | 234 +++++++++++++++------
pages/pages/statistics.vue | 4 +-
pages/pages/warningInformation.vue | 88 +++++---
pages/signIn.vue | 16 +-
13 files changed, 431 insertions(+), 242 deletions(-)
diff --git a/App.vue b/App.vue
index 6e8b373..79a148a 100644
--- a/App.vue
+++ b/App.vue
@@ -2,12 +2,33 @@
import upapp from "/utils/upapp.js"
export default {
onLaunch: function() {
-
+
+ uni.log = function(...arg) {
+ console.log(...arg)
+
+ uni.$emit("consoledebug",...arg)
+ }
+
+
+ // 初始化推送
uni.getPushClientId({
success: (res) => {}
})
+
+
let _Android = uni.getStorageSync('cid') || new Date().getTime()
// #ifdef APP
+
+
+
+ setTimeout(() => {
+ plus.navigator.setFullscreen(true)
+ }, 500)
+ // 检查是否要更新APP
+
+ setTimeout(() => {
+ upapp()
+ }, 5000)
// 获取设备码
function getAndroidId() {
plus.android.importClass("android.provider.Settings");
@@ -19,43 +40,6 @@
_Android = getAndroidId() || plus.device.getOAID() || uni.getSystemInfoSync().deviceId;
// #endif
uni.setStorageSync('cid', _Android)
- if (uni.getStorageSync('token')) {
- // #ifdef APP-PLUS
- let _toure = getCurrentPages();
- if (_toure[0].route != 'pages/index') {
- uni.reLaunch({
- url: "/pages/index",
- success() {}
- })
- }
- // #endif
- // #ifdef H5
- uni.reLaunch({
- url: "/pages/index",
- success() {}
- })
- // #endif
-
-
- } else {
- uni.reLaunch({
- url: "/pages/signIn",
- success() {
-
- }
- })
- }
-
- // #ifdef APP-PLUS
- setTimeout(() => {
- plus.navigator.setFullscreen(true)
- }, 500)
- // 检查是否要更新APP
- setTimeout(() => {
- upapp()
- }, 5000)
- // #endif
-
},
onShow: function() {
@@ -77,21 +61,29 @@
.numcolor1 {
background: #3336E0;
color: #fff;
+ border-radius: 5rpx;
+ letter-spacing: 2rpx;
}
.numcolor3 {
background: #07C688;
color: #fff;
+ border-radius: 5rpx;
+ letter-spacing: 2rpx;
}
.numcolor2 {
background: #FF9521;
color: #fff;
+ border-radius: 5rpx;
+ letter-spacing: 2rpx;
}
.numcolor4 {
background: #333333;
color: #fff;
+ border-radius: 5rpx;
+ letter-spacing: 2rpx;
}
/* :root{
diff --git a/components/dateSelection/dateSelection.vue b/components/dateSelection/dateSelection.vue
index 3d88522..b00356a 100644
--- a/components/dateSelection/dateSelection.vue
+++ b/components/dateSelection/dateSelection.vue
@@ -98,7 +98,7 @@
function reset(){
chooseday.value=daydata.value.day[0];
dayindex.value=0;
- adssEmits("change",chooseday.value)
+ // adssEmits("change",chooseday.value)
}
defineExpose({
reset
diff --git a/main.js b/main.js
index c8611f5..82d8a63 100644
--- a/main.js
+++ b/main.js
@@ -1,5 +1,6 @@
import App from './App'
import soket from "/utils/soket.js"
+
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
diff --git a/manifest.json b/manifest.json
index 5d666fc..42560b3 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,14 +2,18 @@
"name" : "区间测速",
"appid" : "__UNI__E207F22",
"description" : "",
- "versionName" : "1.0.1",
- "versionCode" : 101,
+ "versionName" : "2.0.2",
+ "versionCode" : 100,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
+ "console" : true,
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
+ "compatible" : {
+ "ignoreVersion" : true
+ },
"screenOrientation" : [
"landscape-primary", //可选,字符串类型,支持横屏
"landscape-secondary"
@@ -151,7 +155,7 @@
//配置跨域
"proxy" : {
"/api" : {
- "target" : "http://speed-bl.renyizhi.cc",
+ "target" : "http://192.168.1.7:9005",
"changeOrigin" : true,
"secure" : false
}
diff --git a/pages.json b/pages.json
index cf964c8..9725511 100644
--- a/pages.json
+++ b/pages.json
@@ -1,6 +1,12 @@
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
-
+ {
+ "path": "pages/go",
+ "style": {
+ "navigationStyle": "custom"
+
+ }
+ },
{
"path": "pages/index",
"style": {
@@ -57,6 +63,7 @@
}
}
+
],
"globalStyle": {
"navigationBarTextStyle": "black",
diff --git a/pages/index.vue b/pages/index.vue
index 0088df0..c2170a3 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -46,13 +46,13 @@
设备:
-
- 设备{{item.encoding}}
+ 设备{{item.deviceId}}
@@ -75,7 +75,7 @@
-
+
@@ -86,6 +86,15 @@
确定
+
+
+