一部分完成
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
<image></image>
|
||||
<text class="u-line-1" style="width:130rpx">{{name}}</text>
|
||||
</view>
|
||||
<view class="pingbi">
|
||||
<image></image>
|
||||
<text>1屏蔽用户</text>
|
||||
<view class="pingbi" @click.stop="articleAddShield">
|
||||
<image src="/static/image/common/7.png"></image>
|
||||
<text>屏蔽用户</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -81,8 +81,20 @@ export default {
|
||||
rid:this.rid
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
articleAddShield() {
|
||||
console.log(this.item)
|
||||
this.$u.api.articleAddShield({
|
||||
member_id: this.item.user_id,
|
||||
}).then(res => {
|
||||
// console.log(res)
|
||||
if(res.errCode == 0) {
|
||||
this.$u.toast(res.message);
|
||||
this.$emit("updateList");
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
props:['name','image','url','zid','rid']
|
||||
props:['name','image','url','zid','rid','item']
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user