a1300399510@qq.com 提交于 2023/03/29 -14:38:27

This commit is contained in:
XiaoMo 2023-03-29 14:38:43 +08:00
parent 947f9418ad
commit 6479762082
13 changed files with 578 additions and 587 deletions

7
.gitignore vendored Executable file
View File

@ -0,0 +1,7 @@
# Logs
logs
*.log
node_modules
.DS_Store
dist
*.local

View File

@ -1,23 +1,24 @@
<template> <template>
<div id="app"> <div id="app">
<div class="container"> <div class="container">
<router-view/> <router-view />
</div> </div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: "App", name: "App",
data() { data() {
return { return {
} }
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
@import 'assets/css/normalize.css'; @import 'assets/css/normalize.css';
@import 'assets/css/public.scss';// @import 'assets/css/public.scss'; //
#app { #app {
font-family: Avenir, Helvetica, Arial, sans-serif; font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
@ -26,14 +27,16 @@
flex-direction: column; flex-direction: column;
margin: 0 auto; margin: 0 auto;
position: relative; position: relative;
overflow: hidden;
} }
.container{
.container {
// padding: 0 0.35rem; // padding: 0 0.35rem;
background-color: rgba(246, 246, 246, 1); background-color: rgba(246, 246, 246, 1);
min-height: 100vh; min-height: 100vh;
} }
.flexflex{ .flexflex {
display: flex; display: flex;
} }
@ -53,9 +56,13 @@
flex-direction: column; flex-direction: column;
} }
.flex1 {
flex: 1;
}
.el-message { .el-message {
min-width: 7rem !important; min-width: 7rem !important;
} }
</style> </style>

View File

@ -1,7 +1,7 @@
*{ *{
padding: 0; padding: 0;
margin: 0; margin: 0;
color: #555; /* color: #555; */
font-family: '微软雅黑'; font-family: '微软雅黑';
font-weight: 400; font-weight: 400;
} }

View File

