1
0
forked from dyf/APP
revert Merge branch 'main' of http://47.107.152.87:3000/liubiao/APP

# Conflicts:
#	.gitignore
#	pages/common/index/index.vue
#	unpackage/dist/dev/app-plus/app-config-service.js
#	unpackage/dist/dev/app-plus/app-service.js
#	unpackage/dist/dev/app-plus/app-view.js
#	unpackage/dist/dev/app-plus/manifest.json
#	utils/request.js
This commit is contained in:
2025-07-31 10:59:29 +08:00
parent e5e2aca0c4
commit 70651b81f5
1387 changed files with 102695 additions and 5024 deletions

View File

@ -55,14 +55,15 @@
<script>
import {
login,
resourceSmsCode
sendRegisterSms
} from '@/api/common/login.js';
export default {
data() {
return {
showView: false,
//codebtn: '获取验证码',
phone: '13058067817', //手机号码
code: "", //验证码
code: "123456", //验证码
agreed: false,
isCounting: false,
countdown: 0,
@ -91,33 +92,20 @@
return false;
}
try {
const res = await resourceSmsCode({
phonenumber: this.phone
// 调用发送验证码接口
await sendRegisterSms({
phoneNumber: this.phone
})
//倒计时
this.countdown = 60
const timer = setInterval(() => {
this.countdown--
if (this.countdown <= 0) clearInterval(timer)
}, 1000)
uni.showToast({
title: '验证码已发送',
icon: 'none'
})
if (res.code == 200) {
// 更新倒计时状态
this.isCounting = true;
this.showView = true;
this.countdown = 60
const timer = setInterval(() => {
this.countdown--
if (this.countdown <= 0) {
clearInterval(timer)
this.isCounting = false;
this.showView = false;
}
}, 1000)
uni.showToast({
title: '验证码已发送',
icon: 'none'
})
} else {
uni.showToast({
title: res.msg,
icon: 'none'
})
}
} catch (error) {}
},
// 勾选同意
@ -158,7 +146,6 @@
tenantId: '894078' //租户ID
})
if (res.code == 200) {
console.log(res, 'ressss');
uni.hideLoading()
uni.setStorageSync('token', res.data.access_token) // 缓存token
uni.setStorageSync('clientID', res.data.client_id) // 缓存token
@ -269,7 +256,7 @@
}
.blue {
color: rgb(187, 230, 0);
color: rgba(255, 255, 255, 0.6);
}
.agreement {