first commit
This commit is contained in:
113
pages/steady/steady.css
Normal file
113
pages/steady/steady.css
Normal file
@@ -0,0 +1,113 @@
|
||||
page{
|
||||
background: #F0F0F0;
|
||||
}
|
||||
/* 主体开始 */
|
||||
.steady-block{
|
||||
background: #F0F0F0;
|
||||
}
|
||||
/* 时间开始 */
|
||||
.time-block{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
background:rgba(255,255,255,1);
|
||||
height: 94rpx;
|
||||
align-items: center;
|
||||
}
|
||||
.time-pic{
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
margin: 26rpx 0rpx 24rpx 40rpx;
|
||||
}
|
||||
.time-text{
|
||||
color: #000000;
|
||||
font-size: 30rpx;
|
||||
margin-left: 20rpx;
|
||||
|
||||
}
|
||||
/* 时间结束 */
|
||||
/* 基础信息开始 */
|
||||
.basic-block{
|
||||
margin-top: 20rpx;
|
||||
background:rgba(255,255,255,1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.basic-title{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
height: 42rpx;
|
||||
align-items: center;
|
||||
margin: 30rpx 40rpx 0 40rpx;
|
||||
}
|
||||
.basic-title-left{
|
||||
width: 6rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
.basic-title-right{
|
||||
color: #000000;
|
||||
font-size: 30rpx;
|
||||
margin-left: 14rpx;
|
||||
font-weight:500;
|
||||
}
|
||||
.basic-content{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.basic-content-line-one{
|
||||
height: 92rpx;
|
||||
margin: 12rpx 40rpx 0 40rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.basic-content-line-one-left{
|
||||
color: #303233;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.basic-content-line-one-right{
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
}
|
||||
.basic-content-line-two{
|
||||
height:2rpx;
|
||||
background:#F0F0F0;
|
||||
}
|
||||
.basic-content-line-three{
|
||||
width: 670rpx;
|
||||
height: 144rpx;
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
margin: 0 40rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
.basic-content-line-four{
|
||||
height:20rpx;
|
||||
background:#F0F0F0;
|
||||
}
|
||||
/* 基础信息结束 */
|
||||
/* 重试页面开始 */
|
||||
.error-block{
|
||||
height: 60%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: absolute;
|
||||
top: -10%;
|
||||
margin-top: 300rpx;
|
||||
}
|
||||
.retry_button{
|
||||
margin-top: 10rpx;
|
||||
border-radius: 10%;
|
||||
}
|
||||
/* 重试页面结束 */
|
||||
/* 主体结束 */
|
||||
108
pages/steady/steady.vue
Normal file
108
pages/steady/steady.vue
Normal file
@@ -0,0 +1,108 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<back :pageNameFlag="pageNameFlag" :pageName='pageName'></back>
|
||||
<view class="steady-block" v-if="errorFlag==0">
|
||||
<!-- 时间模块 -->
|
||||
<view class="time-block">
|
||||
<image src="/static/pic/time.png" class="time-pic"></image>
|
||||
<view class="time-text">
|
||||
{{showTime}}
|
||||
</view>
|
||||
</view>
|
||||
<!-- 基础信息 -->
|
||||
<view class="basic-block">
|
||||
<view class="basic-title">
|
||||
<image src="/static/pic/rectangle.png" class="basic-title-left"></image>
|
||||
<view class="basic-title-right">
|
||||
越限监测点列表
|
||||
</view>
|
||||
</view>
|
||||
<view class="basic-content" v-for="steadyState in steadyStateList" @click="jumpToSteadyDetails(showTime,steadyState.lineName,steadyState.lineIndex,steadyState.timeID)">
|
||||
<view class="basic-content-line-one">
|
||||
<view class="basic-content-line-one-left">
|
||||
{{steadyState.subName}},{{steadyState.lineName}}发生稳态越限
|
||||
<!-- {{steadyState.limitNum}}次 -->
|
||||
</view>
|
||||
<image class="basic-content-line-one-right" src="/static/pic/jump.png"></image>
|
||||
</view>
|
||||
<view class="basic-content-line-two"></view>
|
||||
<scroll-view class="basic-content-line-three" scroll-y="true">
|
||||
越限详情:{{steadyState.describe}}
|
||||
</scroll-view>
|
||||
<view class="basic-content-line-four"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="error-block" v-else>
|
||||
<view class="error-text">
|
||||
网络出错请重试
|
||||
</view>
|
||||
<button class="retry_button" @click="retry">重试</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import back from '../../components/back.vue';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
pageNameFlag:1,
|
||||
pageName:'越限监测点',
|
||||
radioFlag:0,
|
||||
errorFlag:0,
|
||||
steadyIndex:'',
|
||||
steadyStateList:[],
|
||||
showTime:''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
steadyStateInfo(){
|
||||
var that = this;
|
||||
uni.request({
|
||||
url: that.serverUrl+'/steadymsg/steadyStateInfo',
|
||||
method: 'POST',
|
||||
data: {
|
||||
steadyIndex: that.steadyIndex
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
sslVerify: false,
|
||||
success: (res) => {
|
||||
uni.hideLoading();
|
||||
if (res.data.resultCode == '10000') {
|
||||
that.steadyStateList = eval(res.data.data);
|
||||
} else {
|
||||
that.errorFlag = 1
|
||||
}
|
||||
},
|
||||
fail: (re) => {
|
||||
that.errorFlag = 1
|
||||
}
|
||||
});
|
||||
},
|
||||
jumpToSteadyDetails(showTime,lineName,lineIndex,timeID){
|
||||
uni.navigateTo({
|
||||
url:'../steadyDetails/steadyDetails?lineName='+lineName+"&showTime="+showTime+"&lineIndex="+lineIndex+"&timeID="+timeID
|
||||
})
|
||||
},
|
||||
retry(){
|
||||
this.errorFlag=0;
|
||||
this.steadyStateInfo();
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
this.steadyIndex = e.steadyIndex;
|
||||
this.showTime = e.showTime;
|
||||
this.steadyStateInfo();
|
||||
},
|
||||
components:{
|
||||
back
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url("steady.css");
|
||||
</style>
|
||||
Reference in New Issue
Block a user