From 7da747172467d1e32c72ba604cc6923f679af3a8 Mon Sep 17 00:00:00 2001 From: king <2229249788@qq.com> Date: Tue, 1 Aug 2023 18:02:50 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=BA=BF=E4=B8=8A=E6=B5=8B=E8=AF=95=E7=89=88?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E9=83=A8=E7=BD=B2=202.=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E6=B5=8B=E8=AF=95=E6=90=AD=E5=BB=BA=203.?= =?UTF-8?q?=E9=82=80=E7=BA=A6=E7=99=BB=E5=BD=95=E5=AF=B9=E6=8E=A5=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=204.=E8=A7=A3=E5=86=B3=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E6=8C=81=E4=B9=85=E5=8C=96=E5=A4=B1=E8=B4=A5=205.=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E5=BA=95=E9=83=A8=E5=AE=89=E5=85=A8=E8=B7=9D=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 1 + src/api/index.ts | 4 + src/api/login.ts | 4 + src/api/meeting.ts | 7 ++ src/app.config.ts | 4 +- src/components/button/MyButton.tsx | 2 +- src/components/topic/shortAnswer.tsx | 7 +- src/components/videoCover/videoCover.scss | 1 + src/config.ts | 6 + .../business/userInfo/userInfo.module.scss | 5 +- src/pages/business/userInfo/userInfo.tsx | 5 +- .../business/videoInfo/components/hours.tsx | 20 ++-- src/pages/business/videoInfo/videoInfo.scss | 28 +++-- src/pages/business/videoInfo/videoInfo.tsx | 1 - src/pages/index/index.tsx | 1 - src/pages/login/login.tsx | 2 +- src/pages/manage/bingUser/bingUser.tsx | 94 ---------------- src/pages/manage/depAdmin/depAdmin.tsx | 10 +- src/pages/manage/spotMeeting/spotMeeting.tsx | 21 +++- .../meeting.config.ts} | 0 src/pages/meeting/meeting.tsx | 105 ++++++++++++++++++ src/static/css/module.scss | 3 + src/static/img/course.png | Bin 0 -> 2080 bytes src/static/img/lock.png | Bin 0 -> 739 bytes src/static/img/order.png | Bin 0 -> 951 bytes src/static/img/userInfo.png | Bin 0 -> 2760 bytes src/store/profile.ts | 11 +- 27 files changed, 200 insertions(+), 142 deletions(-) create mode 100644 src/api/meeting.ts create mode 100644 src/config.ts delete mode 100644 src/pages/manage/bingUser/bingUser.tsx rename src/pages/{manage/bingUser/bingUser.config.ts => meeting/meeting.config.ts} (100%) create mode 100644 src/pages/meeting/meeting.tsx create mode 100644 src/static/img/course.png create mode 100644 src/static/img/lock.png create mode 100644 src/static/img/order.png create mode 100644 src/static/img/userInfo.png diff --git a/.env b/.env index 4a6ee80..e180139 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ TARO_APP_API=https://yjx.dev.yaojiankang.top TARO_APP_LGOIN=true + diff --git a/src/api/index.ts b/src/api/index.ts index 768c2df..a1634d3 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,2 +1,6 @@ export * from './user' export * from './curriculum' +export * from './login' +export * from './meeting' +export * from './public' +export * from './manage' diff --git a/src/api/login.ts b/src/api/login.ts index 9a3e5a6..8ff1394 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -6,9 +6,13 @@ export interface LoginParams { } export const loginApi = { + /** 公众号登录参数 */ getParams() { return request("/api/v1/auth/login/app", "GET"); }, + getMeetingParams() { + return request("/api/v1/auth/login/meeting", "GET"); + }, testLogin() { return request('/token/18708100736', "GET") } diff --git a/src/api/meeting.ts b/src/api/meeting.ts new file mode 100644 index 0000000..0f519bf --- /dev/null +++ b/src/api/meeting.ts @@ -0,0 +1,7 @@ +import {request} from "@/api/request"; + +export const meetingAPi={ + qrcodeKey() { + return request('/api/v1/auth/login/qrcode/key', "GET") + } +} diff --git a/src/app.config.ts b/src/app.config.ts index faea8ab..f72eb8c 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -1,9 +1,10 @@ export default defineAppConfig({ pages: [ 'pages/index/index', + 'pages/meeting/meeting', 'pages/login/login', 'pages/check/check', - 'pages/my/my' + 'pages/my/my', ], window: { backgroundTextStyle: 'light', @@ -60,7 +61,6 @@ export default defineAppConfig({ 'depCur/depCur', 'addCur/addCur', 'spotMeeting/spotMeeting', - 'bingUser/bingUser', ] } ], diff --git a/src/components/button/MyButton.tsx b/src/components/button/MyButton.tsx index 896a26d..1554561 100644 --- a/src/components/button/MyButton.tsx +++ b/src/components/button/MyButton.tsx @@ -36,7 +36,7 @@ const MyButton: FC = (props) => { ) diff --git a/src/components/topic/shortAnswer.tsx b/src/components/topic/shortAnswer.tsx index 60c3660..466b9bd 100644 --- a/src/components/topic/shortAnswer.tsx +++ b/src/components/topic/shortAnswer.tsx @@ -38,15 +38,14 @@ const ShortAnswer: FC = ({data, onAnswer, onUpAndDown, index, validate, f 简答题 {data.question} +