|
|
@ -2,13 +2,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
<view class="zhuye">
|
|
|
|
<view class="zhuye">
|
|
|
|
<meta name="viewport"
|
|
|
|
<meta name="viewport"
|
|
|
|
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
|
|
|
|
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
|
|
|
<LoadingPage :loading="loading"></LoadingPage>
|
|
|
|
<LoadingPage :loading="loading"></LoadingPage>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- //导航栏 -->
|
|
|
|
<!-- //导航栏 -->
|
|
|
|
<!-- <u-navbar bgColor="#ffffff" :placeholder="true" titleStyle="font-weight:600" title="首页" :autoBack="true">
|
|
|
|
<u-navbar bgColor="#ffffff" :placeholder="true" titleStyle="font-weight:600" title="首页" :autoBack="true">
|
|
|
|
|
|
|
|
<template #left>
|
|
|
|
</u-navbar> -->
|
|
|
|
<image src='../static/back.png' style="width: 36rpx;height: 36rpx;" @click="goback">
|
|
|
|
|
|
|
|
</image>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</u-navbar>
|
|
|
|
|
|
|
|
|
|
|
|
<view v-show="!loading">
|
|
|
|
<view v-show="!loading">
|
|
|
|
<view class="swiper">
|
|
|
|
<view class="swiper">
|
|
|
@ -23,7 +26,8 @@
|
|
|
|
<u-grid-item v-for="(item, index) in indexQuanXian" :key="index" :name="item.path">
|
|
|
|
<u-grid-item v-for="(item, index) in indexQuanXian" :key="index" :name="item.path">
|
|
|
|
<view class="grid-item-box1">
|
|
|
|
<view class="grid-item-box1">
|
|
|
|
<image :src="`${item.pic}`" style="width: 70rpx; height: 70rpx;" />
|
|
|
|
<image :src="`${item.pic}`" style="width: 70rpx; height: 70rpx;" />
|
|
|
|
<text style=" font-size: 26rpx;font-family: Noto Sans S Chinese;font-weight: 400;color: #212121;margin-top: 10rpx;">{{ item.menuName }}</text>
|
|
|
|
<text
|
|
|
|
|
|
|
|
style=" font-size: 26rpx;font-family: Noto Sans S Chinese;font-weight: 400;color: #212121;margin-top: 10rpx;">{{ item.menuName }}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</u-grid-item>
|
|
|
|
</u-grid-item>
|
|
|
|
</u-grid>
|
|
|
|
</u-grid>
|
|
|
@ -31,7 +35,9 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="box">
|
|
|
|
<view class="box">
|
|
|
|
<view class="notice-body" style="margin-top: 15rpx;" @click="goToPage(3)">
|
|
|
|
<view class="notice-body" style="margin-top: 15rpx;" @click="goToPage(3)">
|
|
|
|
<view class="notice"><image src="../static/images/zhuye/notice.png" alt=""></image></view>
|
|
|
|
<view class="notice">
|
|
|
|
|
|
|
|
<image src="../static/images/zhuye/notice.png" alt=""></image>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
<u-notice-bar color="#212121" bgColor="#FFFFFFF" icon=" " :text="gonggao"></u-notice-bar>
|
|
|
|
<u-notice-bar color="#212121" bgColor="#FFFFFFF" icon=" " :text="gonggao"></u-notice-bar>
|
|
|
|
<u-icon name="arrow-right" color="#2979ff" size="20"></u-icon>
|
|
|
|
<u-icon name="arrow-right" color="#2979ff" size="20"></u-icon>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
@ -46,12 +52,14 @@
|
|
|
|
<view style="margin-top: 18rpx;">{{ phoCall }}</view>
|
|
|
|
<view style="margin-top: 18rpx;">{{ phoCall }}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<swiper v-if="showYj >= 0 && !list1.length == '0'" style="height: 210rpx;" class="new box" :autoplay="true" :interval="3000" :circular="true">
|
|
|
|
<swiper v-if="showYj >= 0 && !list1.length == '0'" style="height: 210rpx;" class="new box" :autoplay="true"
|
|
|
|
|
|
|
|
:interval="3000" :circular="true">
|
|
|
|
<swiper-item v-for="(item, index) in list1" :key="index" @click="goToPage(4, item)">
|
|
|
|
<swiper-item v-for="(item, index) in list1" :key="index" @click="goToPage(4, item)">
|
|
|
|
<view style="background-color: #fff;width: 100%;">
|
|
|
|
<view style="background-color: #fff;width: 100%;">
|
|
|
|
<!-- 头部 -->
|
|
|
|
<!-- 头部 -->
|
|
|
|
<view class="sortHead">
|
|
|
|
<view class="sortHead">
|
|
|
|
<image src="../static/images/Yjplan/sort.png" style="width: 36rpx;height: 36rpx;margin-right: 22rpx;"></image>
|
|
|
|
<image src="../static/images/Yjplan/sort.png"
|
|
|
|
|
|
|
|
style="width: 36rpx;height: 36rpx;margin-right: 22rpx;"></image>
|
|
|
|
<span class="sortTitle">{{ index + 1 }}.{{ item.houseName }}</span>
|
|
|
|
<span class="sortTitle">{{ index + 1 }}.{{ item.houseName }}</span>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- 卡片 -->
|
|
|
|
<!-- 卡片 -->
|
|
|
@ -72,7 +80,8 @@
|
|
|
|
<view style="background-color: #fff;width: 100%;">
|
|
|
|
<view style="background-color: #fff;width: 100%;">
|
|
|
|
<!-- 头部 -->
|
|
|
|
<!-- 头部 -->
|
|
|
|
<view class="sortHead">
|
|
|
|
<view class="sortHead">
|
|
|
|
<image src="../static/images/Yjplan/sort.png" style="width: 36rpx;height: 36rpx;margin-right: 22rpx;"></image>
|
|
|
|
<image src="../static/images/Yjplan/sort.png"
|
|
|
|
|
|
|
|
style="width: 36rpx;height: 36rpx;margin-right: 22rpx;"></image>
|
|
|
|
<span class="sortTitle">最近一次演练计划</span>
|
|
|
|
<span class="sortTitle">最近一次演练计划</span>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- 卡片 -->
|
|
|
|
<!-- 卡片 -->
|
|
|
@ -82,13 +91,17 @@
|
|
|
|
<view class="content" style="border-left: 13rpx #FFD777 solid;margin-left: 4rpx; ">
|
|
|
|
<view class="content" style="border-left: 13rpx #FFD777 solid;margin-left: 4rpx; ">
|
|
|
|
<view class="name">{{ backlog.drillName }}</view>
|
|
|
|
<view class="name">{{ backlog.drillName }}</view>
|
|
|
|
<view class="address" style="display: flex;align-items: center;">
|
|
|
|
<view class="address" style="display: flex;align-items: center;">
|
|
|
|
<image src="../static/images/drill/adress.png" style="width: 24rpx;height: 24rpx;margin-right: 5rpx;" />
|
|
|
|
<image src="../static/images/drill/adress.png"
|
|
|
|
|
|
|
|
style="width: 24rpx;height: 24rpx;margin-right: 5rpx;" />
|
|
|
|
{{ backlog.drillAddress }}
|
|
|
|
{{ backlog.drillAddress }}
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="content">
|
|
|
|
<view class="content">
|
|
|
|
<view class="name" style="color: #df4d63;font-weight: 600;">{{ backlog.text4 }}</view>
|
|
|
|
<view class="name" style="color: #df4d63;font-weight: 600;">{{ backlog.text4 }}
|
|
|
|
<view class="address" style="display: flex;align-items: center;">{{ backlog.drillDate }}</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="address" style="display: flex;align-items: center;">
|
|
|
|
|
|
|
|
{{ backlog.drillDate }}
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
@ -173,17 +186,30 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { backlog } from '@/api/indexpage/YJDrill/index.js';
|
|
|
|
import {
|
|
|
|
//权限控制
|
|
|
|
backlog
|
|
|
|
import auth from '@/plugins/auth.js';
|
|
|
|
} from '@/api/indexpage/YJDrill/index.js';
|
|
|
|
//车辆预警
|
|
|
|
//权限控制
|
|
|
|
import { getUserProfile, listCountByAll, listNotice, getConfigKey, getLessNum } from '@/api/indexpage/user.js';
|
|
|
|
import auth from '@/plugins/auth.js';
|
|
|
|
import { appMenuShowInfo, sendList } from '@/api/menu.js';
|
|
|
|
//车辆预警
|
|
|
|
// import { getFzTask, getNoReadMessage } from '@/api/indexpage/mine.js';
|
|
|
|
import {
|
|
|
|
import Tabbar from '@/components/tabbar/tabbar.vue';
|
|
|
|
getUserProfile,
|
|
|
|
import update from '@/components/update/update.vue';
|
|
|
|
listCountByAll,
|
|
|
|
import { dateFormat } from '@/minix/timeCommon.js';
|
|
|
|
listNotice,
|
|
|
|
export default {
|
|
|
|
getConfigKey,
|
|
|
|
|
|
|
|
getLessNum
|
|
|
|
|
|
|
|
} from '@/api/indexpage/user.js';
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
appMenuShowInfo,
|
|
|
|
|
|
|
|
sendList
|
|
|
|
|
|
|
|
} from '@/api/menu.js';
|
|
|
|
|
|
|
|
// import { getFzTask, getNoReadMessage } from '@/api/indexpage/mine.js';
|
|
|
|
|
|
|
|
import Tabbar from '@/components/tabbar/tabbar.vue';
|
|
|
|
|
|
|
|
import update from '@/components/update/update.vue';
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
dateFormat
|
|
|
|
|
|
|
|
} from '@/minix/timeCommon.js';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'index',
|
|
|
|
name: 'index',
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
Tabbar,
|
|
|
|
Tabbar,
|
|
|
@ -236,10 +262,13 @@ export default {
|
|
|
|
this.getConfigKeyData();
|
|
|
|
this.getConfigKeyData();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
goback() {
|
|
|
|
|
|
|
|
window.history.back()
|
|
|
|
|
|
|
|
},
|
|
|
|
getYanLian() {
|
|
|
|
getYanLian() {
|
|
|
|
backlog().then(res => {
|
|
|
|
backlog().then(res => {
|
|
|
|
this.backlog = res[0];
|
|
|
|
this.backlog = res[0];
|
|
|
|
if(this.backlog==null){
|
|
|
|
if (this.backlog == null) {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -259,7 +288,8 @@ export default {
|
|
|
|
//D:/公司代码/公司代码20230829/华北石油局/
|
|
|
|
//D:/公司代码/公司代码20230829/华北石油局/
|
|
|
|
this.$tab.navigateTo(`/pages/GongGao/GongGao`);
|
|
|
|
this.$tab.navigateTo(`/pages/GongGao/GongGao`);
|
|
|
|
} else if (bs === 4) {
|
|
|
|
} else if (bs === 4) {
|
|
|
|
this.$tab.navigateTo(`/pages/indexpage/YJgoods/wzYvJing/wzYvJing?ckId=${item.houseId}&ckName=${item.houseName}`);
|
|
|
|
this.$tab.navigateTo(
|
|
|
|
|
|
|
|
`/pages/indexpage/YJgoods/wzYvJing/wzYvJing?ckId=${item.houseId}&ckName=${item.houseName}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getGongGao() {
|
|
|
|
getGongGao() {
|
|
|
@ -328,10 +358,10 @@ export default {
|
|
|
|
this.$tab.navigateTo(path);
|
|
|
|
this.$tab.navigateTo(path);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.u-nav-slot {
|
|
|
|
.u-nav-slot {
|
|
|
|
width: 100vw;
|
|
|
|
width: 100vw;
|
|
|
|
padding: 0 30rpx;
|
|
|
|
padding: 0 30rpx;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
@ -354,15 +384,15 @@ export default {
|
|
|
|
font-weight: 400;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #333333;
|
|
|
|
color: #333333;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
page {
|
|
|
|
page {
|
|
|
|
background-color: #f6f7fb;
|
|
|
|
background-color: #f6f7fb;
|
|
|
|
box-sizing: border-box !important;
|
|
|
|
box-sizing: border-box !important;
|
|
|
|
// background: linear-gradient(0deg, #E1E5FD, #F6F7FB) !important;
|
|
|
|
// background: linear-gradient(0deg, #E1E5FD, #F6F7FB) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sortHead {
|
|
|
|
.sortHead {
|
|
|
|
background-color: #fff;
|
|
|
|
background-color: #fff;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
font-weight: 600;
|
|
|
|
font-weight: 600;
|
|
|
@ -376,9 +406,9 @@ page {
|
|
|
|
color: #333333;
|
|
|
|
color: #333333;
|
|
|
|
line-height: 40rpx;
|
|
|
|
line-height: 40rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sortCard {
|
|
|
|
.sortCard {
|
|
|
|
padding: 0 10rpx;
|
|
|
|
padding: 0 10rpx;
|
|
|
|
padding-bottom: 10rpx;
|
|
|
|
padding-bottom: 10rpx;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
@ -453,13 +483,13 @@ page {
|
|
|
|
line-height: 40rpx;
|
|
|
|
line-height: 40rpx;
|
|
|
|
padding: 0 40rpx;
|
|
|
|
padding: 0 40rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.box1 .u-badge--not-dot {
|
|
|
|
.box1 .u-badge--not-dot {
|
|
|
|
padding: 5px 8px;
|
|
|
|
padding: 5px 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.zhuye {
|
|
|
|
.zhuye {
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
.swiper {
|
|
|
|
.swiper {
|
|
|
@ -715,5 +745,5 @@ page {
|
|
|
|
// margin: 10rpx 0;
|
|
|
|
// margin: 10rpx 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|