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