mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-12 12:26:49 +08:00
讨论
This commit is contained in:
@@ -39,21 +39,18 @@
|
||||
<div class="title">
|
||||
{{ projectInfo.name }}
|
||||
</div>
|
||||
<!-- todo #讨论页面 发表帖子跳转到哪里-->
|
||||
<button class="btn">发表帖子</button>
|
||||
<!-- <button class="btn">发表帖子</button>-->
|
||||
</div>
|
||||
|
||||
<div v-for="(item,i) in projectInfo.stageVoList" :key="i">
|
||||
<div class="line clearfix">
|
||||
<div class="linetitle">{{ item.name }}</div>
|
||||
<div class="radi"></div>
|
||||
<!-- todo #讨论页面 状态字段没有-->
|
||||
<div class="intime">进行中</div>
|
||||
</div>
|
||||
<div class="allbtn">
|
||||
<!-- todo #讨论页面 查询条件最新 最热 查询字段-->
|
||||
<button :class="`btnone ${param.searchType==1?'active':''}`" @click="param.searchType=1">最新</button>
|
||||
<button :class="`btntwo ${param.searchType==2?'active':''}`" @click="param.searchType=2"
|
||||
<button :class="`btnone ${param.searchType==1?'active':''}`" >最新</button>
|
||||
<button :class="`btntwo ${param.searchType==2?'active':''}`"
|
||||
style="margin-left: 20px">最热
|
||||
</button>
|
||||
</div>
|
||||
@@ -115,13 +112,13 @@ function comment({discussId: id}) {
|
||||
function like(d) {
|
||||
d.praised ? (d.praiseNum -= 1) : (d.praiseNum += 1)
|
||||
d.praised = !d.praised
|
||||
request(COMMENT_PRAISE, {targetId: d.discussId, type: 5})
|
||||
request(COMMENT_PRAISE, {targetId: d.discussId, type: 3})
|
||||
}
|
||||
|
||||
function collection(d) {
|
||||
d.collected ? (d.collectionNum -= 1) : (d.collectionNum += 1)
|
||||
d.collected = !d.collected
|
||||
request(COMMENT_COLLECTION, {targetId: d.discussId, type: 6})
|
||||
request(COMMENT_COLLECTION, {targetId: d.discussId, type: 4})
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -174,9 +171,7 @@ function collection(d) {
|
||||
background: #ffffff;
|
||||
border-radius: 8px;
|
||||
margin-top: 24px;
|
||||
// display: flex;
|
||||
// flex-direction: column;
|
||||
// align-items: center;
|
||||
display: block;
|
||||
.middletitle {
|
||||
display: flex;
|
||||
margin-top: 64px;
|
||||
@@ -216,7 +211,7 @@ function collection(d) {
|
||||
.line {
|
||||
display: flex;
|
||||
margin: 47px 45px 0 75px;
|
||||
max-width: 1810px;
|
||||
//max-width: 1810px;
|
||||
// height: 50px;
|
||||
background: #f9f9f9;
|
||||
position: relative;
|
||||
|
||||
Reference in New Issue
Block a user