Commit 125e0181 authored by liwei's avatar liwei

修改了黑名单接口

parent 606e9857
...@@ -209,8 +209,9 @@ export function getBlackList(data){ ...@@ -209,8 +209,9 @@ export function getBlackList(data){
// 取消关注 // 取消关注
export function deleteBlack(data) { export function deleteBlack(data) {
return request({ return request({
url: '/app/opmBlackList/delete/'+data, url: '/app/opmBlackList/delete',
method: 'delete', method: 'delete',
data
}) })
} }
...@@ -269,4 +270,4 @@ export function isStopAccount() { ...@@ -269,4 +270,4 @@ export function isStopAccount() {
url: '/app/memInfo/getUserIsStop', url: '/app/memInfo/getUserIsStop',
method: 'get', method: 'get',
}) })
} }
\ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
:options="options" :options="options"
v-for="(item, index) in dataList" v-for="(item, index) in dataList"
:key="index" :key="index"
@click="handleDelete(item.businessId)" @click="handleDelete(item)"
> >
<view <view
class="swipe-action u-border-top" class="swipe-action u-border-top"
...@@ -75,13 +75,18 @@ export default { ...@@ -75,13 +75,18 @@ export default {
this.$refs.paging.completeByTotal(this.blackList,res.data.total); this.$refs.paging.completeByTotal(this.blackList,res.data.total);
}); });
}, },
handleDelete(id){ handleDelete(item){
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: '确定移除吗?', content: '确定移除吗?',
success: (res) => { success: (res) => {
if (res.confirm) { 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) { if (res.data.code == 200) {
uni.showToast({ uni.showToast({
title: '移除成功', 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