diff --git a/src/api/login/login.ts b/src/api/login/login.ts index df61ae0..e6be625 100644 --- a/src/api/login/login.ts +++ b/src/api/login/login.ts @@ -42,3 +42,14 @@ export async function forgetPassword(params: any) { params, }) } + +/** + * 忘记密码第二步 + */ +export async function updateSUser(params: any) { + return http.request({ + url: `/ocr/sUser/updateSUser`, + method: 'post', + params, + }) +} diff --git a/src/api/message/message.ts b/src/api/message/message.ts index 6e1f835..7136fb5 100644 --- a/src/api/message/message.ts +++ b/src/api/message/message.ts @@ -1,11 +1,10 @@ import { http } from '@/utils/http/axios' -import type { PageParam, PictureSortParam, SetTFParam } from '/#/api' /** * 获系统消息 * @returns */ -export async function getMessageList(params: PageParam) { +export async function getMessageList(params) { const res = await http.request({ url: `/ocr/msg/systemPage`, method: 'get', @@ -14,3 +13,45 @@ export async function getMessageList(params: PageParam) { return res } + +/** + * 消息详情 + * @returns + */ +export async function msgOne(params) { + const res = await http.request({ + url: `/ocr/msg/msgOne`, + method: 'get', + params, + }) + + return res +} + +/** + * 消息未读单读 + * @returns + */ +export async function readMsg(params) { + const res = await http.request({ + url: `/ocr/msg/eliminateUnreadone`, + method: 'post', + params, + }) + + return res +} + +/** + * 消息未读全读 + * @returns + */ +export async function readAllMsg(params) { + const res = await http.request({ + url: `/ocr/msg/eliminateUnreadfull`, + method: 'post', + params, + }) + + return res +} diff --git a/src/assets/images/message/arrow-down.png b/src/assets/images/message/arrow-down.png new file mode 100644 index 0000000..32d9241 Binary files /dev/null and b/src/assets/images/message/arrow-down.png differ diff --git a/src/layout/components/Header/index.vue b/src/layout/components/Header/index.vue index 8797ee5..daf3bad 100644 --- a/src/layout/components/Header/index.vue +++ b/src/layout/components/Header/index.vue @@ -1,17 +1,17 @@