代码优化

This commit is contained in:
BianLzhaoMin 2024-11-06 18:45:16 +08:00
parent 28dfe1ad34
commit ea5f66b190
1 changed files with 3 additions and 1 deletions

View File

@ -188,7 +188,7 @@ export default {
const sendPhoneList = this.phoneStr.split(',')
console.log('sendPhoneList', sendPhoneList)
uni.showLoading({ title: '短信正在发送,请勿刷新页面或重复点击!' })
new Promise((resolve, reject) => {
let promisesFun = []
@ -239,12 +239,14 @@ export default {
})
.then(res => {
// console.log('---')
uni.hideLoading()
uni.showToast({ title: '短信发送成功!', icon: 'none' })
setTimeout(() => {
uni.navigateBack()
}, 500)
})
.catch(err => {
uni.hideLoading()
console.log('短信发送失败')
})
}