Compare commits

...

2 Commits

Author SHA1 Message Date
Dragon
5e029a3c04 修复大陆提现报错异常 2024-01-22 16:06:39 +08:00
Dragon
74715febed 修复非大陆提现异常问题 2024-01-22 15:06:14 +08:00
3 changed files with 9 additions and 5 deletions

View File

@@ -100,7 +100,7 @@
<script src="http://static.lkme.cc/linkedme.min.js"></script> <script src="http://static.lkme.cc/linkedme.min.js"></script>
<script src="./js/utf.js"></script> <script src="./js/utf.js"></script>
<script src="./js/swiper.min.js"></script> <script src="./js/swiper.min.js"></script>
<script src="./js/index.js?v=2.2"></script> <script src="./js/index.js?v=2.3"></script>
</body> </body>
</html> </html>

View File

@@ -379,6 +379,8 @@ $('.withDrawalPub').click(function () {
return false; return false;
}) })
// 确定提領按钮 // 确定提領按钮
let birthday;
let nowTime;
$('.butBig').click(function () { $('.butBig').click(function () {
var num = $('.withdrawal input').val(); var num = $('.withdrawal input').val();
var status = $(this).attr("click"); var status = $(this).attr("click");
@@ -389,15 +391,17 @@ $('.butBig').click(function () {
toastMsg('超出本周最大提领次数') toastMsg('超出本周最大提领次数')
return return
} }
let birthday = idCard.substring(6, 14);
let nowTime = moment(new Date()).format('YYYY-MM-DD');
birthday = moment(birthday).format('YYYY-MM-DD');
// return // return
if (accountType == 2 && isRealCertifyBool == 0) { if (accountType == 2 && isRealCertifyBool == 0) {
toastMsg('請先進行實名認證') toastMsg('請先進行實名認證')
return return
} }
// console.log(isAdult(idCard)); // console.log(isAdult(idCard));
if (accountType == 2) {
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')))) {// if (accountType == 2 && (moment(nowTime).isBefore(moment(birthday).add(18, 'years')))) {//
toastMsg('申請提現失敗,不支援未成年人提現'); toastMsg('申請提現失敗,不支援未成年人提現');
return return

View File

@@ -127,4 +127,4 @@
<script src="../../common/js/route-constant.js"></script> <script src="../../common/js/route-constant.js"></script>
<script src="../../common/js/svga.min.js"></script> <script src="../../common/js/svga.min.js"></script>
<script src="./js/moment.js"></script> <script src="./js/moment.js"></script>
<script src="./js/withdrawal.js?v=2.1"></script> <script src="./js/withdrawal.js?v=2.2"></script>