diff --git a/src/api/privacy/index.ts b/src/api/privacy/index.ts new file mode 100644 index 0000000..cf697cb --- /dev/null +++ b/src/api/privacy/index.ts @@ -0,0 +1,43 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +//隐私协议列表 +export function privacyList(data): AxiosPromise { + return request({ + url: '/admin/v1/agreement/list', + method: 'post', + data + }); +} +//协议类型列表 +export function agreementTypeList(data): AxiosPromise { + return request({ + url: '/admin/v1/agreement/types', + method: 'post', + data + }); +} +//隐私协议添加 +export function addPrivacy(data): AxiosPromise { + return request({ + url: '/admin/v1/agreement/create', + method: 'post', + data + }) +} +//隐私协议修改 +export function updatePrivacy(data): AxiosPromise { + return request({ + url: '/admin/v1/agreement/update', + method: 'post', + data + }) +} + +//隐私协议删除 +export function deletePrivacy(data): AxiosPromise { + return request({ + url: '/admin/v1/agreement/delete', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/components/WangEditor/index.vue b/src/components/WangEditor/index.vue index 2e3e2eb..6f8d683 100644 --- a/src/components/WangEditor/index.vue +++ b/src/components/WangEditor/index.vue @@ -10,8 +10,7 @@ diff --git a/src/views/privacy/index.vue b/src/views/privacy/index.vue new file mode 100644 index 0000000..faa6caa --- /dev/null +++ b/src/views/privacy/index.vue @@ -0,0 +1,157 @@ + + + + +