This commit is contained in:
zhaofang
2022-11-14 19:01:24 +08:00
parent 4235b8f9e7
commit 9f5cfcf264

View File

@@ -70,7 +70,7 @@
<text v-html="displayAll(an)"></text>
<text style="color: #00aaff;word-break: normal; " v-if="an.content.length>minTextLen" @click="changeIsAll(an)">{{an.isAll?' 收起':' 全文'}}</text>
</view>
<view class="comment-btns">
<view class="comment-btns" style="margin-bottom: 20upx;">
<view><time-show :time="an.sysCreateTime"></time-show></view>
<view class="" style="display: flex;">
<view style="font-size: 12px;color: #999999;line-height: 50upx;" @click="openReply(an,{})">
@@ -96,7 +96,7 @@
</view> -->
</view>
<!--一级评论二级数据-->
<view v-if="an.answers && an.answers.length!=0" class="comment-replys" style="margin-left: 60upx;">
<!-- <view v-if="an.answers && an.answers.length!=0" class="comment-replys" style="margin-left: 60upx;">
<view v-for="(ele, replyIndex) in an.answers" :key="replyIndex" class="comment">
<view class="comment-top">
<view style="display: flex;">
@@ -128,15 +128,7 @@
<text style="color: #387DF7;"> {{ele.praises}}</text>
</view>
</view>
<!-- <view>
<u-icon @click="openReply(ele,an)" name="chat" color="#979797" size="18" label="回复"></u-icon>
</view>
<view>
<u-icon v-if="userInfo.aid==ele.sysCreateAid" @click="openBtns(ele,replyIndex)" name="more-dot-fill" size="20"></u-icon>
</view> -->
</view>
<!--评论的二级显示-->
<view v-if="ele.answers && ele.answers.length!=0" class="comment-replys">
<view v-for="(row, rowIdx) in ele.answers" :key="rowIdx" class="comment">
<view class="comment-top">
@@ -164,19 +156,13 @@
<image style="width: 32upx;height: 32upx;vertical-align: middle;margin-right: 10upx;" src="../../static/images/icon/bar-praise-active.png" size="24"></image>
<text style="color: #387DF7;"> {{row.praises}}</text>
</view>
<!-- <view>
<u-icon @click="openReply(row,ele)" name="chat" color="#979797" size="18" label="回复"></u-icon>
</view>
<view>
<u-icon v-if="userInfo.aid==row.sysCreateAid" @click="openBtns(row,rowIdx)" name="more-dot-fill" size="20"></u-icon>
</view> -->
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view> -->
</view>
</view>
</view>
@@ -194,12 +180,12 @@
<u-popup :show="replyShow" @close="closeReply" :round="16">
<view>
<view>
<view style="padding: 40rpx;flex: 1; white-space: pre-wrap; word-break: break-all;">
<view style="padding: 40rpx;white-space: pre-wrap; word-break: break-all;">
<u--textarea style="border: none;background: #F4F4F4;" :height="50" v-model="answercontent" :placeholder="placeholder" count maxlength="200"></u--textarea>
</view>
<view style="padding: 0 10px 40upx 0;text-align: right;">
<view style="padding: 0 10px 40upx 0;display: flex;justify-content: flex-end;">
<text v-if="replyLevel=='one'" @click="askQuestioner">@</text>
<u-button style="padding: 10upx 30upx;height: 52upx;background: #87B3FF;border-color: #87B3FF;margin: 0 40upx 0 40upx;" @click="submitReply" type="primary" size="small" :text="replyLevel=='one'? '提交回答':'提交回复'"></u-button>
<u-button style="padding: 10upx 30upx;height: 52upx;background: #87B3FF;border-color: #87B3FF;margin: 0 40upx 0 40upx;width: 200upx;" @click="submitReply" type="primary" size="small" :text="replyLevel=='one'? '提交回答':'提交回复'"></u-button>
</view>
</view>
</view>
@@ -426,7 +412,9 @@ export default {
apiQa.page(params).then(res => {
if (res.status == 200) {
let allList=[];
this.answerList = [];
if(this.pageIndex == 1) {
this.answerList = [];
}
this.answers= res.result.count;
let uids=[];
let level3ParentIds=[];