From c6df9a0872322cac41437d2d3c250dcb825b8427 Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Wed, 5 Jul 2023 15:34:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=BF=9E=E7=82=B9=EF=BC=8C?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=B7=A6=E5=8F=B3=E5=8A=A8=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/peko/activity/act-ocean/index.html | 2 +- view/peko/activity/act-ocean/js/index.js | 69 ++++++++++++------------ 2 files changed, 36 insertions(+), 35 deletions(-) diff --git a/view/peko/activity/act-ocean/index.html b/view/peko/activity/act-ocean/index.html index 03c970b..86bc029 100644 --- a/view/peko/activity/act-ocean/index.html +++ b/view/peko/activity/act-ocean/index.html @@ -323,7 +323,7 @@ - + \ No newline at end of file diff --git a/view/peko/activity/act-ocean/js/index.js b/view/peko/activity/act-ocean/js/index.js index ea24cb1..9ee6fd8 100644 --- a/view/peko/activity/act-ocean/js/index.js +++ b/view/peko/activity/act-ocean/js/index.js @@ -704,19 +704,20 @@ const sendUserDrawInfo = (itemId, num, tais) => { if (res.code === 200) { tais.data('total-num').number = parseInt(tais.data('total-num').number) + fragmentNum tais - .stop(true, true) - .animate({ scale: 1.4, rotate: -30, }, 50)//skew(10deg, 10deg) - .animate({ scale: 1.4, rotate: 30, }, 20)//skew(10deg, 10deg) - .animate({ scale: 1, rotate: 0 }, 200, function () { - if (lock) { - tais.find('.select-num').html('+' + tais.data('total-num').number).hide().fadeIn(200) - } - setTimeout(() => { - // getUserInfo() - getUserPieceNum() - // getListItem(roundId) - }, 100) - }) + .stop(true, true) + .animate({ scale: 1.1, }, 50)//skew(10deg, 10deg) + .animate({ scale: 1, }, 50)//skew(10deg, 10deg) rotate: 0, + // .animate({ scale: 1, rotate: 0 }, 50, function () { + // if (lock) { + // tais.find('.select-num').html('+' + tais.data('total-num').number).hide().fadeIn(200) + tais.find('.select-num').html('+' + tais.data('total-num').number).hide().fadeIn(50) + // } + // setTimeout(() => { + // getUserInfo() + getUserPieceNum() + // getListItem(roundId) + // }, 100) + // }) hideLoading(layerIndex) } else if (31005) { lock = !lock @@ -1194,27 +1195,27 @@ $(function () { return } - if (!lock) { - lock = !lock - // console.log($(this).data('total-num')); - // console.log($(this).data('total-num').number); - // console.log(fragmentNum); - // $(this).data('total-num').number = parseInt($(this).data('total-num').number) + fragmentNum - // $(this) - // .stop(true, true) - // .animate({ scale: 1.1 }, 200) - // .animate({ scale: 1 }, 200, function () { - // if (lock) { - // $(this).find('.select-num').html('+' + $(this).data('total-num').number).hide().fadeIn(200) - // } - // setTimeout(() => { - // // getUserInfo() - // getUserPieceNum() - // // getListItem(roundId) - // }, 100) - // }) - sendUserDrawInfo($(this).data('total-num').id, fragmentNum, $(this)) - } + // if (!lock) { + // lock = !lock + // console.log($(this).data('total-num')); + // console.log($(this).data('total-num').number); + // console.log(fragmentNum); + // $(this).data('total-num').number = parseInt($(this).data('total-num').number) + fragmentNum + // $(this) + // .stop(true, true) + // .animate({ scale: 1.1 }, 200) + // .animate({ scale: 1 }, 200, function () { + // if (lock) { + // $(this).find('.select-num').html('+' + $(this).data('total-num').number).hide().fadeIn(200) + // } + // setTimeout(() => { + // // getUserInfo() + // getUserPieceNum() + // // getListItem(roundId) + // }, 100) + // }) + sendUserDrawInfo($(this).data('total-num').id, fragmentNum, $(this)) + // } }) // ios去到後臺或者鎖屏後再回來倒計時不準確