diff --git a/manifest.json b/manifest.json
index 7ec1f00..33cccb3 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,5 +1,5 @@
{
- "name" : "农业面源污染监测系统",
+ "name" : "汾西县黄河流域面源污染监测",
"appid" : "__UNI__44A8AB0",
"description" : "",
"versionName" : "2.2.22",
diff --git a/packDetail/pages/Site/detail.vue b/packDetail/pages/Site/detail.vue
index 147cdc7..e77bc8c 100644
--- a/packDetail/pages/Site/detail.vue
+++ b/packDetail/pages/Site/detail.vue
@@ -460,11 +460,6 @@
this.$http.get('/applet/survStationInfo/getStationInfo',{params:params}).then(res =>{
if(res.data.code == 0){
this.details = res.data.data.stationInfo
- this.dataH2s = res.data.data.liveSurvData[1].dataH2s
- this.dataNh3 = res.data.data.liveSurvData[1].dataNh3
- this.dataOu = res.data.data.liveSurvData[1].dataOu
- this.dataTvoc = res.data.data.liveSurvData[1].dataTvoc
- console.log('数据1',this.dataH2s)
if(this.details.deviceCount >= 10000 && this.details.deviceCount < 100000000){
this.details.deviceCount = (this.details.deviceCount /10000).toFixed(1) + '万'
}
diff --git a/packDetail/pages/sjdyj/index.vue b/packDetail/pages/sjdyj/index.vue
index 9166b77..b9ff2c0 100644
--- a/packDetail/pages/sjdyj/index.vue
+++ b/packDetail/pages/sjdyj/index.vue
@@ -1,109 +1,107 @@
-
-
-
-
- {{item.dictLabel}}
-
-
+
+
+
+
+ {{item.dictLabel}}
+
-
+
+
+
+
+
+
+
+
+
+ 设备选择:
+
+
+
+ 时间区间:
+
+
+
+
+
+ {{item.itemName}}{{item.unit}}
+
+
+
+
-
-
-
-
- 设备选择:
-
-
-
- 时间区间:
-
-
-
-
-
- {{item.itemName}}{{item.unit}}
-
-
-
+
+
+
+
+ 暂无数据
-
-
-
-
- 暂无数据
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.stationName}}
-
-
-
- {{item.alertTime}}
-
-
-
-
-
-
- {{it}}
-
-
-
-
- {{Item.name}}
-
-
- {{Item.val}}
-
-
- {{Item.valHeight}}
-
-
-
-
- {{Item.valLow}}
-
-
-
-
- {{Item.unit}}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ {{item.stationName}}
-
-
-
-
-
-
-
-
-
- 暂无数据
+
+ {{item.alertTime}}
+
+
+
+
+ {{it}}
+
+
+
+
+ {{Item.name}}
+
+
+ {{Item.val}}
+
+
+ {{Item.valHeight}}
+
+
+
+
+ {{Item.valLow}}
+
+
+
+
+ {{Item.unit}}
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
@@ -128,9 +126,6 @@
intervalId: null,
loadStatus: 'more', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
isLoadMore: false, //是否加载中
- height: 0,
- scorllheight: 0,
- scorllheights: 0,
show: false,
show1: false,
top: 0,
@@ -212,31 +207,21 @@
}
},
onLoad() {
- 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
- this.scorllheight = this.height - 174
- this.scorllheights = this.height - 90
- }
- });
this.getList()
this.startTime = this.rangetime[0]
this.endTime = this.rangetime[1]
},
onShow() {
- 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
- this.scorllheight = this.height - 174
- this.scorllheights = this.height - 90
- }
- });
+ // 页面显示时重新获取数据
+ this.getList()
+ },
+ onReachBottom() {
+ // 页面触底加载更多
+ this.lower();
+ },
+ onPullDownRefresh() {
+ // 页面下拉刷新
+ this.refresherrefreshFun();
},
watch: {
rangetime(newval) {
@@ -265,11 +250,9 @@
refresherrefreshFun() {
this.pageNo = 1
this.deviceNo = ''
- this.getList()
- },
- // 下拉刷新触发
- refresherpullingFun() {
- this.isRefresher = true
+ this.getList().then(() => {
+ uni.stopPullDownRefresh();
+ });
},
// 切换类型
chooseClick(item, index) {
@@ -282,49 +265,54 @@
}
},
getList() {
- var params = {}
- params.pageNo = this.pageNo
- params.pageSize = this.pageSize
- uni.showLoading({
- title: '加载中'
- });
- this.List = []
- if (this.isActive == 0) {
- var url = '/applet/wxclient/alertRecord'
- } else if (this.isActive == 1) {
- var url = '/applet/survPestlightAlert/list'
- if (this.deviceNo) {
- params.deviceNo = this.deviceNo
- }
- }
- this.$http.get(url, {
- params: params
- }).then(res => {
- if (res.data.code == 0) {
- var data = res.data.data.records
- this.List = this.List.concat(data)
- if (res.data.data.total != 0) {
- this.allNum = Number(res.data.data.total) / Number(this.pageSize) + '';
- if (this.allNum.indexOf('.') == -1) {
- this.allNum = this.allNum;
- } else {
- this.allNum = parseInt(Number(this.allNum) + 1);
- }
- if (this.pageNo == this.allNum) {
- this.isLastpage = true;
- this.loadStatus = 'nomore'
- } else {
- this.isLastpage = false;
- // this.isLoadMore=true
- this.loadStatus = 'more'
- }
- } else {
- this.isLastpage = true;
- this.loadStatus = 'nomore'
+ return new Promise((resolve, reject) => {
+ var params = {}
+ params.pageNo = this.pageNo
+ params.pageSize = this.pageSize
+ uni.showLoading({
+ title: '加载中'
+ });
+ this.List = []
+ if (this.isActive == 0) {
+ var url = '/applet/wxclient/alertRecord'
+ } else if (this.isActive == 1) {
+ var url = '/applet/survPestlightAlert/list'
+ if (this.deviceNo) {
+ params.deviceNo = this.deviceNo
}
}
- uni.hideLoading();
- this.isRefresher = false
+ this.$http.get(url, {
+ params: params
+ }).then(res => {
+ if (res.data.code == 0) {
+ var data = res.data.data.records
+ this.List = this.List.concat(data)
+ if (res.data.data.total != 0) {
+ this.allNum = Number(res.data.data.total) / Number(this.pageSize) + '';
+ if (this.allNum.indexOf('.') == -1) {
+ this.allNum = this.allNum;
+ } else {
+ this.allNum = parseInt(Number(this.allNum) + 1);
+ }
+ if (this.pageNo == this.allNum) {
+ this.isLastpage = true;
+ this.loadStatus = 'nomore'
+ } else {
+ this.isLastpage = false;
+ this.loadStatus = 'more'
+ }
+ } else {
+ this.isLastpage = true;
+ this.loadStatus = 'nomore'
+ }
+ }
+ uni.hideLoading();
+ this.isRefresher = false
+ resolve()
+ }).catch(err => {
+ uni.hideLoading();
+ reject(err)
+ })
})
},
lower() {
@@ -361,7 +349,6 @@
this.loadStatus = 'nomore'
} else {
this.isLastpage = false;
- // this.isLoadMore=true
this.loadStatus = 'more'
}
} else {
@@ -457,44 +444,6 @@
color: "#1890FF"
});
- // // 超出最高值的数据点(红色)
- // if (highValNum !== null) {
- // const highAlertData = mainData.map(value => {
- // return value > highValNum ? value : null;
- // });
-
- // series.push({
- // name: '超出上限',
- // data: highAlertData,
- // color: "#FF4242",
- // pointStyle: {
- // shape: 'circle',
- // size: 6,
- // borderWidth: 2
- // },
- // lineStyle: 'none' // 不显示连线,只显示点
- // });
- // }
-
- // // 低于最低值的数据点(绿色)
- // if (lowValNum !== null) {
- // const lowAlertData = mainData.map(value => {
- // return value < lowValNum ? value : null;
- // });
-
- // series.push({
- // name: '低于下限',
- // data: lowAlertData,
- // color: "#19D58A",
- // pointStyle: {
- // shape: 'circle',
- // size: 6,
- // borderWidth: 2
- // },
- // lineStyle: 'none' // 不显示连线,只显示点
- // });
- // }
-
// 阈值线(保持原来的虚线)
if (highValNum !== null) {
series.push({
@@ -559,10 +508,14 @@
page {
height: 100%;
background: #fff;
+ /* 确保页面可以滚动 */
+ overflow: auto;
}
.container {
- height: 100%;
+ min-height: 100%;
+ /* 改为 min-height */
+ padding-bottom: 20rpx;
}
.searchbox {
@@ -572,7 +525,6 @@
position: relative;
display: flex;
justify-content: space-between;
-
}
.search_input {
@@ -675,6 +627,9 @@
height: 85rpx;
background-color: #fff;
border-bottom: 1rpx solid #ededed;
+ position: sticky;
+ top: 0;
+ z-index: 999;
}
.scroll {
@@ -683,6 +638,7 @@
white-space: nowrap;
justify-content: space-between;
padding-top: 12rpx;
+ background: #fff;
}
.scroll-item {
diff --git a/packDetail1/pages/about/index.vue b/packDetail1/pages/about/index.vue
index 6b2e3de..615f53f 100644
--- a/packDetail1/pages/about/index.vue
+++ b/packDetail1/pages/about/index.vue
@@ -11,19 +11,19 @@
版本号
- 1.0.1
+ v1.0.1
-
-
-
-
-
-
-
-
-
+
+ Copyright ◎ 汾西县农业农村局
@@ -105,4 +105,11 @@
font-weight: 400;
color: #999999;
}
+ .botmTetx{
+ position: absolute;
+ bottom: 60rpx;
+ left: 50%;
+ transform: translate(-50%);
+ color: #000;
+ }
diff --git a/pages.json b/pages.json
index 7f0993f..9110440 100644
--- a/pages.json
+++ b/pages.json
@@ -4,7 +4,7 @@
{
"path": "pages/index/index",
"style": {
- "navigationBarTitleText": "农业面源污染监测系统",
+ "navigationBarTitleText": "汾西县黄河流域面源污染监测",
"navigationStyle": "custom"
}
},
diff --git a/pages/index/index.vue b/pages/index/index.vue
index f13737e..12c89ab 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,6 +1,6 @@
-
+
@@ -53,7 +53,7 @@
+ :indicator-dots="false" interval="3000" :duration="duration">