Compare commits
4 Commits
8c73c39292
...
f700ecaf30
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f700ecaf30 | ||
|
|
90091f8f1e | ||
|
|
f2e0fb55a8 | ||
|
|
a1509d87c7 |
@ -3,17 +3,7 @@
|
||||
<img src="../assets/bg.png" alt="" class="bg" >
|
||||
<div class="content">
|
||||
<div class="title">{{ !isResult?'互动讨论区':'留言' }}<img src="../assets/cai.png" alt="" srcset="" class="cai"></div>
|
||||
<div class="tips" v-if="!isResult">感谢您的参与,请在文末点击“完成”提交</div>
|
||||
<div class="conmmentbox">
|
||||
<div class="commentwrapercell">
|
||||
<comment-list :childList="list" @freshLike="freshLike" :case_id="case_id" :project_id="project_id" @freshSecComment="freshSecComment" @handleFreshList="handleFreshList"></comment-list>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="loadmore" v-if="list.length<total" @click="loadMore">——加载更多留言({{total-list.length}}条)—— </div>
|
||||
<div class="add" v-if="isResult" @click="showLiuyan=true">添加留言</div>
|
||||
|
||||
|
||||
<div class="tips" v-if="!isResult">感谢您的参与,请在文中点击“完成”提交</div>
|
||||
<div class="bottom" v-if="!isResult">
|
||||
<div class="textbox">
|
||||
<van-field :autosize="{ minHeight: 150 }" v-model="message" rows="2" autosize type="textarea"
|
||||
@ -21,6 +11,7 @@
|
||||
</div>
|
||||
<button class="button" @click="handleSubmit">完成</button>
|
||||
</div>
|
||||
<div class="add" v-if="isResult" @click="showLiuyan=true">添加留言</div>
|
||||
<div class="bottom" v-if="showLiuyan">
|
||||
<div class="textbox">
|
||||
<van-field :autosize="{ minHeight: 150 }" v-model="message" rows="2" autosize type="textarea"
|
||||
@ -28,6 +19,17 @@
|
||||
</div>
|
||||
<button class="button" :disabled="isLock" @click="handleAdd">完成</button>
|
||||
</div>
|
||||
<div class="conmmentbox">
|
||||
<div class="commentwrapercell">
|
||||
<comment-list :childList="list" @freshLike="freshLike" :case_id="case_id" :project_id="project_id" @freshSecComment="freshSecComment" @handleFreshList="handleFreshList"></comment-list>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="loadmore" v-if="list.length<total" @click="loadMore">——加载更多留言({{total-list.length}}条)—— </div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<c-dialog :message="dialog_message" ref="cdialog" @handledConfirm="handledConfirm" @handledCancel="handledCancel"></c-dialog>
|
||||
@ -265,6 +267,7 @@ const handleAdd=async()=>{
|
||||
if(code==200){
|
||||
handleFreshList()
|
||||
message.value='';
|
||||
showLiuyan.value=false;
|
||||
showToast('留言成功')
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user