Commit 4eef1e24 authored by “yiyousong”'s avatar “yiyousong”

fix:修改页面

parent 84ed97ce
...@@ -26,7 +26,14 @@ ...@@ -26,7 +26,14 @@
<div class="flex flexc aic"> <div class="flex flexc aic">
<img class="mb32" width="700" src="../../assets/img/png_title@2x.png" /> <img class="mb32" width="700" src="../../assets/img/png_title@2x.png" />
<div class="search-box"> <div class="search-box">
<el-input v-model="search" placeholder="输入关键词查询"></el-input> <el-input v-model="search" placeholder="输入关键词查询">
<i
v-show="search"
slot="suffix"
class="el-icon-circle-close"
@click="handleClose"
></i>
</el-input>
<el-button class="search-btn" @click="handleSearch"> <el-button class="search-btn" @click="handleSearch">
<span class="flex aic jcc"> <span class="flex aic jcc">
<img class="mr10" src="../../assets/img/sousuo.png" /> 搜索 <img class="mr10" src="../../assets/img/sousuo.png" /> 搜索
...@@ -251,6 +258,9 @@ export default { ...@@ -251,6 +258,9 @@ export default {
}); });
} }
}, },
handleClose() {
this.search = "";
},
}, },
}; };
</script> </script>
...@@ -380,6 +390,16 @@ export default { ...@@ -380,6 +390,16 @@ export default {
background-color: #fff; background-color: #fff;
} }
} }
:deep(.el-input__suffix) {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
right: 200px;
}
.el-icon-circle-close {
font-size: 20px;
}
.search-btn { .search-btn {
width: 167px; width: 167px;
height: 62px; height: 62px;
...@@ -399,7 +419,7 @@ export default { ...@@ -399,7 +419,7 @@ export default {
:deep(.el-input__inner) { :deep(.el-input__inner) {
width: 895px; width: 895px;
height: 72px; height: 72px;
padding-right: 200px; padding-right: 240px;
font-size: 24px; font-size: 24px;
border-radius: 8px; border-radius: 8px;
color: #333; color: #333;
......
...@@ -28,7 +28,15 @@ ...@@ -28,7 +28,15 @@
:key="matter.id" :key="matter.id"
@click="handleCheck(matter)" @click="handleCheck(matter)"
> >
<div class="for-short" v-html="matter.matterName"></div> <div v-if="matter.isRecommend" class="hot-icon flex jcc aic">
<i class="iconfont icon-hot"></i>
<span>热门</span>
</div>
<div
class="for-short"
:class="{ isRecommend: matter.isRecommend }"
v-html="matter.matterName"
></div>
<div class="name"> <div class="name">
{{ matter.matterFullName }} {{ matter.matterFullName }}
</div> </div>
...@@ -143,7 +151,6 @@ export default { ...@@ -143,7 +151,6 @@ export default {
this.matterList = data; this.matterList = data;
this.total = total; this.total = total;
this.matterDatumTotal = matterDatumTotal; this.matterDatumTotal = matterDatumTotal;
console.log(data);
}, },
// 搜索 // 搜索
handleSearch() { handleSearch() {
...@@ -201,12 +208,29 @@ export default { ...@@ -201,12 +208,29 @@ export default {
.matter-item { .matter-item {
width: 426px; width: 426px;
height: 200px; height: 200px;
padding: 20px; padding: 10px 20px;
margin-bottom: 34px; margin-bottom: 34px;
background: #edf6fe; background: #edf6fe;
border-radius: 16px; border-radius: 16px;
position: relative;
cursor: pointer; cursor: pointer;
.hot-icon {
width: 87px;
height: 36px;
background: linear-gradient(87deg, #fdba6b, #f15800);
border-radius: 0px 16px 0px 9px;
font-size: 20px;
font-family: Source Han Sans CN;
color: #ffffff;
position: absolute;
top: 0px;
right: 0px;
.icon-hot {
margin-right: 4px;
font-size: 20px;
color: #ffe96d;
}
}
.for-short { .for-short {
margin-bottom: 10px; margin-bottom: 10px;
font-size: 24px; font-size: 24px;
...@@ -216,6 +240,9 @@ export default { ...@@ -216,6 +240,9 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.isRecommend {
max-width: 320px;
}
.name { .name {
margin-bottom: 10px; margin-bottom: 10px;
font-size: 18px; font-size: 18px;
...@@ -233,7 +260,7 @@ export default { ...@@ -233,7 +260,7 @@ export default {
color: #333333; color: #333333;
line-height: 28px; line-height: 28px;
.isMore { .isMore {
max-width: 310px; max-width: 290px;
} }
.count { .count {
color: #2878ff; color: #2878ff;
......
...@@ -43,7 +43,10 @@ ...@@ -43,7 +43,10 @@
:class="{ isRecommend: v.isRecommend }" :class="{ isRecommend: v.isRecommend }"
v-html="v.matterName" v-html="v.matterName"
></div> ></div>
<div class="name">事项全称:{{ v.matterFullName }}</div> <div class="name">
<span class="matter-fullName">事项全称</span
>{{ v.matterFullName }}
</div>
</div> </div>
</div> </div>
<el-empty :image-size="200" v-else></el-empty> <el-empty :image-size="200" v-else></el-empty>
...@@ -169,7 +172,7 @@ export default { ...@@ -169,7 +172,7 @@ export default {
.right { .right {
height: 100%; height: 100%;
padding: 0px 40px; padding: 0px 40px;
padding-bottom: 40px; padding-bottom: 20px;
.data-count { .data-count {
color: var(--main-assist-color3); color: var(--main-assist-color3);
...@@ -178,28 +181,26 @@ export default { ...@@ -178,28 +181,26 @@ export default {
.matter-box { .matter-box {
height: 100%; height: 100%;
padding: 20px; padding: 30px;
background: #ffffff; background: #ffffff;
border-radius: 16px; border-radius: 16px;
.matter-list { .matter-list {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
&::after { &::after {
content: ""; content: "";
width: 460px; width: 474px;
border: 1px solid transparent; border: 1px solid transparent;
} }
} }
.matter-item { .matter-item {
width: 460px; width: 474px;
height: 150px; height: 150px;
margin-bottom: 30px; margin-bottom: 30px;
padding: 20px; padding: 20px;
background: #edf6fe; background: #f7fafd;
border-radius: 16px; border-radius: 16px;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
...@@ -233,7 +234,7 @@ export default { ...@@ -233,7 +234,7 @@ export default {
overflow: hidden; overflow: hidden;
} }
.isRecommend { .isRecommend {
max-width: 350px; max-width: 340px;
} }
.name { .name {
margin-bottom: 10px; margin-bottom: 10px;
...@@ -246,13 +247,24 @@ export default { ...@@ -246,13 +247,24 @@ export default {
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
overflow: hidden; overflow: hidden;
.matter-fullName {
display: inline-block;
width: 86px;
height: 30px;
text-align: center;
line-height: 30px;
margin-right: 6px;
background: #dfe9fb;
border-radius: 4px;
color: var(--main-theme-color1);
}
} }
.materials { .materials {
font-size: 18px; font-size: 18px;
font-family: Source Han Sans CN; font-family: Source Han Sans CN;
color: #333333; color: #333333;
line-height: 28px; line-height: 30px;
.count { .count {
color: #2878ff; color: #2878ff;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment