xytSk-App/pages/yj/detail/qxyj.vue

125 lines
2.9 KiB
Vue
Raw Normal View History

2024-09-14 09:22:12 +08:00
<template>
<view :style="{height:'100vh',overflow:'auto',backgroundColor: '#f0f0f0'}">
<u-status-bar></u-status-bar>
<u-navbar title="气象预警" :autoBack="true" :titleStyle="{
fontSize:'18px'
}" :height='44' :safeAreaInsetTop=true leftIconSize='20' leftIconColor='rgb(153, 153, 153)'>
</u-navbar>
<view class="" style="margin-top:44px;border-top: 1px solid #f0f0f0">
<view class="itemYj">
<view class="itemYjCont" v-for="item in list" >
<view class="item" >
<view class="justify-between">
<image src="../../../static/c1.png" style="width: 79px;height: 68px;"></image>
<view class="">
<view class="title">
麻城市气象台发布暴雨橙色预警
</view>
<view class=title>
[Ⅱ级/严重]
</view>
<view class="time">
2024-06-23 15:18:42
</view>
</view>
</view>
<view class="content">
麻城市2024年06月23日03时18分42秒发布暴雨橙色预警信号过去3小时麻城市乘马岗镇汪家垅降雨量已达45毫米预计未来3小时麻城市中南部降雨量将达70毫米以上伴有雷电阵风6-8致灾风险高请加强防范
</view>
</view>
</view>
</view>
</view>
<u-calendar :show="show" mode="range" @confirm="confirm" @cancel='cancel'></u-calendar>
</view>
</template>
<script>
import moment from 'moment'
export default {
data() {
return {
show: false,
model: {
stm: '',
etm: ''
},
customStyle: {
background: '#000'
},
list: [{
title: '5-29日常巡检',
state: 0,
xjx: '上游坝面、坝顶',
name: '王自荣',
time: '2024-05-30 09:31:23',
type:'水位告警',
},
{
title: '5-29日常巡检',
state: 1,
xjx: '上游坝面、坝顶',
name: '王自荣',
time: '2024-05-30 09:31:23',
type:'水位告警',
},
{
title: '5-29日常巡检',
state: 1,
xjx: '上游坝面、坝顶',
name: '王自荣',
time: '2024-05-30 09:31:23',
type:'水位告警',
},
]
};
},
onLoad(options){
// this.list = JSON.parse(decodeURIComponent(options.arr))
},
methods: {
confirm(e) {
console.log(e);
this.model.stm = e[0]
this.model.etm = e[1]
this.show = false
},
cancel() {
this.show = false
}
}
}
</script>
<style lang="scss" scoped>
.itemYj{
.itemYjCont{
margin: 10px;
background: #fff;
padding: 10px;
.title{
font-family: 'Arial Normal', 'Arial', sans-serif;
font-weight: 400;
color: #333333;
vertical-align: none;
font-size: 16px;
text-align: center;
}
.time{
font-size: 14px;
color: #7F7F7F;
text-align: right;
}
.content{
font-size: 14px;
letter-spacing: 1px;
color: #333333;
}
}
}
</style>