Commit 125e0181 authored by liwei's avatar liwei

修改了黑名单接口

parent 606e9857
......@@ -209,8 +209,9 @@ export function getBlackList(data){
// 取消关注
export function deleteBlack(data) {
return request({
url: '/app/opmBlackList/delete/'+data,
url: '/app/opmBlackList/delete',
method: 'delete',
data
})
}
......@@ -269,4 +270,4 @@ export function isStopAccount() {
url: '/app/memInfo/getUserIsStop',
method: 'get',
})
}
\ No newline at end of file
}
......@@ -6,7 +6,7 @@
:options="options"
v-for="(item, index) in dataList"
:key="index"
@click="handleDelete(item.businessId)"
@click="handleDelete(item)"
>
<view
class="swipe-action u-border-top"
......@@ -75,13 +75,18 @@ export default {
this.$refs.paging.completeByTotal(this.blackList,res.data.total);
});
},
handleDelete(id){
handleDelete(item){
uni.showModal({
title: '提示',
content: '确定移除吗?',
success: (res) => {
if (res.confirm) {
deleteBlack(id).then(res => {
const params = {
businessId: item.businessId,
userId: item.userId,
targetId: item.targetId
}
deleteBlack(params).then(res => {
if (res.data.code == 200) {
uni.showToast({
title: '移除成功',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment