From 7c8f7d570f4e5027f604dd15a561525891ac0378 Mon Sep 17 00:00:00 2001 From: "KONGDY-PC\\Kongdy" Date: Mon, 23 Oct 2023 10:37:39 +0800 Subject: [PATCH 01/31] =?UTF-8?q?=E6=BB=A1=E5=87=8F=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../promotion/rewardActivity/RewardForm.vue | 195 ++++++++++++++++ .../mall/promotion/rewardActivity/index.vue | 213 ++++++++++++++++++ 2 files changed, 408 insertions(+) create mode 100644 src/views/mall/promotion/rewardActivity/RewardForm.vue create mode 100644 src/views/mall/promotion/rewardActivity/index.vue diff --git a/src/views/mall/promotion/rewardActivity/RewardForm.vue b/src/views/mall/promotion/rewardActivity/RewardForm.vue new file mode 100644 index 00000000..375aff7a --- /dev/null +++ b/src/views/mall/promotion/rewardActivity/RewardForm.vue @@ -0,0 +1,195 @@ + + diff --git a/src/views/mall/promotion/rewardActivity/index.vue b/src/views/mall/promotion/rewardActivity/index.vue new file mode 100644 index 00000000..7a05c9fc --- /dev/null +++ b/src/views/mall/promotion/rewardActivity/index.vue @@ -0,0 +1,213 @@ + + From 8935188a820c70c843780df0321008d83c407ee5 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Wed, 25 Oct 2023 16:07:58 +0800 Subject: [PATCH 02/31] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A4=BE=E4=BA=A4?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=20CRUD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/social/client/index.ts | 36 +++ src/utils/dict.ts | 1 + .../system/social/client/SocialClientForm.vue | 146 +++++++++++ src/views/system/social/client/index.vue | 248 ++++++++++++++++++ 4 files changed, 431 insertions(+) create mode 100644 src/api/system/social/client/index.ts create mode 100644 src/views/system/social/client/SocialClientForm.vue create mode 100644 src/views/system/social/client/index.vue diff --git a/src/api/system/social/client/index.ts b/src/api/system/social/client/index.ts new file mode 100644 index 00000000..da87378e --- /dev/null +++ b/src/api/system/social/client/index.ts @@ -0,0 +1,36 @@ +import request from '@/config/axios' + +export interface SocialClientVO { + id: number + name: string + socialType: number + userType: number + clientId: string + clientSecret: string + status: number +} + +// 查询社交客户端列表 +export const getSocialClientPage = async (params) => { + return await request.get({ url: `/system/social-client/page`, params }) +} + +// 查询社交客户端详情 +export const getSocialClient = async (id: number) => { + return await request.get({ url: `/system/social-client/get?id=` + id }) +} + +// 新增社交客户端 +export const createSocialClient = async (data: SocialClientVO) => { + return await request.post({ url: `/system/social-client/create`, data }) +} + +// 修改社交客户端 +export const updateSocialClient = async (data: SocialClientVO) => { + return await request.put({ url: `/system/social-client/update`, data }) +} + +// 删除社交客户端 +export const deleteSocialClient = async (id: number) => { + return await request.delete({ url: `/system/social-client/delete?id=` + id }) +} diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 489d8e4b..65672a8b 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -116,6 +116,7 @@ export enum DICT_TYPE { SYSTEM_OAUTH2_GRANT_TYPE = 'system_oauth2_grant_type', SYSTEM_MAIL_SEND_STATUS = 'system_mail_send_status', SYSTEM_NOTIFY_TEMPLATE_TYPE = 'system_notify_template_type', + SYSTEM_SOCIAL_CLIENT_TYPE = 'system_social_client_type', // ========== INFRA 模块 ========== INFRA_BOOLEAN_STRING = 'infra_boolean_string', diff --git a/src/views/system/social/client/SocialClientForm.vue b/src/views/system/social/client/SocialClientForm.vue new file mode 100644 index 00000000..f4d02437 --- /dev/null +++ b/src/views/system/social/client/SocialClientForm.vue @@ -0,0 +1,146 @@ + + diff --git a/src/views/system/social/client/index.vue b/src/views/system/social/client/index.vue new file mode 100644 index 00000000..de3bf705 --- /dev/null +++ b/src/views/system/social/client/index.vue @@ -0,0 +1,248 @@ + + + From 6ee2492ff167bd0036c19c9d502a1d10b4069388 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Wed, 25 Oct 2023 17:02:11 +0800 Subject: [PATCH 03/31] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A4=BE=E4=BA=A4?= =?UTF-8?q?=E7=94=A8=E6=88=B7=20RUD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/social/user/index.ts | 34 +++ .../system/social/user/SocialUserForm.vue | 139 ++++++++++++ src/views/system/social/user/index.vue | 204 ++++++++++++++++++ 3 files changed, 377 insertions(+) create mode 100644 src/api/system/social/user/index.ts create mode 100644 src/views/system/social/user/SocialUserForm.vue create mode 100644 src/views/system/social/user/index.vue diff --git a/src/api/system/social/user/index.ts b/src/api/system/social/user/index.ts new file mode 100644 index 00000000..f2850a62 --- /dev/null +++ b/src/api/system/social/user/index.ts @@ -0,0 +1,34 @@ +import request from '@/config/axios' + +export interface SocialUserVO { + id: number + type: number + openid: string + token: string + rawTokenInfo: string + nickname: string + avatar: string + rawUserInfo: string + code: string + state: string +} + +// 查询社交用户列表 +export const getSocialUserPage = async (params) => { + return await request.get({ url: `/system/social-user/page`, params }) +} + +// 查询社交用户详情 +export const getSocialUser = async (id: number) => { + return await request.get({ url: `/system/social-user/get?id=` + id }) +} + +// 修改社交用户 +export const updateSocialUser = async (data: SocialUserVO) => { + return await request.put({ url: `/system/social-user/update`, data }) +} + +// 删除社交用户 +export const deleteSocialUser = async (id: number) => { + return await request.delete({ url: `/system/social-user/delete?id=` + id }) +} diff --git a/src/views/system/social/user/SocialUserForm.vue b/src/views/system/social/user/SocialUserForm.vue new file mode 100644 index 00000000..181bc6f8 --- /dev/null +++ b/src/views/system/social/user/SocialUserForm.vue @@ -0,0 +1,139 @@ + + diff --git a/src/views/system/social/user/index.vue b/src/views/system/social/user/index.vue new file mode 100644 index 00000000..f4f0a8b0 --- /dev/null +++ b/src/views/system/social/user/index.vue @@ -0,0 +1,204 @@ + + + From 88a22d90e5c918d480d4295afcdd85394b013f85 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Thu, 26 Oct 2023 16:19:22 +0800 Subject: [PATCH 04/31] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=92=89=E9=92=89?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Profile/Index.vue | 11 +++++----- src/views/Profile/components/UserSocial.vue | 24 ++++++++++++++++----- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/src/views/Profile/Index.vue b/src/views/Profile/Index.vue index b05f93cc..8e1695b5 100644 --- a/src/views/Profile/Index.vue +++ b/src/views/Profile/Index.vue @@ -15,7 +15,7 @@
- + @@ -23,17 +23,18 @@ - +
-