master
parent
70639bedb8
commit
17e72d0bd1
|
|
@ -12,7 +12,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="funcBar">
|
<view class="funcBar">
|
||||||
<div class="funcList" v-for="(item, index) in func" :key="index">
|
<div class="funcList" v-for="(item, index) in func" :key="index">
|
||||||
<div @click="navigateToSubPage(index)">
|
<div @click="navigateToSubPage(func,index)">
|
||||||
<div class="funcIcon">
|
<div class="funcIcon">
|
||||||
<image class="icon-left" style="width: 100%; height: 100%" :src="item.img" mode="aspectFit">
|
<image class="icon-left" style="width: 100%; height: 100%" :src="item.img" mode="aspectFit">
|
||||||
</image>
|
</image>
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
<view class="" style="display: flex;">
|
<view class="" style="display: flex;">
|
||||||
|
|
||||||
<div class="funcList" v-for="(item, index) in xjxList" :key="index" >
|
<div class="funcList" v-for="(item, index) in xjxList" :key="index" >
|
||||||
<div @click="navigateToSubPage(index)">
|
<div @click="navigateToSubPage(xjxList,index)">
|
||||||
<div class="funcIcon" style="width:30px:;height:30px">
|
<div class="funcIcon" style="width:30px:;height:30px">
|
||||||
<image
|
<image
|
||||||
class="icon-left"
|
class="icon-left"
|
||||||
|
|
@ -87,9 +87,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
navigateToSubPage(index) {
|
navigateToSubPage(item,index) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: xjxList[index].url,
|
url: item[index].url,
|
||||||
animationType:'pop-in',
|
animationType:'pop-in',
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
<view class="skinfo" @click="toDetail()">
|
<view class="skinfo" @click="toDetail()">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<u-icon name="file-text" color="#f59d29" size="20"></u-icon>
|
<u-icon name="file-text" color="origin"></u-icon>
|
||||||
<text style="margin-left:5px">{{dataform.resName}}</text>
|
<text>{{dataform.resName}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
{{tm}}
|
{{tm}}
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<view class="" style="display: flex;">
|
<view class="" style="display: flex;">
|
||||||
<image src="../../static/c1.png" mode="" style="width:30%;height: 120px;"></image>
|
<image src="../../static/c1.png" mode="" style="width:30%;height: 120px;"></image>
|
||||||
<view class="listItem">
|
<view class="listItem">
|
||||||
<view class="item-text" v-for="(v,k) of list" :key="k">
|
<view class="item-text" v-for="(v,k) of list">
|
||||||
<text>{{v}}</text>:
|
<text>{{v}}</text>:
|
||||||
<text>{{dataform[k]}}</text>
|
<text>{{dataform[k]}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -42,16 +42,16 @@
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
list:{
|
list:{
|
||||||
"rz":'当前水位m',
|
'drp':'当前水位m',
|
||||||
"today":'今日雨量mm',
|
2:'今日雨量mm',
|
||||||
'flLowLimLev':'汛限水位m',
|
'flLowLimLev':'汛限水位m',
|
||||||
"demo":'比汛期m',
|
4:'比汛期m',
|
||||||
'wcrstel':'堰顶高程m',
|
'wcrstel':'堰顶高程m',
|
||||||
'crestElev':'坝顶高程m',
|
'crestElev':'坝顶高程m',
|
||||||
"24h":'24h预报mm',
|
7:'24h预报',
|
||||||
"yesterdayDrp":'昨日雨量mm',
|
8:'昨日雨量',
|
||||||
'totCap':'总库容m³',
|
'totCap':'总库容m³',
|
||||||
"cap":'蓄水量万m³'
|
10:'蓄水量万m³'
|
||||||
},
|
},
|
||||||
tm: moment().format('YYYY-MM-DD HH:mm:ss'),
|
tm: moment().format('YYYY-MM-DD HH:mm:ss'),
|
||||||
dataform:{
|
dataform:{
|
||||||
|
|
@ -97,13 +97,15 @@
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.left{
|
.left{
|
||||||
align-items: center;
|
|
||||||
font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑', sans-serif;
|
font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑', sans-serif;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
.right{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.content{
|
.content{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue