|
@@ -1,36 +1,130 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<!-- 首页 -->
|
|
|
- <div class="dashboard-text">这个是首页</div>
|
|
|
+ <div class="block">
|
|
|
+ <el-carousel trigger="click" autoplay :interval="3000" :arrow='never'>
|
|
|
+ <el-carousel-item v-for="item in urlList" :key="item.id">
|
|
|
+ <img :src="item.bannerUrl" alt="" width="100%" />
|
|
|
+ </el-carousel-item>
|
|
|
+ </el-carousel>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="announce">
|
|
|
+ <div class="announceL">
|
|
|
+ <div class="box">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="announceR">
|
|
|
+ <el-tabs v-model="activeName" @tab-click="handleClick" stretch>
|
|
|
+ <el-tab-pane label="服务网点" name="first" :style="{fontSize:'25px'}">
|
|
|
+ <p><span class="iconfont iconwushuichulichang2"> </span> 马边彝族自治县民建镇东光大道435号</p>
|
|
|
+ <p><span class="iconfont iconcbjhgl1"> </span> 周一至周六8:30—17:00(法定节假日除外)</p>
|
|
|
+ <p> 028-2565458</p>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="停水通知" name="second"><p>停水通知</p></el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="outLink">
|
|
|
+ https://www.h2o-china.com
|
|
|
+ </div>
|
|
|
+ <div class="outWork">
|
|
|
+ <div class="outWorkL">
|
|
|
+ <h3>--------- 信息公开 ---------</h3>
|
|
|
+ </div>
|
|
|
+ <div class="outWorkR"></div>
|
|
|
+ </div>
|
|
|
+ <!-- 回到顶部 -->
|
|
|
+ <!-- <el-backtop target=".page-component__scroll .el-scrollbar__wrap" :bottom="100">
|
|
|
+ <div
|
|
|
+ :style="{
|
|
|
+ height: '100%',
|
|
|
+ width: '100%',
|
|
|
+ backgroundColor: '#f2f5f6',
|
|
|
+ boxShadow: '0 0 6px rgba(0,0,0, .12)',
|
|
|
+ textAlign: 'center',
|
|
|
+ lineHeight: '40px',
|
|
|
+ color: '#1989fa',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ UP
|
|
|
+ </div>
|
|
|
+ </el-backtop> -->
|
|
|
</div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { client } from '@/utils/index'
|
|
|
+import { client } from "@/utils/index";
|
|
|
|
|
|
export default {
|
|
|
- name: 'Dashboard',
|
|
|
+ name: "Dashboard",
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- }
|
|
|
+ urlList: [
|
|
|
+ { bannerUrl: require("./images/u6.jpg"), id: 1 },
|
|
|
+ { bannerUrl: require("./images/u6.jpg"), id: 1 },
|
|
|
+ { bannerUrl: require("./images/u6.jpg"), id: 1 },
|
|
|
+ ],
|
|
|
+ activeName: 'first'
|
|
|
+ };
|
|
|
},
|
|
|
computed: {
|
|
|
dialogWidthHeight() {
|
|
|
- return [client().width * 0.8 + 'px', client().height * 0.79 + 'px']
|
|
|
- }
|
|
|
- },
|
|
|
- mounted() {
|
|
|
+ return [client().width * 0.8 + "px", client().height * 0.79 + "px"];
|
|
|
+ },
|
|
|
},
|
|
|
+ mounted() {},
|
|
|
methods: {
|
|
|
-
|
|
|
- }
|
|
|
-}
|
|
|
+ handleClick(tab, event) {
|
|
|
+ console.log(tab, event);
|
|
|
+ }
|
|
|
+ },
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.app-container{
|
|
|
+.app-container {
|
|
|
width: 100%;
|
|
|
background-size: 100% 100%;
|
|
|
+ padding: 0;
|
|
|
+}
|
|
|
+.announce{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ // align-items: center;
|
|
|
+ margin-top: 40px;
|
|
|
+ padding: 0 30px;
|
|
|
+}
|
|
|
+.announceL{
|
|
|
+ flex: 1;
|
|
|
+ height: 400px;
|
|
|
+ border: 1px solid #000;
|
|
|
+}
|
|
|
+.announceR{
|
|
|
+ width: 60%;
|
|
|
+ font-size: 28px;
|
|
|
+ margin-left: 30px;
|
|
|
+}
|
|
|
+/deep/.el-tabs__item{
|
|
|
+ font-size: 28px;
|
|
|
+}
|
|
|
+.outLink{
|
|
|
+ font-size: 26px;
|
|
|
+ height: 127px;
|
|
|
+ line-height: 127px;
|
|
|
+ text-align: center;
|
|
|
+ margin: 20px 30px;
|
|
|
+}
|
|
|
+p{
|
|
|
+ margin-top: 20px;
|
|
|
+}
|
|
|
+span{
|
|
|
+ color: #333;
|
|
|
+ font-size: 26px;
|
|
|
}
|
|
|
</style>
|