|
|
@@ -73,15 +73,16 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="recover" v-if="item.commentsReply">
|
|
|
- 商家回复:{{item.commentContent}}
|
|
|
+ 商家回复:{{item.commentsReply[0].commentContent}}
|
|
|
</view>
|
|
|
|
|
|
- <view class="reply">
|
|
|
- <input v-model="item.reply" placeholder="回复..." style="height: 36rpx;" />
|
|
|
- </view>
|
|
|
- <view class="remove" v-if="item.commentsReply">
|
|
|
+
|
|
|
+ <!-- <view class="remove" v-if="item.commentsReply">
|
|
|
{{item.time}}{{item.commentContent}}
|
|
|
<view class="btn">删除回复</view>
|
|
|
+ </view> -->
|
|
|
+ <view class="reply">
|
|
|
+ <input v-model="item.reply" placeholder="回复..." style="height: 36rpx;" @confirm="replyUser(item)" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</mescroll-uni>
|
|
|
@@ -198,6 +199,29 @@
|
|
|
this.mescroll.endErr()
|
|
|
})
|
|
|
},
|
|
|
+ replyUser(item){
|
|
|
+ console.log(item)
|
|
|
+ let data = {
|
|
|
+ commentContent:item.reply,
|
|
|
+ commentId:item.commentId
|
|
|
+ }
|
|
|
+ this.$http.post('/app/comments/reply',data).then(res =>{
|
|
|
+ console.log(res)
|
|
|
+ if(res.data.code == 200){
|
|
|
+ uni.showToast({
|
|
|
+ icon:'none',
|
|
|
+ title:'回复成功'
|
|
|
+ })
|
|
|
+ let page = {
|
|
|
+ num: 1,
|
|
|
+ size: 10
|
|
|
+ }
|
|
|
+ this.getcommentList(page)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
onShow() {
|
|
|
let that = this
|