订单,视频通话需要开发
This commit is contained in:
@@ -58,7 +58,8 @@
|
||||
const res = await getUserMomentsList({
|
||||
pageNum,
|
||||
pageSize,
|
||||
targetUserId: isType.value == 1 ? userInfo.value.userId : targetUserId.value
|
||||
targetUserId:
|
||||
isType.value == 1 ? userInfo.value.userId : targetUserId.value
|
||||
})
|
||||
const list = res.rows.map(item => {
|
||||
return {
|
||||
@@ -93,8 +94,8 @@
|
||||
|
||||
/** 关闭评论框 */
|
||||
const closeComment = () => {
|
||||
contentData.value = ''
|
||||
inputId.value = ''
|
||||
// contentData.value = ''
|
||||
// inputId.value = ''
|
||||
}
|
||||
|
||||
/** 发布评论 */
|
||||
@@ -108,6 +109,8 @@
|
||||
const res = await addUserMomentsComment(data)
|
||||
item.commentList.push(res.data)
|
||||
closeComment()
|
||||
contentData.value = ''
|
||||
inputId.value = ''
|
||||
}
|
||||
|
||||
/** 删除动态 */
|
||||
@@ -191,7 +194,7 @@
|
||||
|
||||
<!-- 动态列表 -->
|
||||
<view v-if="!listLoading" class="dynamic-list" @click="closeComment">
|
||||
<view v-for="item in dataList" :key="item.id" class="list">
|
||||
<view v-for="(item, i) in dataList" :key="i" class="list">
|
||||
<image
|
||||
v-if="item.avatar"
|
||||
:src="item.avatar"
|
||||
@@ -258,15 +261,30 @@
|
||||
></uni-icons>
|
||||
</view>
|
||||
<view v-if="inputId === item.id" class="input-box">
|
||||
<input
|
||||
<uni-easyinput
|
||||
v-model="contentData"
|
||||
trim
|
||||
:inputBorder="false"
|
||||
:clearable="false"
|
||||
:placeholder-style="placeholderStyle"
|
||||
confirmType="done"
|
||||
placeholder="评论"
|
||||
@confirm.stop="onComment(item)"
|
||||
>
|
||||
<template #right>
|
||||
<button @click.stop="onComment(item)">发布</button>
|
||||
</template>
|
||||
</uni-easyinput>
|
||||
<!-- <input
|
||||
v-model="contentData"
|
||||
:key="i"
|
||||
focus
|
||||
confirm-type="done"
|
||||
placeholder="评论"
|
||||
:placeholder-style="placeholderStyle"
|
||||
@confirm.stop="onComment(item)"
|
||||
/>
|
||||
<button @click.stop="onComment(item)">发布</button>
|
||||
<button @click.stop="onComment(item)">发布</button> -->
|
||||
</view>
|
||||
<!-- 评论内容 -->
|
||||
<view v-if="item.commentList.length > 0" class="comment">
|
||||
|
||||
Reference in New Issue
Block a user