diff --git a/src/api/mp/wx-account-fans.ts b/src/api/mp/wx-account-fans.ts index 176f823d..a2fbf8ad 100644 --- a/src/api/mp/wx-account-fans.ts +++ b/src/api/mp/wx-account-fans.ts @@ -61,3 +61,19 @@ export function putObj(obj) { data: obj, }); } + +export function black(obj, appid) { + return request({ + url: '/admin/wx-account-fans/black/' + appid, + method: 'post', + data: obj, + }); +} + +export function unblack(obj, appid) { + return request({ + url: '/admin/wx-account-fans/unblack/' + appid, + method: 'post', + data: obj, + }); +} diff --git a/src/views/mp/wx-account-fans/i18n/en.ts b/src/views/mp/wx-account-fans/i18n/en.ts index 76ca35c2..89a83242 100644 --- a/src/views/mp/wx-account-fans/i18n/en.ts +++ b/src/views/mp/wx-account-fans/i18n/en.ts @@ -11,6 +11,7 @@ export default { language: 'language', country: 'country', province: 'province', + isBlack: 'isBlack', city: 'city', tagIds: 'tagIds', headimgUrl: 'headimgUrl', diff --git a/src/views/mp/wx-account-fans/i18n/zh-cn.ts b/src/views/mp/wx-account-fans/i18n/zh-cn.ts index 57a2da5b..aff64f44 100644 --- a/src/views/mp/wx-account-fans/i18n/zh-cn.ts +++ b/src/views/mp/wx-account-fans/i18n/zh-cn.ts @@ -11,6 +11,7 @@ export default { language: '语言', country: '国家', province: '省份', + isBlack: '是否在黑名单', city: '城市', tagIds: '分组', headimgUrl: ' headimgUrl', diff --git a/src/views/mp/wx-account-fans/index.vue b/src/views/mp/wx-account-fans/index.vue index 9f11c57d..68c5e464 100644 --- a/src/views/mp/wx-account-fans/index.vue +++ b/src/views/mp/wx-account-fans/index.vue @@ -52,6 +52,11 @@ + + +