From 09496a038b036adcd7eea5b7d32df424ae46887e Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 21 Aug 2023 21:45:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=BE=E5=88=B0=E7=9A=84=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/member/signin.js | 21 +++ pages/users/user_sgin/index.vue | 251 +++++++++++++------------------- 2 files changed, 121 insertions(+), 151 deletions(-) create mode 100644 api/member/signin.js diff --git a/api/member/signin.js b/api/member/signin.js new file mode 100644 index 00000000..95623db7 --- /dev/null +++ b/api/member/signin.js @@ -0,0 +1,21 @@ +import request from "@/utils/request.js"; + +// 获得签到规则列表 +export function getSignInConfigList() { + return request.get('app-api/member/sign-in/config/list'); +} + +// 获得个人签到统计 +export function getSignInRecordSummary() { + return request.get('app-api/member/sign-in/record/get-summary') +} + +// 签到 +export function createSignInRecord() { + return request.post('app-api/member/sign-in/record/create') +} + +// 获得签到记录分页 +export function getSignRecordPage() { + return request.get('app-api/member/sign-in/record/page'); +} diff --git a/pages/users/user_sgin/index.vue b/pages/users/user_sgin/index.vue index d04ea13f..71071156 100644 --- a/pages/users/user_sgin/index.vue +++ b/pages/users/user_sgin/index.vue @@ -1,39 +1,43 @@ - -