|
|
@ -2,7 +2,7 @@
|
|
|
|
* @Author: ch
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-06-21 18:19:13
|
|
|
|
* @Date: 2022-06-21 18:19:13
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-06-30 14:54:12
|
|
|
|
* @LastEditTime: 2022-06-30 17:58:44
|
|
|
|
* @Description: file content
|
|
|
|
* @Description: file content
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
@ -21,7 +21,7 @@
|
|
|
|
<text>
|
|
|
|
<text>
|
|
|
|
{{detail.merchantComment.userName}}
|
|
|
|
{{detail.merchantComment.userName}}
|
|
|
|
</text>
|
|
|
|
</text>
|
|
|
|
<text>{{detail.merchantComment.createTime}}</text>
|
|
|
|
<text>{{FormatDate(detail.merchantComment.createTime, 'yyyy-mm-dd hh:ii')}}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="reply--ctx">{{detail.merchantComment.commentContent}}</view>
|
|
|
|
<view class="reply--ctx">{{detail.merchantComment.commentContent}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
@ -30,7 +30,7 @@
|
|
|
|
<text>
|
|
|
|
<text>
|
|
|
|
{{item.userName}} {{item.parentId !== detail.id ? ` 回复 ${item.parentUserName}` : ''}}
|
|
|
|
{{item.userName}} {{item.parentId !== detail.id ? ` 回复 ${item.parentUserName}` : ''}}
|
|
|
|
</text>
|
|
|
|
</text>
|
|
|
|
<text>{{item.createTime}}</text>
|
|
|
|
<text>{{FormatDate(item.createTime, 'yyyy-mm-dd hh:ii')}}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="reply--ctx">{{item.commentContent}}</view>
|
|
|
|
<view class="reply--ctx">{{item.commentContent}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
@ -69,7 +69,7 @@ import BsCommentInfo from '../../../components/BsCommentInfo.vue'
|
|
|
|
import BsCommentUserInfo from '../../../components/BsCommentUserInfo.vue'
|
|
|
|
import BsCommentUserInfo from '../../../components/BsCommentUserInfo.vue'
|
|
|
|
import UiButton from '../../../components/UiButton.vue'
|
|
|
|
import UiButton from '../../../components/UiButton.vue'
|
|
|
|
import {ApiGetCommentDetail, ApiPostComment, ApiPutCommentUseful} from '@/common/api/comment'
|
|
|
|
import {ApiGetCommentDetail, ApiPostComment, ApiPutCommentUseful} from '@/common/api/comment'
|
|
|
|
import {HandleApiError, Debounce} from '@/common/utils'
|
|
|
|
import {HandleApiError, Debounce, FormatDate} from '@/common/utils'
|
|
|
|
import COMMENT from '@/common/dicts/comment'
|
|
|
|
import COMMENT from '@/common/dicts/comment'
|
|
|
|
import BsEmpty from '../../../components/BsEmpty.vue'
|
|
|
|
import BsEmpty from '../../../components/BsEmpty.vue'
|
|
|
|
import BsCommentFollowInfo from '../../../components/BsCommentFollowInfo.vue'
|
|
|
|
import BsCommentFollowInfo from '../../../components/BsCommentFollowInfo.vue'
|
|
|
@ -97,7 +97,7 @@ export default {
|
|
|
|
this.getDetail();
|
|
|
|
this.getDetail();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
methods:{
|
|
|
|
|
|
|
|
FormatDate,
|
|
|
|
async getDetail(){
|
|
|
|
async getDetail(){
|
|
|
|
const {error, result} = await ApiGetCommentDetail({
|
|
|
|
const {error, result} = await ApiGetCommentDetail({
|
|
|
|
commentId : this.commentId
|
|
|
|
commentId : this.commentId
|
|
|
|