代码优化
This commit is contained in:
parent
28dfe1ad34
commit
ea5f66b190
|
|
@ -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('短信发送失败')
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue