update .gitignore

This commit is contained in:
GaoHao
2025-01-07 10:19:21 +08:00
parent a194af29cb
commit f7037c0643
27 changed files with 45 additions and 3756 deletions

View File

@@ -36,6 +36,7 @@
import { reactive } from 'vue';
import { onLoad} from '@dcloudio/uni-app'
import http from '@/http/http.js';
import {setSendMsg,registerCode} from '@/api/login/login.js';
let data = reactive({
code: '',
mobile: '',
@@ -48,7 +49,7 @@
/**
* 发送验证码
*/
function sendMsg() {
async function sendMsg() {
if (!data.mobile) {
uni.showToast({
title: '请输入手机号',
@@ -65,27 +66,23 @@
uni.showLoading({
title: '正在发送验证码...'
})
http.request({
url:'app/Login/sendMsg/' + data.mobile + '/forget',
}).then(res => {
if ( res.code == 0 ) {
data.sending = true;
uni.showToast({
title: '验证码发送成功请注意查收',
icon: 'none',
duration: 1000
})
data.countDown();
} else {
uni.showModal({
showCancel: false,
title: '短信发送失败',
content: res.msg ? res.msg : '请一分钟后再获取验证码'
});
}
uni.hideLoading();
})
let res = await setSendMsg(data.mobile,'forget')
if ( res.code == 0 ) {
data.sending = true;
uni.showToast({
title: '验证码发送成功请注意查收',
icon: 'none',
duration: 1000
})
data.countDown();
} else {
uni.showModal({
showCancel: false,
title: '短信发送失败',
content: res.msg ? res.msg : '请一分钟后再获取验证码'
});
}
uni.hideLoading();
}
}

View File

@@ -47,7 +47,10 @@
import { reactive } from 'vue';
import { onLoad} from '@dcloudio/uni-app'
import http from '@/http/http.js';
import {setSendMsg} from '@/api/login/login.js';
import {setSendMsg,registerCode} from '@/api/login/login.js';
import {commonType} from '@/api/login/login.js';
let data = reactive({
code: '',
mobile: '',