122 lines
2.2 KiB
Vue
122 lines
2.2 KiB
Vue
<template>
|
|
<view class="skinfo" @click="toDetail()">
|
|
<view class="title">
|
|
<view class="left">
|
|
<u-icon name="file-text" color="origin"></u-icon>
|
|
<text>小玉潭水库</text>
|
|
</view>
|
|
<view class="right">
|
|
2024-08-12 11:00
|
|
</view>
|
|
</view>
|
|
<view class="content">
|
|
<view class="" style="display: flex;">
|
|
<image src="../../static/c1.png" mode="" style="width:30%;height: 120px;"></image>
|
|
<view class="listItem">
|
|
<view class="item-text" v-for="(v,k) of list">
|
|
<text>{{v}}</text>:
|
|
<text>{{dataform[k]}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="bottom">
|
|
<view class="bottomItem">
|
|
<view class="withd-2">
|
|
<text>生活供水m³/s</text>:
|
|
<text>0</text>
|
|
</view>
|
|
<view class="withd-2">
|
|
<text>生态供水m³/s</text>:
|
|
<text>2.1</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
export default{
|
|
data(){
|
|
return{
|
|
list:{
|
|
1:'当前水位m',
|
|
2:'今日雨量mm',
|
|
3:'汛限水位m',
|
|
4:'比汛期m',
|
|
5:'堰顶高程m',
|
|
6:'坝顶高程m',
|
|
7:'24h预报',
|
|
8:'昨日雨量',
|
|
9:'总库容m³',
|
|
10:'蓄水量万m³'
|
|
},
|
|
dataform:{
|
|
1:192.41,
|
|
2:112,
|
|
3:194.00,
|
|
4:-1.59,
|
|
5:194.00,
|
|
6:196.28,
|
|
7:12,
|
|
8:15.4,
|
|
9:129.06,
|
|
10:75.34
|
|
}
|
|
|
|
}
|
|
},
|
|
methods:{
|
|
toDetail(){
|
|
uni.navigateTo({
|
|
url:'/pages/skInfo/detail/index'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.skinfo {
|
|
.title {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
.left{
|
|
font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑', sans-serif;
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
font-size: 16px;
|
|
display: flex;
|
|
}
|
|
.right{
|
|
|
|
}
|
|
|
|
}
|
|
.content{
|
|
.listItem{
|
|
font-size: 13px;
|
|
color: #333333;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
width: 70%;
|
|
height: 22px;
|
|
.item-text{
|
|
width: 50%;
|
|
}
|
|
}
|
|
}
|
|
.bottomItem{
|
|
display: flex;
|
|
border-top: 1px solid #f0f0f0;
|
|
padding: 10px 0 0 0;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
.withd-2{
|
|
width: 50%;
|
|
text-align: center;
|
|
}
|
|
</style> |