diff --git a/src/api/index.ts b/src/api/index.ts index 289fbd0..920bcf3 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -144,11 +144,11 @@ export async function getlivelist(data?:any) { * 列表统计 */ - interface StatisticList{ - liveInfo: any; - videoInfo: any; - studentInfo: any; - } +interface StatisticList{ +liveInfo: any; +videoInfo: any; +studentInfo: any; +} export async function getstatisticlist() { const res = await get('statistics'); @@ -166,8 +166,31 @@ export async function getstatisticlist() { interface Liveaddrule{ code:number, msg:string - } - export async function liveadd(data:any) { +} +export async function liveadd(data:any) { const res = await post('live',data); console.log(res) - } \ No newline at end of file +} + + +/** + * 发送验证码 + * @param phone 手机号 + * @param type 国外1 国内0 + */ +interface SendSms{ + code: number; + msg: string; +} + +export async function sendsms(phone: string, type: number): Promise{ + const res = await post("SendSms", {phone, type}); + console.log(res); + if(res.code == 0){ + message.success(res.msg); + return true; + }else{ + message.error(res.msg); + return false; + } +} \ No newline at end of file diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue index af9261e..014d145 100644 --- a/src/views/login/Login.vue +++ b/src/views/login/Login.vue @@ -7,7 +7,7 @@ 您好,欢迎来到 Beelink
- 还没有账号? 成为一名Beelink老师 + 还没有账号? 成为一名Beelink老师
@@ -260,7 +260,7 @@ export default defineComponent({ margin-top: 17px; margin-bottom: 35px; } - .tosign { + .tosign > a { color: #0dbba4; cursor: pointer; } diff --git a/src/views/login/Sign.vue b/src/views/login/Sign.vue index d0d62e0..63df4cb 100644 --- a/src/views/login/Sign.vue +++ b/src/views/login/Sign.vue @@ -1,6 +1,6 @@