From a49abd0cfc5ab81503639c26d7b306b36a6d7fc7 Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Fri, 2 Dec 2022 16:35:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=B3=A8=E5=86=8C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=80=92=E8=AE=A1=E6=97=B6=E7=82=B9=E5=87=BB=E5=AE=8C?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=E6=97=A0=E6=B3=95=E5=86=8D=E6=AC=A1=E5=80=92?= =?UTF-8?q?=E8=AE=A1=E6=97=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/peko/modules/register/index.html | 2 +- view/peko/modules/register/js/index.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/view/peko/modules/register/index.html b/view/peko/modules/register/index.html index 8cc300e..eb27862 100644 --- a/view/peko/modules/register/index.html +++ b/view/peko/modules/register/index.html @@ -40,6 +40,6 @@ - + \ No newline at end of file diff --git a/view/peko/modules/register/js/index.js b/view/peko/modules/register/js/index.js index d53a083..853502e 100644 --- a/view/peko/modules/register/js/index.js +++ b/view/peko/modules/register/js/index.js @@ -23,7 +23,7 @@ const toastMsg = (content = '操作完成', time = 2) => { var browser = checkVersion(); const urlPrefix = getUrlPrefix(); var getUrl = getQueryString(); -var time = 59; +var time = 5; var isClick = true; if (EnvCheck() == 'test') {//degBug new VConsole(); @@ -69,6 +69,7 @@ function getCode (num, phone, code) { }, success: function (res) { if (res.code == 200) { + time = 59 timerFun() hideLoading(layerIndex) toastMsg(res.message) @@ -124,6 +125,7 @@ $('.box .code .num').click(function () { var num = Number($('.box .phone .num').text().match(/\d+/)[0]); var phone = Number($('.box .phone input').val()); var code = Number($('.box .code input').val()); + // if (isClick) { if (phone == '') { toastMsg('請輸入手機號'); @@ -152,7 +154,6 @@ function timerFun () { clearInterval(timer); $('.box .code .num').text('獲取驗證碼'); isClick = true; - time = 59 } else { $('.box .code .num').text(`${time}秒後重新獲取`); time--;