西海岸需求更新

This commit is contained in:
wuhongjian 2022-06-14 11:06:22 +08:00
parent fdb6c28f3c
commit 90163aa9e3
6 changed files with 203 additions and 197 deletions

View File

@ -2,7 +2,7 @@
<div class="footer"> <div class="footer">
<div class="fotter-son"> <div class="fotter-son">
<div class="top"> <div class="top">
<div>青岛市大数据发展管理局建设</div> <div>青岛西海岸新区大数据发展促进局建设</div>
<div class="shuxian"></div> <div class="shuxian"></div>
<div>海信网络科技股份有限公司</div> <div>海信网络科技股份有限公司</div>
</div> </div>
@ -23,12 +23,12 @@
value: '政府标识码3702000106', value: '政府标识码3702000106',
}, },
{ {
name: '版权所有:青岛市大数据发展管理局', name: '版权所有:青岛西海岸新区大数据发展促进局',
value: '地址:山东省青岛市香港中路17号市级机关办公楼', value: '地址:青岛市西海岸新区长江中路369号',
}, },
{ {
name: '电话0532-8561234', name: '电话0532-86986596',
value: '传真0532-2145122', value: '传真: 0532-86986596',
}, },
]) ])
</script> </script>

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="ability-to-recommend"> <div class="ability-to-recommend">
<div class="ability-to-recommend-bottom"> <div class="ability-to-recommend-bottom">
<div class="botttomson-son1">青岛市大数据发展管理</div> <div class="botttomson-son1">青岛西海岸新区大数据发展促进</div>
<div class="botttomson-son2"> <div class="botttomson-son2">
<div> <div>
<p>地址</p> <p>地址</p>

View File

