diff --git a/view/peko/home/index.html b/view/peko/home/index.html index 0bca689..4022663 100644 --- a/view/peko/home/index.html +++ b/view/peko/home/index.html @@ -100,7 +100,7 @@ - + \ No newline at end of file diff --git a/view/peko/modules/h5Income/js/withdrawal.js b/view/peko/modules/h5Income/js/withdrawal.js index efa4722..aa45fff 100644 --- a/view/peko/modules/h5Income/js/withdrawal.js +++ b/view/peko/modules/h5Income/js/withdrawal.js @@ -379,6 +379,8 @@ $('.withDrawalPub').click(function () { return false; }) // 确定提領按钮 +let birthday; +let nowTime; $('.butBig').click(function () { var num = $('.withdrawal input').val(); var status = $(this).attr("click"); @@ -396,8 +398,8 @@ $('.butBig').click(function () { } // console.log(isAdult(idCard)); if (accountType == 2) { - let birthday = idCard.substring(6, 14); - let nowTime = moment(new Date()).format('YYYY-MM-DD'); + birthday = idCard.substring(6, 14); + nowTime = moment(new Date()).format('YYYY-MM-DD'); birthday = moment(birthday).format('YYYY-MM-DD'); } if (accountType == 2 && (moment(nowTime).isBefore(moment(birthday).add(18, 'years')))) {//