下拉刷新更新

This commit is contained in:
GaoHao
2025-01-08 16:18:20 +08:00
parent c8dbc0f550
commit 7cbadc5638
9 changed files with 167 additions and 166 deletions

View File

@@ -81,13 +81,11 @@
uni.showToast({
title: '请输入手机号',
icon: 'none',
duration: 1000
})
} else if (data.mobile.length !== 11) {
uni.showToast({
title: '请输入正确的手机号',
icon: 'none',
duration: 1000
})
} else {
uni.showLoading({
@@ -103,7 +101,7 @@
icon: 'none',
duration: 1000
})
data.countDown();
countDown();
} else {
uni.showModal({
showCancel: false,
@@ -130,7 +128,7 @@
data.count = count - 1;
data.sending = true;
data.sendTime = count - 1 + '秒后重新获取';
setTimeout(data.countDown.bind(data), 1000);
setTimeout(countDown.bind(this), 1000);
}
}