From 0b15b838051b843083c12bfba776e2fb91494bd9 Mon Sep 17 00:00:00 2001 From: "978184212@qq.com" <978184212@qq.com> Date: Mon, 1 Dec 2025 10:50:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packDetail/pages/vidio/index.vue | 3 +- packDetail/pages/vidio/soilindex.vue | 280 +++++++++++++++++++++++++++ pages.json | 8 + pages/index/index.vue | 34 ++-- pages/maps/index.vue | 2 +- 5 files changed, 304 insertions(+), 23 deletions(-) create mode 100644 packDetail/pages/vidio/soilindex.vue diff --git a/packDetail/pages/vidio/index.vue b/packDetail/pages/vidio/index.vue index 3a4a545..462dcda 100644 --- a/packDetail/pages/vidio/index.vue +++ b/packDetail/pages/vidio/index.vue @@ -95,13 +95,12 @@ uni.showLoading({ title: '加载中' }); - this.$http.get('/applet/survStationInfo/fdeviceList').then(res =>{ + this.$http.get('/applet/survStationInfo/deviceList').then(res =>{ this.list = res.data.data uni.hideLoading(); }) }, todetail(item,index){ - console.log(item,12) uni.navigateTo({ url:'/packDetail/pages/vidio/detail?item=' + encodeURIComponent(JSON.stringify(item)) }) diff --git a/packDetail/pages/vidio/soilindex.vue b/packDetail/pages/vidio/soilindex.vue new file mode 100644 index 0000000..3a4a545 --- /dev/null +++ b/packDetail/pages/vidio/soilindex.vue @@ -0,0 +1,280 @@ + + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index 99eb714..f98416d 100644 --- a/pages.json +++ b/pages.json @@ -132,6 +132,14 @@ }, { "path": "pages/vidio/index", + "style": { + "navigationBarTitleText": "站点监测", + "navigationStyle": "default", + "navigationBarBackgroundColor":"#0F6EFF" + } + }, + { + "path": "pages/vidio/soilindex", "style": { "navigationBarTitleText": "土壤监测", "navigationStyle": "default", diff --git a/pages/index/index.vue b/pages/index/index.vue index aab28df..8ceb3fd 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -22,7 +22,7 @@ indicator-active-color="rgba(197, 197, 197, 1)" :autoplay="autoplay" interval="3000" :duration="duration"> - + @@ -150,7 +150,7 @@ path: '/packDetail/pages/Site/index' }, { - name: '土壤监测', + name: '站点监测', img: require('../../static/home_icon_shebei.png'), path: '/packDetail/pages/vidio/index' }, @@ -185,15 +185,12 @@ }, onLoad() { // this.wrwlist = uni.getStorageSync('wrwlist') - console.log(1561) uni.getSystemInfo({ success: res => { var pxToRpxScale = 750 / res.windowWidth var ktxStatusHeight = res.statusBarHeight * pxToRpxScale var navigationHeight = 44 * pxToRpxScale this.height = res.windowHeight * pxToRpxScale //将px 转换rpx - // console.log(navigationHeight,'111111111') - // console.log(this.height, ktxStatusHeight, navigationHeight) this.contentheight = this.height - ktxStatusHeight - navigationHeight this.pageheight = this.height - ktxStatusHeight - navigationHeight - 98 } @@ -210,9 +207,7 @@ var that = this myAmapFun.getWeather({ type: 'live', - // city:code, success: function(data) { - console.log(data) //天气数据 that.weather = data.temperature.data + '℃' that.city = data.liveData.city; var twtype = data.weather.data @@ -264,13 +259,10 @@ if (uni.getStorageSync('third_session')) { uni.login({ success: function(res) { - console.log(res.code) this.code = res.code let params = {} params.jsCode = this.code - console.log(params, 152) api.wxlogin(params).then(res => { - console.log(res, 165) if (res.data.code == 0) { let userInfo = res.data.data; // uni.setStorageSync('third_session', userInfo.thirdSession); @@ -683,9 +675,7 @@ }] if (that.list) { for (var i = 0; i < that.list.length; i++) { - // console.log(Object.keys(this.list[i]),Object.keys(this.list[i]).length) that.list[i].wrwcode = [] - // console.log(this.wrwlist,'污染物shuzu') for (var j = 0; j < that.wrwlist.length; j++) { // Object.keys 获取字段名 for (var k = 0; k < Object.keys(this.list[i]) @@ -704,7 +694,6 @@ } if (that.list[i].dataDateTime) { that.list[i].times = null - // console.log(this.list[i].times) } } that.numbers = that.list[0].dataCounts @@ -1128,9 +1117,7 @@ }] if (that.list) { for (var i = 0; i < that.list.length; i++) { - // console.log(Object.keys(this.list[i]),Object.keys(this.list[i]).length) that.list[i].wrwcode = [] - // console.log(this.wrwlist,'污染物shuzu') for (var j = 0; j < that.wrwlist.length; j++) { // Object.keys 获取字段名 for (var k = 0; k < Object.keys(this.list[i]).length; k++) { @@ -1147,7 +1134,6 @@ } if (that.list[i].dataDateTime) { that.list[i].times = null - // console.log(this.list[i].times) } } that.numbers = that.list[0].dataCounts @@ -1194,7 +1180,6 @@ // 如果距离上次点击时间小于节流时间,则忽略此次点击 if (now - this.lastClickTime < this.throttleDelay) { - console.log('点击过于频繁,请稍后再试'); return; } @@ -1231,9 +1216,7 @@ this.list = res.data.data 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 = [] - // console.log(this.wrwlist,'污染物shuzu') for (var j = 0; j < this.wrwlist.length; j++) { // Object.keys 获取字段名 for (var k = 0; k < Object.keys(this.list[i]).length; k++) { @@ -1251,7 +1234,6 @@ } if (this.list[i].dataDateTime) { this.list[i].times = this.list[i].dataDateTime.split(" ") - // console.log(this.list[i].times) } } this.numbers = this.list[0].dataCounts @@ -1260,6 +1242,18 @@ }, toList(item, index) { this.isAathorize(item.path) + }, + // banner跳转 + banlick(index){ + if (index==0) { + uni.navigateTo({ + url: '/packDetail/pages/vidio/soilindex' + }) + } else { + uni.navigateTo({ + url: '/packDetail/pages/Site/index' + }) + } } } } diff --git a/pages/maps/index.vue b/pages/maps/index.vue index b2fb678..fde2458 100644 --- a/pages/maps/index.vue +++ b/pages/maps/index.vue @@ -19,7 +19,7 @@ - 土壤监测点 + 长期定位监测点位