From 1db2949aa4e7b3a6e0530e8fbcc5b2275425fd64 Mon Sep 17 00:00:00 2001
From: "978184212@qq.com" <978184212@qq.com>
Date: Fri, 28 Nov 2025 10:58:33 +0800
Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 2 +-
common/service/service.js | 10 +++----
packDetail/pages/vidio/detail.vue | 1 +
packDetail/pages/vidio/index.vue | 2 +-
pages/index/index.vue | 44 +++++++++++++++----------------
pages/maps/index - 副本.vue | 2 +-
pages/maps/index.vue | 8 +++---
pages/user/people.vue | 2 +-
8 files changed, 36 insertions(+), 35 deletions(-)
diff --git a/App.vue b/App.vue
index 8671ad5..c1605c5 100644
--- a/App.vue
+++ b/App.vue
@@ -192,7 +192,7 @@
onLoad() {
if(!uni.getStorageSync('third_session')){
uni.reLaunch({
- url:'/pages/loginindex'
+ url:'/packDetail/pages/login/login'
})
}else{
uni.reLaunch({
diff --git a/common/service/service.js b/common/service/service.js
index 4cac21c..8d345fc 100644
--- a/common/service/service.js
+++ b/common/service/service.js
@@ -98,7 +98,7 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
uni.removeStorageSync('third_session')
uni.removeStorageSync('constant')
uni.reLaunch({
- url:'/pages/loginindex'
+ url:'/packDetail/pages/login/login'
})
},2000)
tip.error('拒绝访问');
@@ -113,7 +113,7 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
uni.removeStorageSync('third_session')
uni.removeStorageSync('constant')
uni.reLaunch({
- url:'/pages/loginindex'
+ url:'/packDetail/pages/login/login'
})
},2000)
break
@@ -127,7 +127,7 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
uni.removeStorageSync('third_session')
uni.removeStorageSync('constant')
uni.reLaunch({
- url:'/pages/loginindex'
+ url:'/packDetail/pages/login/login'
})
},2000)
break
@@ -141,7 +141,7 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
uni.removeStorageSync('third_session')
uni.removeStorageSync('constant')
uni.reLaunch({
- url:'/pages/loginindex'
+ url:'/packDetail/pages/login/login'
})
},2000)
break
@@ -155,7 +155,7 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
uni.removeStorageSync('third_session')
uni.removeStorageSync('constant')
uni.reLaunch({
- url:'/pages/loginindex'
+ url:'/packDetail/pages/login/login'
})
},2000)
break
diff --git a/packDetail/pages/vidio/detail.vue b/packDetail/pages/vidio/detail.vue
index b6b89c7..61faf04 100644
--- a/packDetail/pages/vidio/detail.vue
+++ b/packDetail/pages/vidio/detail.vue
@@ -138,6 +138,7 @@
getsssj(){
let params = {}
params.deployCode = this.item.deployCode
+ params.deployId = this.item.id
this.$http.get('/applet/wxclient/getSurvDataByDevice',{params:params}).then(res=>{
this.list = res.data.data.dataList
this.survItem = res.data.data.zhibiao
diff --git a/packDetail/pages/vidio/index.vue b/packDetail/pages/vidio/index.vue
index 8f43f27..3a4a545 100644
--- a/packDetail/pages/vidio/index.vue
+++ b/packDetail/pages/vidio/index.vue
@@ -95,7 +95,7 @@
uni.showLoading({
title: '加载中'
});
- this.$http.get('/applet/survStationInfo/deviceList').then(res =>{
+ this.$http.get('/applet/survStationInfo/fdeviceList').then(res =>{
this.list = res.data.data
uni.hideLoading();
})
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 9e79bf0..aab28df 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -150,9 +150,9 @@
path: '/packDetail/pages/Site/index'
},
{
- name: '站点运维',
- img: require('../../static/home_icon_yunwei.png'),
- path: '/packDetail/pages/operations/index'
+ name: '土壤监测',
+ img: require('../../static/home_icon_shebei.png'),
+ path: '/packDetail/pages/vidio/index'
},
{
name: '视频监控',
@@ -160,9 +160,9 @@
path: '/packDetail1/pages/device/index'
},
{
- name: '土壤监测',
- img: require('../../static/home_icon_shebei.png'),
- path: '/packDetail/pages/vidio/index'
+ name: '站点运维',
+ img: require('../../static/home_icon_yunwei.png'),
+ path: '/packDetail/pages/operations/index'
},
{
name: '农业废弃物',
@@ -721,7 +721,7 @@
});
} else if (!uni.getStorageSync('third_session')) {
// uni.reLaunch({
- // url: '/pages/loginindex'
+ // url: '/packDetail/pages/login/login'
// })
that.bigswiperList = [{
"id": "1692474977070829569",
@@ -1182,7 +1182,7 @@
});
} else if (!uni.getStorageSync('third_session')) {
uni.reLaunch({
- url: '/pages/loginindex'
+ url: '/packDetail/pages/login/login'
})
}
},
@@ -1190,19 +1190,19 @@
return false;
},
todetail(item, index) {
- const now = Date.now();
-
- // 如果距离上次点击时间小于节流时间,则忽略此次点击
- if (now - this.lastClickTime < this.throttleDelay) {
- console.log('点击过于频繁,请稍后再试');
- return;
- }
-
- // 更新最后点击时间
- this.lastClickTime = now;
-
- // 执行原逻辑
- this.isAathorize('/packDetail/pages/Site/detail?item=' + encodeURIComponent(JSON.stringify(item)));
+ const now = Date.now();
+
+ // 如果距离上次点击时间小于节流时间,则忽略此次点击
+ if (now - this.lastClickTime < this.throttleDelay) {
+ console.log('点击过于频繁,请稍后再试');
+ return;
+ }
+
+ // 更新最后点击时间
+ this.lastClickTime = now;
+
+ // 执行原逻辑
+ this.isAathorize('/packDetail/pages/Site/detail?item=' + encodeURIComponent(JSON.stringify(item)));
},
tologin() {
uni.reLaunch({
@@ -1229,7 +1229,7 @@
getsssj() {
this.$http.post('/applet/wxclient/getNewestData').then(res => {
this.list = res.data.data
- if (this.list.length>0) {
+ if (this.list.length > 0) {
for (var i = 0; i < this.list.length; i++) {
// console.log(Object.keys(this.list[i]),Object.keys(this.list[i]).length)
this.list[i].wrwcode = []
diff --git a/pages/maps/index - 副本.vue b/pages/maps/index - 副本.vue
index 18ccf4c..9e28c56 100644
--- a/pages/maps/index - 副本.vue
+++ b/pages/maps/index - 副本.vue
@@ -58,7 +58,7 @@
onShow() {
if (!uni.getStorageSync('third_session')) {
uni.reLaunch({
- url: '/pages/loginindex'
+ url: '/packDetail/pages/login/login'
})
}
},
diff --git a/pages/maps/index.vue b/pages/maps/index.vue
index 5d823b1..b2fb678 100644
--- a/pages/maps/index.vue
+++ b/pages/maps/index.vue
@@ -7,19 +7,19 @@
- 团柏河典型小流域监测站
+ 团柏河监测站
- 对竹河典型小流域监测站
+ 对竹河监测站
- 土壤监测
+ 土壤监测点
@@ -57,7 +57,7 @@
onShow() {
if (!uni.getStorageSync('third_session')) {
uni.reLaunch({
- url: '/pages/loginindex'
+ url: '/packDetail/pages/login/login'
})
}
},
diff --git a/pages/user/people.vue b/pages/user/people.vue
index cd3c7aa..96aa5c0 100644
--- a/pages/user/people.vue
+++ b/pages/user/people.vue
@@ -102,7 +102,7 @@
});
}else if(!uni.getStorageSync('third_session')){
uni.reLaunch({
- url:'/pages/loginindex'
+ url:'/packDetail/pages/login/login'
})
}
this.getuserInfo()