2024-09-14 09:22:12 +08:00
|
|
|
<template>
|
2024-11-05 17:48:27 +08:00
|
|
|
<view class="skinfo" @click="toDetail()">
|
2024-09-14 09:22:12 +08:00
|
|
|
<view class="title">
|
|
|
|
|
<view class="left">
|
2024-11-06 15:56:11 +08:00
|
|
|
<text>{{item.stnm}}</text>
|
2024-09-14 09:22:12 +08:00
|
|
|
</view>
|
|
|
|
|
<view class="right">
|
2024-11-06 15:56:11 +08:00
|
|
|
{{item.tm}}
|
2024-09-14 09:22:12 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="listItem" v-for="(v,k) of list" :style="{border:'1px solid red'}">
|
|
|
|
|
<view class="top" style="background-color: red;border-bottom: 1px solid red;">
|
|
|
|
|
{{k}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="bottom">
|
2024-11-06 15:56:11 +08:00
|
|
|
{{item[k]}}
|
2024-09-14 09:22:12 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default{
|
2024-11-06 15:56:11 +08:00
|
|
|
props:{
|
|
|
|
|
item:{
|
|
|
|
|
type: Object,
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-09-14 09:22:12 +08:00
|
|
|
data(){
|
|
|
|
|
return{
|
|
|
|
|
list:{
|
|
|
|
|
h1:0,
|
|
|
|
|
h3:0,
|
|
|
|
|
h6:0,
|
|
|
|
|
h12:22,
|
|
|
|
|
h24:35,
|
|
|
|
|
},
|
2024-11-06 15:55:25 +08:00
|
|
|
ylzList:[]
|
2024-09-14 09:22:12 +08:00
|
|
|
}
|
2024-11-05 17:48:27 +08:00
|
|
|
},
|
|
|
|
|
methods:{
|
2024-11-06 15:55:25 +08:00
|
|
|
|
|
|
|
|
// 获取雨量站
|
|
|
|
|
async getYlzData(){
|
|
|
|
|
try {
|
|
|
|
|
const {data} = await uni.$http.post(
|
|
|
|
|
"/gunshiApp/xyt/stPptnRReal/list")
|
|
|
|
|
if(data.code == 200){
|
|
|
|
|
this.ylzList = [...data.data];
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
uni.$showMsg();
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-11-05 17:48:27 +08:00
|
|
|
toDetail(){
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:'/pages/ylzList/detail/index'
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-11-06 15:55:25 +08:00
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getYlzData();
|
|
|
|
|
},
|
2024-09-14 09:22:12 +08:00
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.skinfo {
|
|
|
|
|
.title {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 10px 0;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
.content{
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
.listItem{
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
color: #333333;
|
|
|
|
|
text-align: center;
|
|
|
|
|
width: 75px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
margin: 5px;
|
|
|
|
|
.top{
|
|
|
|
|
height: 40%;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
.bottom{
|
|
|
|
|
height: 60%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.bottomItem{
|
|
|
|
|
display: flex;
|
|
|
|
|
border-top: 1px solid #f0f0f0;
|
|
|
|
|
padding: 10px 0 0 0;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.withd-2{
|
|
|
|
|
width: 50%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
</style>
|