一部分完成

This commit is contained in:
2020-08-13 10:04:50 +08:00
parent c39d6ba811
commit e55aa62bcc
4 changed files with 33 additions and 15 deletions

View File

@@ -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>