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} +