update photo adout publish
This commit is contained in:
@@ -31,12 +31,12 @@
|
||||
<view class="comment-list">
|
||||
<view class="item" v-for="(item, index) in info.articlecomment" :key="index">
|
||||
<view class="info">
|
||||
<image></image>
|
||||
<image :src="item.member_avatar"></image>
|
||||
<view class="center">
|
||||
<view class="name">{{item.member_nickname}}回复了{{info.reply_member_nickname}}</view>
|
||||
<view class="name">{{item.member_nickname}}{{item.reply_member_nickname==null?"评论了文章":" 回复了 "+item.reply_member_nickname}}</view>
|
||||
<view class="time">{{item.create_time}}</view>
|
||||
</view>
|
||||
<view class="btn" @click="showreply(item.id)">回复</view>
|
||||
<view class="btn" @click="showreply(item.id,item.member_id)">回复</view>
|
||||
</view>
|
||||
<view class="content u-line-1">{{item.content}}</view>
|
||||
</view>
|
||||
@@ -63,7 +63,8 @@ export default {
|
||||
},
|
||||
type:1,
|
||||
content:"",
|
||||
pid:null
|
||||
pid:null,
|
||||
replyid:null
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
@@ -74,9 +75,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
// 展示回复弹框
|
||||
showreply(id){
|
||||
showreply(id,replyid){
|
||||
this.showChat = true
|
||||
this.pid = id
|
||||
this.replyid = replyid
|
||||
},
|
||||
// 回复评论
|
||||
reply(){
|
||||
@@ -91,7 +93,8 @@ export default {
|
||||
this.$u.api.reply({
|
||||
pid:that.pid,
|
||||
content:that.content,
|
||||
article_id: that.id
|
||||
article_id: that.id,
|
||||
reply_id:that.replyid
|
||||
}).then(res => {
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
|
||||
Reference in New Issue
Block a user