@ -6,32 +6,6 @@
<span class="line"></span> <span class="line"></span>
</div> </div>
<div class="bottom"> <div class="bottom">
<div class="item">
<div class="zj">组件服务</div>
<div
class="name"
v-for="(item, index) in zjList"
:key="item.id"
:class="index == 4 ? 'name-last' : ''"
@click="selectOne(item.id)"
>
{{ index + 1 }}-{{ item.name }}
</div>
<div class="btn" @click="jumpPage('组件服务')">查看更多</div>
</div>
<div class="item">
<div class="yy">应用资源</div>
<div
class="name"
v-for="(item, index) in yyList"
:key="item.id"
:class="index == 4 ? 'name-last' : ''"
@click="selectOne(item.id)"
>
{{ index + 1 }}-{{ item.name }}
</div>
<div class="btn" @click="jumpPage('应用资源')">查看更多</div>
</div>
<div class="item"> <div class="item">
<div class="jc">基础设施</div> <div class="jc">基础设施</div>
<div class="name">1-J1-党建展示区走廊-北向</div> <div class="name">1-J1-党建展示区走廊-北向</div>
@ -41,6 +15,22 @@
<div class="name name-last">5-J5-指挥席位东北向</div> <div class="name name-last">5-J5-指挥席位东北向</div>
<div class="btn" @click="jumpPage('基础设施')">查看更多</div> <div class="btn" @click="jumpPage('基础设施')">查看更多</div>
</div> </div>
<div class="item">
<div class="zj">组件服务</div>
<div class="name" v-for="(item, index) in zjList" :key="item.id" :class="index == 4 ? 'name-last' : ''"
@click="selectOne(item.id)">
{{ index + 1 }}-{{ item.name }}
</div>
<div class="btn" @click="jumpPage('组件服务')">查看更多</div>
</div>
<div class="item">
<div class="yy">应用资源</div>
<div class="name" v-for="(item, index) in yyList" :key="item.id" :class="index == 4 ? 'name-last' : ''"
@click="selectOne(item.id)">
{{ index + 1 }}-{{ item.name }}
</div>
<div class="btn" @click="jumpPage('应用资源')">查看更多</div>
</div>
<div class="item"> <div class="item">
<div class="sj">数据资源</div> <div class="sj">数据资源</div>
<div class="name">1-扬尘数据接口</div> <div class="name">1-扬尘数据接口</div>
@ -78,16 +68,16 @@
</div> </div>
</template> </template>
<script setup> <script setup>
import { pageWithAttrs } from '@/api/home.js' import { pageWithAttrs } from '@/api/home.js'
import { ref } from 'vue' import { ref } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useStore } from 'vuex' import { useStore } from 'vuex'
const store = useStore() const store = useStore()
const router = useRouter() const router = useRouter()
const zjList = ref([]) const zjList = ref([])
const yyList = ref([]) const yyList = ref([])
// const jcList = ref([]) // const jcList = ref([])
const paramsGetResources = { const paramsGetResources = {
districtId: '', districtId: '',
pageNum: 1, pageNum: 1,
pageSize: 5, pageSize: 5,
@ -96,19 +86,19 @@
infoList: [], infoList: [],
orderField: 'total', // total visits 访 applyCount score collectCount orderField: 'total', // total visits 访 applyCount score collectCount
orderType: 'DESC', // ASC DESC orderType: 'DESC', // ASC DESC
} }
const getAppResources = (type, obj) => { const getAppResources = (type, obj) => {
paramsGetResources.type = type paramsGetResources.type = type
pageWithAttrs(paramsGetResources).then((res) => { pageWithAttrs(paramsGetResources).then((res) => {
console.log('查询列表============>', res.data.data.records) console.log('查询列表============>', res.data.data.records)
obj.value = res.data.data.records obj.value = res.data.data.records
}) })
} }
getAppResources('组件服务', zjList) getAppResources('组件服务', zjList)
getAppResources('应用资源', yyList) getAppResources('应用资源', yyList)
// getAppResources('', jcList) // getAppResources('', jcList)
function jumpPage(type) { function jumpPage(type) {
// store // store
store.commit('home/selectCardsData', { store.commit('home/selectCardsData', {
selectCardsnum: type, selectCardsnum: type,
@ -124,8 +114,8 @@
select: type, select: type,
}, },
}) })
} }
const selectOne = (id) => { const selectOne = (id) => {
console.log('点击===============》', id) console.log('点击===============》', id)
router.push({ router.push({
path: '/details', path: '/details',
@ -133,21 +123,23 @@
id: id, id: id,
}, },
}) })
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.capability-convergence { .capability-convergence {
height: 7.2rem; height: 7.2rem;
background: url('~@/assets/newHome/Convergence-bg.png') no-repeat; background: url('~@/assets/newHome/Convergence-bg.png') no-repeat;
background-size: 100%; background-size: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
.main { .main {
width: 13rem; width: 13rem;
margin-top: 1.8rem; margin-top: 1.8rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-wrap: wrap; flex-wrap: wrap;
.top { .top {
font-size: 0.3rem; font-size: 0.3rem;
color: #212121; color: #212121;
@ -157,6 +149,7 @@
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.line { .line {
width: 0.34rem; width: 0.34rem;
height: 0.03rem; height: 0.03rem;
@ -164,10 +157,12 @@
margin-top: 0.08rem; margin-top: 0.08rem;
} }
} }
.bottom { .bottom {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-top: 0.4rem; margin-top: 0.4rem;
.item { .item {
width: 2.44rem; width: 2.44rem;
height: 3.91rem; height: 3.91rem;
@ -175,6 +170,7 @@
background-color: #fff; background-color: #fff;
border-radius: 0.02rem; border-radius: 0.02rem;
box-shadow: 0 0.05rem 0.2rem #ccc; box-shadow: 0 0.05rem 0.2rem #ccc;
div:nth-of-type(1) { div:nth-of-type(1) {
height: 1.02rem; height: 1.02rem;
line-height: 1.02rem; line-height: 1.02rem;
@ -183,18 +179,23 @@
padding-left: 0.15rem; padding-left: 0.15rem;
background-size: 100%; background-size: 100%;
} }
.jc { .jc {
background: url('~@/assets/newHome/Convergence-jc.png') no-repeat; background: url('~@/assets/newHome/Convergence-jc.png') no-repeat;
} }
.sj { .sj {
background: url('~@/assets/newHome/Convergence-sj.png') no-repeat; background: url('~@/assets/newHome/Convergence-sj.png') no-repeat;
} }
.zj { .zj {
background: url('~@/assets/newHome/Convergence-zj.png') no-repeat; background: url('~@/assets/newHome/Convergence-zj.png') no-repeat;
} }
.yy { .yy {
background: url('~@/assets/newHome/Convergence-yy.png') no-repeat; background: url('~@/assets/newHome/Convergence-yy.png') no-repeat;
} }
.zs { .zs {
background: url('~@/assets/newHome/Convergence-zs.png') no-repeat; background: url('~@/assets/newHome/Convergence-zs.png') no-repeat;
} }
@ -209,13 +210,16 @@
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.name:hover { .name:hover {
color: #0058e1; color: #0058e1;
cursor: pointer; cursor: pointer;
} }
.name-last { .name-last {
border-bottom: none; border-bottom: none;
} }
.btn { .btn {
cursor: pointer; cursor: pointer;
width: 0.8rem; width: 0.8rem;
@ -228,11 +232,13 @@
margin-top: 0.1rem; margin-top: 0.1rem;
margin-left: 0.85rem; margin-left: 0.85rem;
} }
.btn:hover { .btn:hover {
background: rgba(0, 88, 225, 0.3); background: rgba(0, 88, 225, 0.3);
color: #000; color: #000;
} }
} }
.item:hover { .item:hover {
border-radius: 0.02rem; border-radius: 0.02rem;
border: 0.01rem solid #0058e1; border: 0.01rem solid #0058e1;
@ -240,5 +246,5 @@
} }
} }
} }
} }
</style> </style>

