feat: 首页
parent
1556f86b69
commit
4988300094
53
App.vue
53
App.vue
|
|
@ -1,32 +1,33 @@
|
|||
<script>
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
console.log('App Launch')
|
||||
},
|
||||
onShow: function() {
|
||||
console.log('App Show')
|
||||
},
|
||||
onHide: function() {
|
||||
console.log('App Hide')
|
||||
}
|
||||
}
|
||||
export default {
|
||||
onLaunch: function () {
|
||||
console.log('App Launch')
|
||||
},
|
||||
onShow: function () {
|
||||
console.log('App Show')
|
||||
},
|
||||
onHide: function () {
|
||||
console.log('App Hide')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
/*每个页面公共css */
|
||||
@import '@/uni_modules/uni-scss/index.scss';
|
||||
@import "@/uni_modules/uview-ui/index.scss";
|
||||
/* #ifndef APP-NVUE */
|
||||
@import '@/static/customicons.css';
|
||||
// 设置整个项目的背景色
|
||||
page {
|
||||
// background: linear-gradient(-180deg, #64acf0 0%, #ffffff 62%,#EEF3F6 70%);
|
||||
}
|
||||
/*每个页面公共css */
|
||||
@import '@/uni_modules/uni-scss/index.scss';
|
||||
@import '@/uni_modules/uview-ui/index.scss';
|
||||
/* #ifndef APP-NVUE */
|
||||
@import '@/static/customicons.css';
|
||||
// 设置整个项目的背景色
|
||||
page {
|
||||
// background: linear-gradient(-180deg, #64acf0 0%, #ffffff 62%,#EEF3F6 70%);
|
||||
background: #f3f5f8;
|
||||
}
|
||||
|
||||
/* #endif */
|
||||
.example-info {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
padding: 10px;
|
||||
}
|
||||
/* #endif */
|
||||
.example-info {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
padding: 10px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
22
pages.json
22
pages.json
|
|
@ -23,7 +23,27 @@
|
|||
// "navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
],
|
||||
],
|
||||
"tabBar":{
|
||||
"color":"#333333",
|
||||
"selectedColor":"#eb4450",
|
||||
"list":[{
|
||||
"pagePath":"pages/index/index",
|
||||
"iconPath":"/static/tabs/首页@2x.png",
|
||||
"selectedIconPath":"static/tabs/首页@2x.png",
|
||||
"text":"首页"
|
||||
},
|
||||
{
|
||||
"pagePath":"pages/homeIndx/index",
|
||||
"iconPath":"/static/tabs/首页@2x.png",
|
||||
"selectedIconPath":"static/tabs/首页@2x.png",
|
||||
"text":"首页"
|
||||
}
|
||||
|
||||
|
||||
|
||||
]
|
||||
},
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "uni-app",
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<div class="info_name">
|
||||
<div v-if="userList.data">{{ userList.data.userName }}</div>
|
||||
<div v-if="userList.data">
|
||||
{{ userList.data.orgList[0].positionList[0].positionName }}
|
||||
{{ userList.data.orgList[0].positionList[0].orgName || '' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
<div class="navList" v-for="(item, index) in navList" :key="index">
|
||||
<div class="navIcon">
|
||||
<image
|
||||
style="width: 50%; height: 50%"
|
||||
style="width: 100%; height: 100%"
|
||||
:src="item.icon"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
|
|
@ -37,8 +37,13 @@
|
|||
</view>
|
||||
<view class="warn">
|
||||
<image
|
||||
style="width: 16px; height: 16px; vertical-align: middle"
|
||||
src="../../static/tabs/orangewarn.png"
|
||||
style="
|
||||
width: 18rpx;
|
||||
height: 22rpx;
|
||||
margin-right: 16rpx;
|
||||
vertical-align: middle;
|
||||
"
|
||||
src="../../static/tabs/铃铛@2x.png"
|
||||
mode="aspectFit"
|
||||
></image
|
||||
><span>当前防汛应急响应:IV级</span>
|
||||
|
|
@ -211,27 +216,27 @@ const navList = [
|
|||
{
|
||||
value: '雨情',
|
||||
key: 1,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
icon: '../../static/tabs/形状 1@2x.png'
|
||||
},
|
||||
{
|
||||
value: '水情',
|
||||
key: 2,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
icon: '../../static/tabs/water (1) 拷贝@2x.png'
|
||||
},
|
||||
{
|
||||
value: '工情灾情',
|
||||
key: 3,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
icon: '../../static/tabs/工情——icon@2x.png'
|
||||
},
|
||||
{
|
||||
value: '信息上报',
|
||||
key: 4,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
icon: '../../static/tabs/xinxi_icon@2x.png'
|
||||
},
|
||||
{
|
||||
value: '预警',
|
||||
key: 5,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
icon: '../../static/tabs/yujing_icon@2x.png'
|
||||
}
|
||||
]
|
||||
|
||||
|
|
@ -381,6 +386,8 @@ export default {
|
|||
}
|
||||
.navBar {
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
margin-bottom: 12rpx;
|
||||
/* background-color: pink; */
|
||||
}
|
||||
.navBar {
|
||||
|
|
@ -396,17 +403,18 @@ export default {
|
|||
.navIcon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 10px;
|
||||
background-color: #007afd;
|
||||
/* border-radius: 10px;
|
||||
background-color: #007afd; */
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.warn {
|
||||
background-color: #f8dbaf;
|
||||
background-color: #fff;
|
||||
color: #de2433;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
padding: 18rpx 20rpx;
|
||||
text-align: left;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
|
||||
/* 24小时 */
|
||||
|
|
@ -440,6 +448,8 @@ export default {
|
|||
/* info_24 */
|
||||
.info_24 {
|
||||
padding: 20px;
|
||||
background-color: #fff;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
.heart {
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -1,200 +1,8 @@
|
|||
<template>
|
||||
<view class="container">
|
||||
<!-- 个人信息 -->
|
||||
<view class="info">
|
||||
<div class="left">
|
||||
<div class="icon">
|
||||
<image
|
||||
style="width: 100%; height: 100%"
|
||||
src="../../static/tabs/user.png"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
</div>
|
||||
<div class="info_name">
|
||||
<div v-if="userList.data">{{ userList.data.userName }}</div>
|
||||
<div v-if="userList.data">
|
||||
{{ userList.data.orgList[0].positionList[0].positionName }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div>{{ monthDay }}</div>
|
||||
<div>{{ dataType[dayOfWeek] }}</div>
|
||||
</div>
|
||||
</view>
|
||||
<!-- nav -->
|
||||
<view class="navBar">
|
||||
<div class="navList" v-for="(item, index) in navList" :key="index">
|
||||
<div class="navIcon">
|
||||
<image
|
||||
style="width: 50%; height: 50%"
|
||||
:src="item.icon"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
</div>
|
||||
<div class="navTxt">{{ item.value }}</div>
|
||||
</div>
|
||||
</view>
|
||||
<view class="warn">
|
||||
<image
|
||||
style="width: 16px; height: 16px; vertical-align: middle"
|
||||
src="../../static/tabs/orangewarn.png"
|
||||
mode="aspectFit"
|
||||
></image
|
||||
><span>当前防汛应急响应:IV级</span>
|
||||
</view>
|
||||
|
||||
<!-- 24小时综述 -->
|
||||
<view class="info_24">
|
||||
<div class="heart">
|
||||
<h4>24小时综述</h4>
|
||||
<div class="time">{{ ydate }}至{{ date }}</div>
|
||||
</div>
|
||||
<div class="info_con" v-if="list.data">
|
||||
<span class="g1">{{ list.data.yesterday }}</span
|
||||
>至<span class="g1">{{ list.data.today }}</span
|
||||
>24小时中共有<span class="ye">{{ list.data.stationNum }}</span
|
||||
>个降雨测站(山洪测站<span class="ye">{{ list.data.shStationNum }}</span
|
||||
>个),其中最大降雨测站为<span class="ye">{{
|
||||
list.data.maxRain.stnm || '-'
|
||||
}}</span
|
||||
>,降雨量<span class="ye">{{ list.data.maxRain.drp || '-' }}</span
|
||||
>mm,
|
||||
<template v-if="list.data.cntDrp10 != 0"
|
||||
><span class="b1">10mm</span>以下测站数为<apan class="ye">{{
|
||||
list.data.cntDrp10
|
||||
}}</apan
|
||||
>个。</template
|
||||
><template v-if="list.data.cntDrp25 != 0"
|
||||
><span class="b1">10mm至25mm</span>以下测站数为<span class="ye">{{
|
||||
list.data.cntDrp25
|
||||
}}</span
|
||||
>个。</template
|
||||
>
|
||||
<template v-if="list.data.cntDrp50 != 0">
|
||||
<span class="b1">25mm至50mm</span>以下测站数为<span class="ye">{{
|
||||
list.data.cntDrp50
|
||||
}}</span
|
||||
>个。
|
||||
</template>
|
||||
<template v-if="list.data.cntDrp100 != 0">
|
||||
<span class="b1">50mm至100mm</span>以下测站数为<span class="ye">{{
|
||||
list.data.cntDrp100
|
||||
}}</span
|
||||
>个。
|
||||
</template>
|
||||
<template v-if="list.data.cntDrp250 != 0">
|
||||
<span class="b1">100mm至250mm</span>以下测站数为<span class="ye">{{
|
||||
list.data.cntDrp250
|
||||
}}</span
|
||||
>个。
|
||||
</template>
|
||||
<template v-if="list.data.cntDrpg250 != 0"
|
||||
><span class="b1">250mm以上</span>以下测站数为<span class="ye">{{
|
||||
list.data.cntDrpg250
|
||||
}}</span
|
||||
>个。</template
|
||||
>
|
||||
</div>
|
||||
</view>
|
||||
<view class="info_24">
|
||||
<div class="heart">
|
||||
<h4>24h天气预报</h4>
|
||||
<div>
|
||||
<span class="time">{{ ydate }}至{{ date }}</span>
|
||||
<image
|
||||
style="width: 16px; height: 16px; vertical-align: middle"
|
||||
src="../../static/tabs/panelTitle.png"
|
||||
mode="aspectFit"
|
||||
@click="changeTable"
|
||||
></image>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="imgs"
|
||||
style="height: 300px; background-color: pink; text-align: center"
|
||||
>
|
||||
<!-- 24h天气预报图像-->
|
||||
<image
|
||||
v-if="!changeBool"
|
||||
src="../../static/tabs/bigImg.png"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
<!-- 表格-->
|
||||
<div v-else class="tableBox">
|
||||
<div class="table_h">
|
||||
<div
|
||||
class="leftTab"
|
||||
:class="{ activetextTypeTab: showTextTypeTab == 1 }"
|
||||
>
|
||||
水库降雨
|
||||
</div>
|
||||
<div
|
||||
class="rightTab"
|
||||
:class="{ activetextTypeTab: showTextTypeTab == 2 }"
|
||||
>
|
||||
区域降雨
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</view>
|
||||
|
||||
<view class="info_24">
|
||||
<div class="heart">
|
||||
<h4>短时天气预报</h4>
|
||||
<div class="time">04月25日08时 至 04月25日10时</div>
|
||||
</div>
|
||||
<div
|
||||
class="imgs"
|
||||
style="height: 300px; background-color: pink; text-align: center"
|
||||
>
|
||||
<image src="../../static/tabs/bigImg.png" mode="aspectFit"></image>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
<view class="container"> page/index </view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
const dataType = {
|
||||
Monday: '星期一',
|
||||
Tuesday: '星期二',
|
||||
Wednesday: '星期三',
|
||||
Thursday: '星期四',
|
||||
Thursday: '星期五',
|
||||
Saturday: '星期六',
|
||||
Sunday: '星期天'
|
||||
}
|
||||
|
||||
const navList = [
|
||||
{
|
||||
value: '雨情',
|
||||
key: 1,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
},
|
||||
{
|
||||
value: '水情',
|
||||
key: 2,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
},
|
||||
{
|
||||
value: '工情灾情',
|
||||
key: 3,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
},
|
||||
{
|
||||
value: '信息上报',
|
||||
key: 4,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
},
|
||||
{
|
||||
value: '预警',
|
||||
key: 5,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
}
|
||||
]
|
||||
|
||||
import moment from 'moment'
|
||||
|
||||
export default {
|
||||
|
|
@ -225,164 +33,12 @@ export default {
|
|||
} catch (e) {
|
||||
uni.$showMsg()
|
||||
}
|
||||
},
|
||||
async getOverview () {
|
||||
try {
|
||||
let res = await uni.$http.get(
|
||||
'/gunshiApp/xfflood/real/rain/overview?_=1717039224475'
|
||||
)
|
||||
console.log('--2-', res)
|
||||
this.list = res.data
|
||||
|
||||
console.log('--2-', res)
|
||||
} catch (e) {
|
||||
uni.$showMsg()
|
||||
}
|
||||
},
|
||||
changeTable (val) {
|
||||
this.changeBool = !this.changeBool
|
||||
console.log('this.changeBool', this.changeBool)
|
||||
},
|
||||
getDataTime () {
|
||||
this.monthDay = moment().format('MM月DD日')
|
||||
this.dayOfWeek = moment().format('dddd')
|
||||
this.date = moment().format('MM月DD日HH时')
|
||||
this.ydate = moment().subtract(1, 'days').format('MM月DD日HH时')
|
||||
console.log('moment11', this.date, this.ydate)
|
||||
}
|
||||
},
|
||||
onLoad () {
|
||||
this.getSwiperList()
|
||||
this.getOverview()
|
||||
this.getDataTime()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.container {
|
||||
font-size: 14px;
|
||||
line-height: 24px;
|
||||
}
|
||||
.info {
|
||||
height: 100rpx;
|
||||
background-color: #007afd;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20px;
|
||||
color: #fff;
|
||||
}
|
||||
.left {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
}
|
||||
.icon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
background-color: #fff;
|
||||
text-align: center;
|
||||
color: #007afd;
|
||||
line-height: 50px;
|
||||
}
|
||||
.info_name {
|
||||
margin-left: 16rpx;
|
||||
}
|
||||
.right {
|
||||
text-align: center;
|
||||
}
|
||||
.navBar {
|
||||
height: 100%;
|
||||
/* background-color: pink; */
|
||||
}
|
||||
.navBar {
|
||||
padding: 20px;
|
||||
/* text-align: center; */
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.navList {
|
||||
text-align: center;
|
||||
}
|
||||
.navIcon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 10px;
|
||||
background-color: #007afd;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.warn {
|
||||
background-color: #f8dbaf;
|
||||
color: #de2433;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* info_24 */
|
||||
.info_24 {
|
||||
padding: 20px;
|
||||
}
|
||||
.heart {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.fl {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.time {
|
||||
color: #ccc;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.g1 {
|
||||
color: #18d310;
|
||||
}
|
||||
.ye {
|
||||
color: #f9c36f;
|
||||
/* font-weight: 600; */
|
||||
}
|
||||
.b1 {
|
||||
color: #00cdee;
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
.uni-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
/* 表格 */
|
||||
.tableBox {
|
||||
position: relative;
|
||||
}
|
||||
.tableBox .table_h {
|
||||
display: flex;
|
||||
text-align: center;
|
||||
height: 24px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
.leftTab {
|
||||
width: 80px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 3px 0 0 3px;
|
||||
/* border-right: 0; */
|
||||
}
|
||||
.rightTab {
|
||||
width: 80px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 0 3px 3px 0;
|
||||
border-left: 0;
|
||||
}
|
||||
.activetextTypeTab {
|
||||
background-color: #007afd;
|
||||
}
|
||||
</style>
|
||||
<style lang="scss" scoped></style>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
<template>
|
||||
<div>我的</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
||||
<style lang="scss" scoped></style>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -13,5 +13,23 @@
|
|||
"backgroundColorTop": "transparent",
|
||||
"navigationStyle": "custom"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#333333",
|
||||
"selectedColor": "#eb4450",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"iconPath": "/static/tabs/首页@2x.png",
|
||||
"selectedIconPath": "static/tabs/首页@2x.png",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/homeIndx/index",
|
||||
"iconPath": "/static/tabs/首页@2x.png",
|
||||
"selectedIconPath": "static/tabs/首页@2x.png",
|
||||
"text": "首页"
|
||||
}
|
||||
]
|
||||
},
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
|
@ -2583,6 +2583,9 @@
|
|||
-webkit-appearance: none;
|
||||
background: transparent;
|
||||
}
|
||||
page {
|
||||
background: #f3f5f8;
|
||||
}
|
||||
.example-info {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
|
|
|
|||
|
|
@ -345,6 +345,11 @@ var _dataType;
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
var dataType = (_dataType = {
|
||||
Monday: '星期一',
|
||||
|
|
@ -355,23 +360,23 @@ var dataType = (_dataType = {
|
|||
var navList = [{
|
||||
value: '雨情',
|
||||
key: 1,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
icon: '../../static/tabs/形状 1@2x.png'
|
||||
}, {
|
||||
value: '水情',
|
||||
key: 2,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
icon: '../../static/tabs/water (1) 拷贝@2x.png'
|
||||
}, {
|
||||
value: '工情灾情',
|
||||
key: 3,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
icon: '../../static/tabs/工情——icon@2x.png'
|
||||
}, {
|
||||
value: '信息上报',
|
||||
key: 4,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
icon: '../../static/tabs/xinxi_icon@2x.png'
|
||||
}, {
|
||||
value: '预警',
|
||||
key: 5,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
icon: '../../static/tabs/yujing_icon@2x.png'
|
||||
}];
|
||||
var _default = {
|
||||
data: function data() {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -34,6 +34,8 @@
|
|||
}
|
||||
.navBar.data-v-45013598 {
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
margin-bottom: 12rpx;
|
||||
/* background-color: pink; */
|
||||
}
|
||||
.navBar.data-v-45013598 {
|
||||
|
|
@ -49,17 +51,18 @@
|
|||
.navIcon.data-v-45013598 {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 10px;
|
||||
background-color: #007afd;
|
||||
/* border-radius: 10px;
|
||||
background-color: #007afd; */
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.warn.data-v-45013598 {
|
||||
background-color: #f8dbaf;
|
||||
background-color: #fff;
|
||||
color: #de2433;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
padding: 18rpx 20rpx;
|
||||
text-align: left;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
/* 24小时 */
|
||||
.chartChange.data-v-45013598 {
|
||||
|
|
@ -88,7 +91,9 @@
|
|||
}
|
||||
/* info_24 */
|
||||
.info_24.data-v-45013598 {
|
||||
padding: 20px;
|
||||
padding: 20px;
|
||||
background-color: #fff;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
.heart.data-v-45013598 {
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -33,18 +33,16 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony import */ var _index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=57280228&scoped=true& */ 315);
|
||||
/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 317);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=0&id=57280228&scoped=true&lang=css& */ 319);
|
||||
/* harmony import */ var _C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 157);
|
||||
/* harmony import */ var _C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 157);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
||||
var component = Object(_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
|
|
@ -144,195 +142,11 @@ Object.defineProperty(exports, "__esModule", {
|
|||
exports.default = void 0;
|
||||
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 49));
|
||||
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 51));
|
||||
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
||||
var _moment = _interopRequireDefault(__webpack_require__(/*! moment */ 165));
|
||||
var _dataType;
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
var dataType = (_dataType = {
|
||||
Monday: '星期一',
|
||||
Tuesday: '星期二',
|
||||
Wednesday: '星期三',
|
||||
Thursday: '星期四'
|
||||
}, (0, _defineProperty2.default)(_dataType, "Thursday", '星期五'), (0, _defineProperty2.default)(_dataType, "Saturday", '星期六'), (0, _defineProperty2.default)(_dataType, "Sunday", '星期天'), _dataType);
|
||||
var navList = [{
|
||||
value: '雨情',
|
||||
key: 1,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
}, {
|
||||
value: '水情',
|
||||
key: 2,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
}, {
|
||||
value: '工情灾情',
|
||||
key: 3,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
}, {
|
||||
value: '信息上报',
|
||||
key: 4,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
}, {
|
||||
value: '预警',
|
||||
key: 5,
|
||||
icon: '../../static/tabs/ysgzq.png'
|
||||
}];
|
||||
var _default = {
|
||||
data: function data() {
|
||||
return {
|
||||
|
|
@ -380,87 +194,15 @@ var _default = {
|
|||
}
|
||||
}, _callee, null, [[0, 9]]);
|
||||
}))();
|
||||
},
|
||||
getOverview: function getOverview() {
|
||||
var _this2 = this;
|
||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
||||
var res;
|
||||
return _regenerator.default.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
_context2.prev = 0;
|
||||
_context2.next = 3;
|
||||
return uni.$http.get('/gunshiApp/xfflood/real/rain/overview?_=1717039224475');
|
||||
case 3:
|
||||
res = _context2.sent;
|
||||
console.log('--2-', res);
|
||||
_this2.list = res.data;
|
||||
console.log('--2-', res);
|
||||
_context2.next = 12;
|
||||
break;
|
||||
case 9:
|
||||
_context2.prev = 9;
|
||||
_context2.t0 = _context2["catch"](0);
|
||||
uni.$showMsg();
|
||||
case 12:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}
|
||||
}, _callee2, null, [[0, 9]]);
|
||||
}))();
|
||||
},
|
||||
changeTable: function changeTable(val) {
|
||||
this.changeBool = !this.changeBool;
|
||||
console.log('this.changeBool', this.changeBool);
|
||||
},
|
||||
getDataTime: function getDataTime() {
|
||||
this.monthDay = (0, _moment.default)().format('MM月DD日');
|
||||
this.dayOfWeek = (0, _moment.default)().format('dddd');
|
||||
this.date = (0, _moment.default)().format('MM月DD日HH时');
|
||||
this.ydate = (0, _moment.default)().subtract(1, 'days').format('MM月DD日HH时');
|
||||
console.log('moment11', this.date, this.ydate);
|
||||
}
|
||||
},
|
||||
onLoad: function onLoad() {
|
||||
this.getSwiperList();
|
||||
this.getOverview();
|
||||
this.getDataTime();
|
||||
}
|
||||
};
|
||||
exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 319:
|
||||
/*!**************************************************************************************************************!*\
|
||||
!*** E:/workspace/xffxkh-app/pages/index/index.vue?vue&type=style&index=0&id=57280228&scoped=true&lang=css& ***!
|
||||
\**************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=57280228&scoped=true&lang=css& */ 320);
|
||||
/* harmony import */ var _C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_myApp_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 320:
|
||||
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!E:/workspace/xffxkh-app/pages/index/index.vue?vue&type=style&index=0&id=57280228&scoped=true&lang=css& ***!
|
||||
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// extracted by mini-css-extract-plugin
|
||||
if(false) { var cssReload; }
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[313,"common/runtime","common/vendor"]]]);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
|
|
@ -1 +0,0 @@
|
|||
Component({})
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
<view class="u-table data-v-63620257"></view>
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
@charset "UTF-8";
|
||||
/* 水平间距 */
|
||||
/* 水平间距 */
|
||||
/* uni.scss */
|
||||
view.data-v-63620257, scroll-view.data-v-63620257, swiper-item.data-v-63620257 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
Component({})
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
<view class="u-td data-v-1bb44eae"></view>
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
@charset "UTF-8";
|
||||
/* 水平间距 */
|
||||
/* 水平间距 */
|
||||
/* uni.scss */
|
||||
view.data-v-1bb44eae, scroll-view.data-v-1bb44eae, swiper-item.data-v-1bb44eae {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
Component({})
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
<view class="u-tr data-v-4eef5169"></view>
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
@charset "UTF-8";
|
||||
/* 水平间距 */
|
||||
/* 水平间距 */
|
||||
/* uni.scss */
|
||||
view.data-v-4eef5169, scroll-view.data-v-4eef5169, swiper-item.data-v-4eef5169 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue