|
|
@@ -1,21 +1,22 @@
|
|
|
<template>
|
|
|
- <img class="home-bg" src="/homeBg.png" />
|
|
|
-
|
|
|
<div class="home-container">
|
|
|
- <el-form @submit.prevent @keyup.enter="name && toDomain({ name })">
|
|
|
- <el-form-item>
|
|
|
- <el-input v-model="name" size="large" clearable placeholder="搜索">
|
|
|
- <template #suffix>
|
|
|
- <el-button link icon="search" @click="name && toDomain({ name })"></el-button>
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <!-- <el-form-item label="热搜词:">
|
|
|
- <el-tag type="warning">政策</el-tag>
|
|
|
- </el-form-item> -->
|
|
|
- </el-form>
|
|
|
-
|
|
|
- <el-card class="home-container__tabs-card">
|
|
|
+ <div style="background-image: url(/home-header.png)" class="home-header">
|
|
|
+ <el-form @submit.prevent @keyup.enter="name && toDomain({ name })">
|
|
|
+ <el-form-item>
|
|
|
+ <el-input v-model="name" placeholder="搜索你想了解的政策">
|
|
|
+ <template #append>
|
|
|
+ <el-button link icon="search" @click="name && toDomain({ name })"></el-button>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="热搜词:">
|
|
|
+ <el-tag type="warning">政策</el-tag>
|
|
|
+ </el-form-item> -->
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="home-content">
|
|
|
+ <el-card class="home-container__tabs-card">
|
|
|
<el-tabs class="left-tabs" v-model="params.zcLevel" tab-position="left" @tab-change="reloadTable">
|
|
|
<el-tab-pane v-for="item in levelDic" :key="item" :label="item.slice(0, -1)" :name="item"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
@@ -26,24 +27,27 @@
|
|
|
<el-tab-pane v-for="item in storageTypeDic" :key="item.value" :label="item.label" :name="item.value"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</template>
|
|
|
- <el-table v-loading="loading" row-key="id" header-cell-class-name="tjm_card_table_header" height="300px" :data="tableData" border @row-click="table_detail">
|
|
|
- <template v-for="(item, index) in columns" :key="index">
|
|
|
- <el-table-column :label="item.label" :prop="item.props" min-width="100" show-overflow-tooltip>
|
|
|
- <template #default="scope">{{ columnFormat(scope.row, item.props) }}</template>
|
|
|
- </el-table-column>
|
|
|
- </template>
|
|
|
- </el-table>
|
|
|
+
|
|
|
+ <ul v-loading="loading">
|
|
|
+ <li v-for="item in tableData" :key="item.id">
|
|
|
+ <el-text truncated @click="table_detail(item)"><span>[{{ item.zcType }}]</span>{{ item.name }}</el-text>
|
|
|
+ <!-- <el-text truncated @click="table_detail(item)"><span>[{{ item.zcType }}]</span>《{{ item.name }}》</el-text> -->
|
|
|
+ <span class="date">{{ columnFormat(item, "createTime") }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
</el-card>
|
|
|
</el-card>
|
|
|
-
|
|
|
- <el-card class="home-container__domain">
|
|
|
- <template #header>{{ domainTitle }}</template>
|
|
|
- <el-row>
|
|
|
- <el-col v-for="zcType in typeDic" :key="zcType" :span="8">
|
|
|
- <el-button @click="toDomain({ zcType, inWhType: params.inWhType })">{{ zcType }}</el-button>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-card>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="home-container__domain">
|
|
|
+ <div class="domain-title">{{ domainTitle }}</div>
|
|
|
+
|
|
|
+ <div class="domain-link">
|
|
|
+ <template v-for="zcType in typeDic" v-bind:key="zcType">
|
|
|
+ <el-card @click="toDomain({ zcType, inWhType: params.inWhType })">{{ zcType }}</el-card>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -109,26 +113,56 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.home-bg {
|
|
|
- position: fixed;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- bottom: 0;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
+.home-header {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: 100% 94%;
|
|
|
+ height: 400px;
|
|
|
+
|
|
|
+ .el-form {
|
|
|
+ width: 780px;
|
|
|
+ margin: 0 auto 100px;
|
|
|
+
|
|
|
+ .el-input {
|
|
|
+ --el-component-size: 50px;
|
|
|
+ --el-fill-color-light: var(--el-color-primary);
|
|
|
+ --el-input-border-radius: 8px;
|
|
|
+
|
|
|
+ :deep(.el-input__wrapper) {
|
|
|
+ border: 2px solid var(--el-color-primary);
|
|
|
+ border-right: none;
|
|
|
+ box-shadow: 0 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ :deep(.el-input-group__append) {
|
|
|
+ padding: 0 30px;
|
|
|
+ box-shadow: 0 0;
|
|
|
+ border: 2px solid var(--el-color-primary);
|
|
|
+ border-left: none;
|
|
|
+ color: #fff;
|
|
|
+
|
|
|
+ .el-button {
|
|
|
+ --el-button-active-color: #fff;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-.home-container {
|
|
|
- position: relative;
|
|
|
- z-index: 100;
|
|
|
- padding: 15px 20px;
|
|
|
+.home-content {
|
|
|
+ padding: 0 20px;
|
|
|
|
|
|
.el-tabs :deep {
|
|
|
.el-tabs__active-bar {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
+ .el-tabs__item {
|
|
|
+ font-size: 18px;
|
|
|
+ }
|
|
|
+
|
|
|
.el-tabs__item.is-active {
|
|
|
background: var(--el-color-primary);
|
|
|
color: #fff;
|
|
|
@@ -178,50 +212,65 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .el-card__body {
|
|
|
- padding-right: 0;
|
|
|
- padding-bottom: 0;
|
|
|
+ .el-card__body ul li {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ font-size: 16px;
|
|
|
|
|
|
- .el-table .el-table__header tr th {
|
|
|
- background: #f4f4f4;
|
|
|
- color: #333333;
|
|
|
+ .el-text {
|
|
|
+ cursor: pointer;
|
|
|
+ flex: 1;
|
|
|
+ font-size: inherit;
|
|
|
+ color: inherit;
|
|
|
+
|
|
|
+ span {
|
|
|
+ padding-right: 6px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &:hover .el-text {
|
|
|
+ text-decoration: underline;
|
|
|
+ color: var(--el-color-primary);
|
|
|
+ }
|
|
|
+
|
|
|
+ .date {
|
|
|
+ color: #6c7380;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
- .home-container__domain {
|
|
|
- margin-top: 18px;
|
|
|
-
|
|
|
- :deep(.el-card__header) {
|
|
|
- position: relative;
|
|
|
- border-bottom: none;
|
|
|
- text-align: center;
|
|
|
-
|
|
|
- &::after {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- bottom: 0;
|
|
|
- left: 20px;
|
|
|
- width: calc(100% - 40px);
|
|
|
- height: 1px;
|
|
|
- background: var(--el-card-border-color);
|
|
|
- }
|
|
|
- }
|
|
|
+.home-container__domain {
|
|
|
+ margin-top: 40px;
|
|
|
+ padding: 0 20px 40px;
|
|
|
|
|
|
- :deep(.el-card__body) {
|
|
|
- text-align: center;
|
|
|
- padding-top: calc(var(--el-card-padding) + 10px);
|
|
|
- padding-bottom: calc(var(--el-card-padding) - 10px);
|
|
|
+ .domain-title {
|
|
|
+ margin-bottom: 30px;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 36px;
|
|
|
+ font-weight: 700;
|
|
|
+ }
|
|
|
|
|
|
- .el-col {
|
|
|
- margin-bottom: calc(var(--el-card-padding) + 10px);
|
|
|
+ .domain-link {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ justify-content: space-evenly;
|
|
|
+
|
|
|
+ .el-card {
|
|
|
+ flex-basis: calc((100% - 80px) / 3);
|
|
|
+ margin-bottom: 20px;
|
|
|
+ cursor: pointer;
|
|
|
+
|
|
|
+ :deep(.el-card__body) {
|
|
|
+ padding: 30px;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 18px;
|
|
|
+ }
|
|
|
|
|
|
- .el-button {
|
|
|
- --el-button-border-color: var(--el-text-color-primary);
|
|
|
- --el-button-text-color: var(--el-text-color-primary);
|
|
|
- padding: 30px 40px;
|
|
|
- }
|
|
|
+ &:hover {
|
|
|
+ --el-card-border-color: var(--el-color-primary);
|
|
|
+ box-shadow: 0 0 20px 5px var(--el-color-primary);
|
|
|
}
|
|
|
}
|
|
|
}
|