View File

@ -2,7 +2,7 @@
<div class="footer"> <div class="footer">
<div class="fotter-son"> <div class="fotter-son">
<div class="top"> <div class="top">
<div>青岛市大数据发展管理局建设</div> <div>青岛西海岸新区大数据发展促进局建设</div>
<div class="shuxian"></div> <div class="shuxian"></div>
<div>海信网络科技股份有限公司</div> <div>海信网络科技股份有限公司</div>
</div> </div>
@ -23,12 +23,12 @@
value: '政府标识码3702000106', value: '政府标识码3702000106',
}, },
{ {
name: '版权所有:青岛市大数据发展管理局', name: '版权所有:青岛西海岸新区大数据发展促进局',
value: '地址:山东省青岛市香港中路17号市级机关办公楼', value: '地址:青岛市西海岸新区长江中路369号',
}, },
{ {
name: '电话0532-8561234', name: '电话0532-86986596',
value: '传真0532-2145122', value: '传真: 0532-86986596',
}, },
]) ])
</script> </script>

View File

@ -151,9 +151,9 @@
const store = useStore() const store = useStore()
const router = useRouter() const router = useRouter()
const topList = ref([ const topList = ref([
'基础设施',
'组件服务', '组件服务',
'应用资源', '应用资源',
'基础设施',
'数据资源', '数据资源',
// '', // '',
]) ])

View File

@ -1,5 +1,13 @@
<template> <template>
<div class="navigation2"> <div class="navigation2">
<div class="item">
<div class="img jc"></div>
<div class="name">基础设施</div>
<div class="sl">
<span class="num">{{ jcNum || 0 }}</span>
</div>
</div>
<div class="item"> <div class="item">
<div class="img zj"></div> <div class="img zj"></div>
<div class="name">组件服务</div> <div class="name">组件服务</div>
@ -16,14 +24,6 @@
</div> </div>
</div> </div>
<div class="item">
<div class="img jc"></div>
<div class="name">基础设施</div>
<div class="sl">
<span class="num">{{ jcNum || 0 }}</span>
</div>
</div>
<div class="item"> <div class="item">
<div class="img sj"></div> <div class="img sj"></div>
<div class="name">数据资源</div> <div class="name">数据资源</div>