@ -38,16 +38,21 @@
box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.1); box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.1);
position: relative; position: relative;
.path-slash {
color: #D7D7D7;
font-size: .32rem;
}
div { div {
color: #7F7F7F; color: #7F7F7F;
max-width: 2.5rem; max-width: 2.5rem;
&::before { // &::before {
content: "/"; // content: "/";
width: 0.2rem; // width: 0.2rem;
padding: 0 0.07rem; // padding: 0 0.07rem;
color: #7F7F7F; // color: #7F7F7F;
} // }
&:last-child { &:last-child {
max-width: 50%; max-width: 50%;
@ -55,9 +60,9 @@
font-weight: bold; font-weight: bold;
} }
&:first-child::before { // &:first-child::before {
content: ""; // content: "";
} // }
} }
&::after { &::after {
@ -124,7 +129,7 @@ section {
font-size: 0.3rem; font-size: 0.3rem;
color: #7F7F7F; color: #7F7F7F;
max-height: 1rem; max-height: 1rem;
line-height: 0.53rem; line-height: .52rem;
} }
// 回复可见 // 回复可见
@ -134,6 +139,8 @@ section {
padding: 0.28rem; padding: 0.28rem;
text-align: center; text-align: center;
margin-top: 0.25rem; margin-top: 0.25rem;
font-size: .32rem;
color: #aaa;
} }
} }
@ -164,10 +171,11 @@ section {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
padding-left: 0.25rem; // padding-left: 0.25rem;
&:last-child { &:last-child {
margin-left: 0.133333rem; // margin-left: 0.133333rem;
margin-left: .4rem;
} }
div { div {
@ -190,66 +198,30 @@ section {
// 精华 // 精华
.rightTop { .rightTop {
width: 2rem;
height: 2rem;
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
&:before { .rightTop-img {
content: ""; width: 1.28rem;
display: block; height: 1.28rem;
border-radius: 0.8rem 0.8rem 0 0; margin-top: -.1rem;
width: 0.24rem; margin-right: -.1rem;
height: 0.053333rem;
position: absolute;
top: -0.053333rem;
right: 0.98rem;
background: #7474ff;
}
&:after {
content: "";
display: block;
border-radius: 0 0.11rem 0.11rem 0;
width: 0.053333rem;
height: 0.24rem;
position: absolute;
right: -0.053333rem;
top: 0.98rem;
background: #7474ff;
}
div {
overflow: hidden;
width: 2rem;
height: 2rem;
position: absolute;
top: -0.09rem;
right: -0.09rem;
} }
// 丝带 // 丝带
span { span {
display: inline-block;
text-align: center;
width: 2.5rem;
height: 0.45rem;
line-height: 0.45rem;
font-size: 0.3rem;
color: #fff;
position: absolute; position: absolute;
top: 0.25rem; top: 0;
right: -0.8rem; left: 0;
z-index: 2;
overflow: hidden;
transform: rotate(45deg); transform: rotate(45deg);
-ms-transform: rotate(45deg); transform-origin: bottom;
-moz-transform: rotate(45deg); margin-top: 0.01rem;
-webkit-transform: rotate(45deg); margin-left: 0.25rem;
-o-transform: rotate(45deg); width: 0.9rem;
box-shadow: 0 0 0.09rem rgba(151, 151, 255, 0.5); font-size: 0.3rem;
background-image: linear-gradient(to bottom right, #7474ff, rgba(190, 190, 255, 1)); text-align: center;
color: #fff;
} }
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
src/assets/img/icon/topRight .png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

@ -10,10 +10,9 @@
</div> </div>
<div class="right flexacenter"> <div class="right flexacenter">
<div class="head-search flexcenter" v-if="issearch"> <!-- <slot name="search"></slot> -->
<img class="head-search-icon" src="@/assets/img/headerNav/search.png" /> <search-box slot="search" :issearch="true"></search-box>
<span>搜索</span>
</div>
<div class="head-more flexcenter" @click="headMorePopState = !headMorePopState"> <div class="head-more flexcenter" @click="headMorePopState = !headMorePopState">
<div class="red-dot" v-if="false"></div> <div class="red-dot" v-if="false"></div>
<img class="head-more-icon" src="@/assets/img/headerNav/threeAcross.svg" /> <img class="head-more-icon" src="@/assets/img/headerNav/threeAcross.svg" />
@ -60,6 +59,7 @@
</div> </div>
<div class="head-pop" v-if="headMorePopState" @click="headMorePopState = !headMorePopState"></div> <div class="head-pop" v-if="headMorePopState" @click="headMorePopState = !headMorePopState"></div>
</div> </div>
<header v-if="false"> <header v-if="false">
<!-- 标题 --> <!-- 标题 -->
<div class="header-title"> <div class="header-title">
@ -69,7 +69,7 @@
<slot name="search"></slot> <slot name="search"></slot>
<!-- 折叠按钮 --> <!-- 折叠按钮 -->
<div class="header-collapse" @click="collapseClick"> <div class="header-collapse">
<svg-icon icon-class="collapse" class-name="icon-collapse"></svg-icon> <svg-icon icon-class="collapse" class-name="icon-collapse"></svg-icon>
<div class="collapse-red"></div> <div class="collapse-red"></div>
<!-- 红点 --> <!-- 红点 -->
@ -133,6 +133,8 @@
</template> </template>
<script> <script>
import SearchBox from "../components/SearchBox.vue";
export default { export default {
name: "HeaderNav", name: "HeaderNav",
data() { data() {
@ -168,6 +170,10 @@ export default {
mounted() { mounted() {
this.getMenu() this.getMenu()
}, },
components: {
SearchBox,
},
methods: { methods: {
// //
handleRegister() { handleRegister() {
@ -196,13 +202,13 @@ export default {
}); });
}, },
// collapseClick() { collapseClick() {
// if (this.collapseShow == true) this.collapseShow = false; if (this.collapseShow == true) this.collapseShow = false;
// else this.collapseShow = true; else this.collapseShow = true;
// }, },
// collapseClose() { collapseClose() {
// this.collapseShow = false; this.collapseShow = false;
// }, },
}, },
}; };
</script> </script>
@ -231,22 +237,6 @@ export default {
} }
.right { .right {
.head-search {
width: 2.4rem;
height: .8rem;
border-radius: 2.56rem;
background-color: rgba(235, 235, 235, 1);
color: #AAAAAA;
font-size: .3467rem;
.head-search-icon {
width: .4rem;
height: .4rem;
margin-right: .14rem;
}
margin-right: .4rem;
}
.head-more { .head-more {
position: relative; position: relative;
@ -468,52 +458,8 @@ export default {
} }
} }
//
header { .collapse-box {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.15rem 0.35rem 0.4rem;
.header-title {
width: 60%;
font-weight: bold;
font-size: 0.48rem;
color: #333;
}
.header-search-box {
width: 40%;
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
}
.header-collapse {
width: 0.48rem;
display: flex;
justify-content: flex-end;
position: relative;
.icon-collapse {
width: 0.48rem;
height: 0.4rem;
}
}
.collapse-red {
width: 0.16rem;
height: 0.16rem;
background-color: red;
border-radius: 0.2rem;
position: absolute;
top: -0.15rem;
right: -0.2rem;
}
//
.collapse-box {
display: none; display: none;
position: absolute; position: absolute;
right: 0; right: 0;
@ -679,6 +625,52 @@ header {
height: 0.32rem; height: 0.32rem;
} }
} }
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.15rem 0.35rem 0.4rem;
.header-title {
width: 60%;
font-weight: bold;
font-size: 0.48rem;
color: #333;
} }
.header-search-box {
width: 40%;
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
}
.header-collapse {
width: 0.48rem;
display: flex;
justify-content: flex-end;
position: relative;
.icon-collapse {
width: 0.48rem;
height: 0.4rem;
}
}
.collapse-red {
width: 0.16rem;
height: 0.16rem;
background-color: red;
border-radius: 0.2rem;
position: absolute;
top: -0.15rem;
right: -0.2rem;
}
} }
</style> </style>

View File

@ -0,0 +1,32 @@
<!-- 板块导航 头部 点击板块后的头部导航 -->
<template>
<div class="path-box">
<div>论坛</div>
<span class="path-slash">/</span>
<div class="oneEllipsis">{{ stairname }}</div>
<span class="path-slash">/</span>
<div class="oneEllipsis">{{ subsectionsname }}</div>
</div>
</template>
<script>
export default {
name: 'PlateNavigation',
data() {
return {
};
},
props: ["stairname", "subsectionsname"],
mounted() {
},
methods: {
},
};
</script>
<style lang="scss" scoped></style>

View File

@ -1,23 +1,24 @@
<template> <template>
<div> <div>
<div class="header-search" @click="searchClick"> <div class="head-search flexcenter" v-if="issearch" @click="searchClick()">
<div class="header-search-img"></div> <img class="head-search-icon" src="@/assets/img/headerNav/search.png" />
<div class="header-search-text">搜索</div> <span>搜索</span>
</div> </div>
<!-- 搜索弹窗 -->
<div class="search-window" :class="{'searchShow':searchWinShow == true}">
<!-- 搜索框 -->
<div class="search-input">
<form action="javascript:return true;" @submit.prevent>
<div class="search-icon"></div>
<input ref="searchInput" v-model="searchText" type="search" placeholder="请输入搜索关键词"/>
<div v-if="showClear" class="clear-text" @click="clearText"></div>
</form>
<div class="search-close" @click="searchClose">取消</div> <!-- 搜索弹窗 -->
<div class="search-window" :class="{ 'searchShow': searchWinShow == true }">
<!-- 搜索框 -->
<div class="search-input flexacenter">
<div class="form flexacenter">
<img class="search-icon" src="@/assets/img/headerNav/search.png">
<input class="flex1" ref="searchInput" v-model="searchText" type="text" placeholder="请输入搜索关键词" />
<img v-if="searchText" @click.stop="clearText()" class="clear-text" src="@/assets/img/icon/clear.png">
</div>
<div class="search-close" @click="searchClose()">取消</div>
</div> </div>
<!-- 历史搜索 --> <!-- 历史搜索 -->
<div class="search-content"> <div class="search-content flexcolumn">
<div class="search-text">历史搜索</div> <div class="search-text">历史搜索</div>
<div class="search-label"> <div class="search-label">
<span>香港大学</span> <span>香港大学</span>
@ -38,7 +39,7 @@
</template> </template>
<script> <script>
export default { export default {
name: "SearchBox", name: "SearchBox",
data() { data() {
return { return {
@ -47,14 +48,22 @@
showClear: false, // showClear: false, //
} }
}, },
props: ["issearch"],
methods: { methods: {
collapseClick() {
if (this.collapseShow == true) this.collapseShow = false;
else this.collapseShow = true;
},
// //
searchClick() { searchClick() {
this.searchWinShow = true this.searchWinShow = true
this.$refs.searchInput.blur(); this.$nextTick(() => {
this.$refs.searchInput.focus();
})
}, },
// //
searchClose(){ searchClose() {
this.searchWinShow = false this.searchWinShow = false
}, },
// //
@ -63,24 +72,39 @@
}, },
// //
clearText() { clearText() {
if(this.searchText.length > 0) {
this.searchText = "" this.searchText = ""
} }
}
}, },
mounted() { mounted() {
if(this.searchText.length > 0) { if (this.searchText.length > 0) this.showClear = true
this.showClear = true else this.showClear = false
}else{
this.showClear = false
}
}
} }
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// .head-search {
.search-window{ width: 2.4rem;
height: .8rem;
border-radius: 2.56rem;
background-color: rgba(235, 235, 235, 1);
color: #AAAAAA;
font-size: .3467rem;
.head-search-icon {
width: .4rem;
height: .4rem;
margin-right: .14rem;
}
margin-right: .4rem;
}
//
.search-window {
display: none; display: none;
position: fixed; position: fixed;
top: 0; top: 0;
@ -89,82 +113,70 @@
min-height: 100vh; min-height: 100vh;
background-color: #f6f6f6; background-color: #f6f6f6;
z-index: 9; z-index: 9;
&.searchShow{
&.searchShow {
display: block; display: block;
} }
.search-input{
padding: 0.27rem 0.32rem 0.27rem;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
.search-icon{ .search-input {
position: absolute; padding: 0.27rem 0.32rem 0.27rem;
top: 0.43rem; justify-content: space-between;
left: 0.3rem;
width: 0.32rem; .search-icon {
height: 0.32rem; width: .4rem;
background-size: contain; height: .4rem;
background-image: url('@/assets/img/icon/search.png');
} }
form{
.form {
width: 90%; width: 90%;
position: relative; background-color: #ebebeb;
}
input{
width: 100%;
box-sizing: border-box;
text-align: left;
font-size: 0.36rem;
height: 1.12rem; height: 1.12rem;
line-height: 1.12rem; line-height: 1.12rem;
border-radius: 0.56rem; border-radius: 0.56rem;
background-color: #ebebeb; padding-left: .4rem;
}
input {
font-size: 0.36rem;
border: none; border: none;
color: #000;
display: block;
outline: 0; outline: 0;
padding-left: 0.8rem; color: #000;
padding-right: 0.9rem; padding-left: .34rem;
text-decoration: none; height: 1.12rem;
&[type="search"]{-webkit-appearance:none;} background: transparent;
&::-webkit-search-cancel-button {display: none;}
&:placeholder-shown{
color: #aaa;
} }
}
.clear-text{ .clear-text {
width: 0.4rem; width: 0.4rem;
height: 0.4rem; height: 0.4rem;
position: absolute; padding: .48rem;
top: 0.35rem;
right: 0.3rem;
background-size: contain;
background-image: url('/src/assets/img/icon/clear.png');
} }
.search-close{
.search-close {
width: 10%; width: 10%;
font-size: 0.36rem; font-size: 0.36rem;
text-align: right; text-align: right;
} }
} }
.search-content{ .search-content {
padding: 0.27rem 0.32rem 0.27rem; padding: 0.27rem 0.32rem 0.27rem;
display: flex;
flex-direction: column;
margin-top: 0.2rem; margin-top: 0.2rem;
.search-text{
.search-text {
color: #7F7F7F; color: #7F7F7F;
font-size: 0.32rem; font-size: 0.32rem;
margin-bottom: 0.13rem; margin-bottom: .32rem;
} }
.search-label{
.search-label {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
span{
span {
padding: 0 0.2rem; padding: 0 0.2rem;
height: 0.96rem; height: 0.96rem;
line-height: 0.96rem; line-height: 0.96rem;
@ -173,37 +185,11 @@
color: #333; color: #333;
text-align: center; text-align: center;
font-size: 0.36rem; font-size: 0.36rem;
margin: 0.2rem 0.16rem 0 0; margin-right: .2rem;
margin-bottom: .24rem;
} }
} }
} }
} }
.header-search {
width: 2.4rem;
height: 0.8rem;
line-height: 0.8rem;
border-radius: 2.56rem;
background-color: rgba(235, 235, 235, 1);
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-right: 0.35rem;
.header-search-img {
width: 0.4rem;
height: 0.4rem;
background-size: contain;
margin: 0 0.133333rem 0 0;
background-image: url("@/assets/img/icon/search.png");
}
.header-search-text {
text-align: left;
font-size: 0.32rem;
color: #aaaaaa;
display: block;
}
}
</style> </style>

View File

@ -1,10 +1,13 @@
<template> <template>
<svg :class="svgClass" xmlns="http://www.w3.org/2000/svg"> <!-- <svg class="svg-icon" :class="svgClass" xmlns="http://www.w3.org/2000/svg"> -->
<use :xlink:href="iconName" xmlns:xlink="http://www.w3.org/1999/xlink" /> <!-- <use :xlink:href="iconName" xmlns:xlink="http://www.w3.org/1999/xlink" /> -->
<svg class="svg-icon" :class="className" xmlns="http://www.w3.org/2000/svg">
<use :xlink:href="`#icon-${iconClass}`" xmlns:xlink="http://www.w3.org/1999/xlink" />
</svg> </svg>
</template> </template>
<script> <script>
export default { export default {
name: 'SvgIcon', name: 'SvgIcon',
props: { props: {
iconClass: { iconClass: {
@ -28,14 +31,14 @@
} }
} }
} }
}; };
</script> </script>
<style scoped> <style scoped>
.svg-icon { .svg-icon {
/* width: 100%; /* width: 100%;
height: 100%; */ height: 100%; */
vertical-align: -0.15em; vertical-align: -0.15em;
fill: currentColor; fill: currentColor;
overflow: hidden; overflow: hidden;
} }
</style> </style>

