Commit 1924f4bb authored by 范雪寒's avatar 范雪寒

fix: 验证码倒计时改为60s

parent 3eae6e8e
...@@ -116,7 +116,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -116,7 +116,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const label = btnSendCode.getChildByName('label').getComponent(cc.Label); const label = btnSendCode.getChildByName('label').getComponent(cc.Label);
// 发送验证码 // 发送验证码
if (label.string == '发送验证码') { if (label.string == '发送验证码') {
let countDown = 10; let countDown = 60;
const tween = cc.tween(label) const tween = cc.tween(label)
.call(() => { .call(() => {
label.string = `${countDown}`; label.string = `${countDown}`;
...@@ -139,7 +139,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -139,7 +139,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const phone = inputPhone.getComponent(cc.EditBox).string; const phone = inputPhone.getComponent(cc.EditBox).string;
const label = btnSendCode2.getChildByName('label').getComponent(cc.Label); const label = btnSendCode2.getChildByName('label').getComponent(cc.Label);
if (label.string == '发送验证码') { if (label.string == '发送验证码') {
let countDown = 10; let countDown = 60;
const tween = cc.tween(label) const tween = cc.tween(label)
.call(() => { .call(() => {
label.string = `${countDown}`; label.string = `${countDown}`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment