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