View File

@ -3,28 +3,22 @@
<div class="collect"> <div class="collect">
<!-- 未收藏 --> <!-- 未收藏 -->
<div v-if="collect.length == 0" class="notCollect"> <div v-if="collect.length == 0" class="notCollect">
<img <img class="notCollect-img" src="~assets/img/collect/notCollect.png" alt="未收藏" />
class="notCollect-img"
src="~assets/img/collect/notCollect.png"
alt="未收藏"
/>
<div class="collect-text">收藏你感兴趣的版块迅速浏览相应的帖子</div> <div class="collect-text">收藏你感兴趣的版块迅速浏览相应的帖子</div>
<div class="collect-btn"> <!-- <div class="collect-btn"> -->
<router-link to="/allSections" class="flexcenter collect-btn">
<div class="collect-btn-text">马上收藏</div> <div class="collect-btn-text">马上收藏</div>
<svg-icon icon-class="collect-btn" class-name="icon-collect"></svg-icon> <svg-icon icon-class="collect-btn" class-name="icon-collect"></svg-icon>
</div> </router-link>
<!-- </div> -->
</div> </div>
<!-- 已收藏 --> <!-- 已收藏 -->
<div v-else> <div v-else>
<!-- 热门版块 --> <!-- 热门版块 -->
<div class="hot-box"> <div class="hot-box">
<div <div class="hot-label" :class="{ active: hotActive == index }" v-for="(item, index) in list" :key="index"
class="hot-label" @click="hotLabelClick(index)">
:class="{ active: hotActive == index }"
v-for="(item, index) in list"
:key="index"
@click="hotLabelClick(index)"
>
{{ item.label }} {{ item.label }}
</div> </div>
<!-- 设置按钮 --> <!-- 设置按钮 -->
@ -33,28 +27,18 @@
设置 设置
</div> </div>
<!-- 设置 收藏版块弹窗 --> <!-- 设置 收藏版块弹窗 -->
<div <div class="setting-window" :class="{ 'setting-show': settingShow == true }" @click="settingClose">
class="setting-window"
:class="{ 'setting-show': settingShow == true }"
@click="settingClose"
>
<div class="setting-container" @click.stop> <div class="setting-container" @click.stop>
<div class="setting-title">设置收藏版块</div> <div class="setting-title">设置收藏版块</div>
<div class="setting-total"> <div class="setting-total">
<div class="setting-num">共收藏<b> 5 </b>个版块</div> <div class="setting-num">共收藏<b> 5 </b>个版块</div>
<div class="setting-add"> <router-link to="/allSections" class="flexcenter setting-add">
<router-link to="/allSections"> <svg-icon icon-class="settingAdd" class-name="setting-add-img"></svg-icon>添加
<svg-icon
icon-class="settingAdd"
class-name="setting-add-img"
></svg-icon
>添加
</router-link> </router-link>
</div> </div>
</div>
<!-- 弹窗收藏版块内容 --> <!-- 弹窗收藏版块内容 -->
<div class="setting-sections"> <div class="setting-sections">
<div class="setting-item"> <div class="setting-item" v-for="item in 1" :key="item">
<div class="setting-item-title">香港澳门台湾留学申请</div> <div class="setting-item-title">香港澳门台湾留学申请</div>
<div class="setting-star"></div> <div class="setting-star"></div>
</div> </div>
@ -65,11 +49,7 @@
</div> </div>
</div> </div>
<!-- 路径 --> <!-- 路径 -->
<div class="path-box"> <plate-navigation stairname="寄托学术类备" subsectionsname="SAT、AP考试、海外本科申…"></plate-navigation>
<div>论坛</div>
<div class="oneEllipsis">论坛</div>
<div class="oneEllipsis">论坛</div>
</div>
<!-- 内容区域 --> <!-- 内容区域 -->
<section> <section>
<!-- 帖子 --> <!-- 帖子 -->
@ -89,10 +69,7 @@
<!-- 头像浏览量消息 --> <!-- 头像浏览量消息 -->
<div class="bottom"> <div class="bottom">
<div class="bottom-box"> <div class="bottom-box">
<svg-icon <svg-icon icon-class="test-head" class-name="icon-head"></svg-icon>
icon-class="test-head"
class-name="icon-head"
></svg-icon>
<div class="bottom-name">匿名用户</div> <div class="bottom-name">匿名用户</div>
</div> </div>
<div class="bottom-box"> <div class="bottom-box">
@ -108,11 +85,10 @@
</div> </div>
<!-- 精华 --> <!-- 精华 -->
<div class="rightTop"> <div class="rightTop">
<div> <img class="rightTop-img" src="@/assets/img/icon/topRight .png">
<span>精华</span> <span>精华</span>
</div> </div>
</div> </div>
</div>
<div class="card-box"> <div class="card-box">
<!-- 帖子标题 --> <!-- 帖子标题 -->
<div class="top moreEllipsis"> <div class="top moreEllipsis">
@ -126,10 +102,7 @@
<!-- 头像浏览量消息 --> <!-- 头像浏览量消息 -->
<div class="bottom"> <div class="bottom">
<div class="bottom-box"> <div class="bottom-box">
<svg-icon <svg-icon icon-class="test-head" class-name="icon-head"></svg-icon>
icon-class="test-head"
class-name="icon-head"
></svg-icon>
<div class="bottom-name">匿名用户</div> <div class="bottom-name">匿名用户</div>
</div> </div>
<div class="bottom-box"> <div class="bottom-box">
@ -145,26 +118,26 @@
</div> </div>
<!-- 精华 --> <!-- 精华 -->
<div class="rightTop"> <div class="rightTop">
<div> <img class="rightTop-img" src="@/assets/img/icon/topRight .png">
<span>精华</span> <span>精华</span>
</div> </div>
</div> </div>
</div>
<!-- 广告 --> <!-- 广告 -->
<div class="banner-box"> <div class="banner-box">
<svg-icon icon-class="test-banner" class-name="banner"></svg-icon> <svg-icon icon-class="test-banner" class-name="banner"></svg-icon>
</div> </div>
<!-- 分页 --> <!-- 分页 -->
<div class="paging-box"> <!-- <div class="paging-box">
<el-pagination layout="prev, pager, next" :total="100"> <el-pagination layout="prev, pager, next" :total="100">
</el-pagination> </el-pagination>
</div> </div> -->
</section> </section>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import plateNavigation from '@/components/PlateNavigation.vue'
export default { export default {
name: "Collect", name: "Collect",
data() { data() {
@ -190,6 +163,9 @@ export default {
], ],
}; };
}, },
components: {
plateNavigation
},
methods: { methods: {
hotLabelClick(index) { hotLabelClick(index) {
this.hotActive = index; this.hotActive = index;
@ -214,6 +190,7 @@ export default {
border: 0.013333rem solid rgba(127, 127, 127, 1); border: 0.013333rem solid rgba(127, 127, 127, 1);
font-size: 0.3rem; font-size: 0.3rem;
color: #333; color: #333;
img { img {
width: 0.32rem; width: 0.32rem;
height: 0.32rem; height: 0.32rem;
@ -254,7 +231,7 @@ export default {
// //
.setting-title { .setting-title {
text-align: center; text-align: center;
padding: 0.56rem 0; padding: .64rem 0 1.06rem;
font-size: 0.48rem; font-size: 0.48rem;
font-weight: bolder; font-weight: bolder;
color: #000; color: #000;
@ -264,7 +241,10 @@ export default {
.setting-total { .setting-total {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin: 0.25rem 0.4rem 0 0.5rem; // margin: 0.25rem 0.4rem 0 0.5rem;
// margin: 0 0.4rem 0 0.5rem;
margin-right: .32rem;
margin-left: .64rem;
b { b {
font-weight: bolder; font-weight: bolder;
@ -276,32 +256,38 @@ export default {
font-size: 0.32rem; font-size: 0.32rem;
color: #000; color: #000;
font-weight: 400; font-weight: 400;
color: #333;
font-size: .32rem;
} }
.setting-add-img { .setting-add-img {
width: 0.4rem; width: 0.4rem;
height: 0.4rem; height: 0.4rem;
margin-right: 0.07rem; margin-right: .16rem;
} }
// //
.setting-sections { .setting-sections {
width: 100%; width: 100%;
overflow-y: scroll; overflow-y: scroll;
display: inherit; // display: inherit;
margin: 0.45rem 0 0; // margin-top: 0.45rem;
margin-top: .8rem;
max-height: 58vh; max-height: 58vh;
margin-bottom: 2.8rem; margin-bottom: .7733rem;
.setting-item { .setting-item {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-left: 0.87rem; // margin-left: 0.87rem;
margin-left: 1.04rem;
border-bottom: 0.013333rem solid #eee; border-bottom: 0.013333rem solid #eee;
position: relative; position: relative;
padding: 0.5rem 0; // padding: 0.5rem 0;
padding: .58rem 0;
font-size: .36rem;
&::before { &::before {
content: ""; content: "";
@ -309,7 +295,9 @@ export default {
height: 0.32rem; height: 0.32rem;
border-radius: 0.16rem; border-radius: 0.16rem;
position: absolute; position: absolute;
top: 0.6rem; // top: 0.6rem;
top: 50%;
transform: translateY(-50%);
left: -0.4rem; left: -0.4rem;
background-color: #62b1ff; background-color: #62b1ff;
} }
@ -321,6 +309,7 @@ export default {
&:last-child { &:last-child {
border: none; border: none;
} }
.setting-star { .setting-star {
width: 0.48rem; width: 0.48rem;
height: 0.48rem; height: 0.48rem;
@ -333,15 +322,15 @@ export default {
.setting-close { .setting-close {
width: 50%; width: 50%;
margin: 0.666667rem auto; margin: 0 auto .72rem;
border: 0.013333rem solid #ccc; border: 0.013333rem solid #ccc;
height: 1.28rem; height: 1.28rem;
line-height: 1.28rem; line-height: 1.28rem;
border-radius: 0.67rem; border-radius: 0.67rem;
text-align: center; text-align: center;
position: fixed; // position: fixed;
bottom: 0; // bottom: 0;
left: 25%; // left: 25%;
} }
} }
@ -353,7 +342,7 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin-top: 0.67rem; margin: 0.67rem 0.35rem;
background-color: #fff; background-color: #fff;
.notCollect-img { .notCollect-img {
@ -369,18 +358,20 @@ export default {
.collect-btn { .collect-btn {
display: flex; display: flex;
align-items: center; align-items: center;
padding-top: 1rem;
padding-bottom: 1rem;
.collect-btn-text { .collect-btn-text {
color: #000; color: #000;
font-weight: bold; font-weight: 650;
font-size: 0.4rem; font-size: 0.4rem;
margin: 1rem 0.25rem;
} }
// //
.icon-collect { .icon-collect {
width: 0.48rem; width: 0.48rem;
height: 0.48rem; height: 0.48rem;
margin-left: 0.25rem;
} }
} }
} }

View File

@ -2,7 +2,6 @@
<div> <div>
<header-nav :issearch="true" :needgetuser="true"> <header-nav :issearch="true" :needgetuser="true">
<template slot="header-title">寄托天下论坛</template> <template slot="header-title">寄托天下论坛</template>
<search-box slot="search"></search-box>
</header-nav> </header-nav>
<nav> <nav>
<router-link to="/recommend">推荐阅读</router-link> <router-link to="/recommend">推荐阅读</router-link>
@ -20,7 +19,6 @@
<script> <script>
import HeaderNav from "../components/HeaderNav"; import HeaderNav from "../components/HeaderNav";
import SearchBox from "../components/SearchBox.vue";
export default { export default {
name: "Index", name: "Index",
data() { data() {
@ -28,7 +26,6 @@ export default {
}, },
components: { components: {
HeaderNav, HeaderNav,
SearchBox,
}, },
}; };
</script> </script>
@ -56,6 +53,7 @@ nav {
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-focus: none; -moz-user-focus: none;
-moz-user-select: none; -moz-user-select: none;
color: #555;
&.router-link-exact-active { &.router-link-exact-active {
color: #000; color: #000;
@ -64,6 +62,7 @@ nav {
} }
} }
} }
// //
.publish { .publish {
background-color: rgba(253, 223, 109, 1); background-color: rgba(253, 223, 109, 1);

View File

@ -2,14 +2,16 @@
<div class="recommend"> <div class="recommend">
<!-- 热门版块 --> <!-- 热门版块 -->
<div class="hot-box"> <div class="hot-box">
<div class="hot-label" :class="{'active': hotActive == index}" v-for="(item, index) in list" :key="index" @click="hotLabelClick(index)">{{item.label}}</div> <div class="hot-label" :class="{ 'active': hotActive == index }" v-for="(item, index) in list" :key="index"
@click="hotLabelClick(index)">{{ item.label }}</div>
</div> </div>
<!-- 路径 --> <!-- 路径 -->
<div class="path-box"> <plate-navigation stairname="寄托学术类备" subsectionsname="SAT、AP考试、海外本科申…"></plate-navigation>
<!-- <div class="path-box">
<div>论坛</div> <div>论坛</div>
<div class="oneEllipsis">论坛论坛论坛论坛论坛</div> <div class="oneEllipsis">论坛论坛论坛论坛论坛</div>
<div class="oneEllipsis">论坛</div> <div class="oneEllipsis">论坛</div>
</div> </div> -->
<!-- 内容区域 --> <!-- 内容区域 -->
<section> <section>
<!-- 帖子 --> <!-- 帖子 -->
@ -19,7 +21,8 @@
<div class="top-title">23fall 美国llm 求定位</div> <div class="top-title">23fall 美国llm 求定位</div>
</div> </div>
<div class="center"> <div class="center">
<div class="center-text moreEllipsis">背景生于80年代中期英语基础不好备考托福3个月刚好100分2018年8月开始读LLM. 读书期间Point Bar6666666666666666666666</div> <div class="center-text moreEllipsis">背景生于80年代中期英语基础不好备考托福3个月刚好100分2018年8月开始读LLM. 读书期间Point
Bar6666666666666666666666</div>
</div> </div>
<div class="bottom"> <div class="bottom">
<div class="bottom-box"> <div class="bottom-box">
@ -32,18 +35,17 @@
<div>1552</div> <div>1552</div>
</div> </div>
<div class="bottom-right"> <div class="bottom-right">
<svg-icon icon-class="msg" class-name="icon-look"></svg-icon> <svg-icon icon-class="msg" class-name="icon-msg"></svg-icon>
<div>12</div> <div>12</div>
</div> </div>
</div> </div>
</div> </div>
<!-- 精华 --> <!-- 精华 -->
<div class="rightTop"> <div class="rightTop">
<div> <img class="rightTop-img" src="@/assets/img/icon/topRight .png">
<span>精华</span> <span>精华</span>
</div> </div>
</div> </div>
</div>
<div class="card-box"> <div class="card-box">
<div class="top moreEllipsis"> <div class="top moreEllipsis">
<div class="top-label">经验</div> <div class="top-label">经验</div>
@ -77,9 +79,7 @@
</div> </div>
<!-- 分页 --> <!-- 分页 -->
<div class="paging-box"> <div class="paging-box">
<el-pagination <el-pagination layout="prev, pager, next" :total="100">
layout="prev, pager, next"
:total="100">
</el-pagination> </el-pagination>
</div> </div>
</section> </section>
@ -87,7 +87,8 @@
</template> </template>
<script> <script>
export default { import plateNavigation from '@/components/PlateNavigation.vue'
export default {
name: "Recommend",// name: "Recommend",//
data() { data() {
return { return {
@ -108,14 +109,15 @@
] ]
} }
}, },
components: {
plateNavigation
},
methods: { methods: {
hotLabelClick(index) { hotLabelClick(index) {
this.hotActive = index this.hotActive = index
} }
} }
} }
</script> </script>
<style> <style></style>
</style>