代码优化

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