From dd3d0ae151708b179482efe5c270703457b7437b Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Thu, 22 Feb 2024 21:57:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8B=E6=B3=A8=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../peko/activity/act-guard-planet/index.html | 2 +- .../activity/act-guard-planet/js/index.js | 55 ++++++++++--------- 2 files changed, 31 insertions(+), 26 deletions(-) diff --git a/view/peko/activity/act-guard-planet/index.html b/view/peko/activity/act-guard-planet/index.html index cec9d6d..86b7901 100644 --- a/view/peko/activity/act-guard-planet/index.html +++ b/view/peko/activity/act-guard-planet/index.html @@ -257,7 +257,7 @@ - + \ No newline at end of file diff --git a/view/peko/activity/act-guard-planet/js/index.js b/view/peko/activity/act-guard-planet/js/index.js index b6b47ad..d1c1cc9 100644 --- a/view/peko/activity/act-guard-planet/js/index.js +++ b/view/peko/activity/act-guard-planet/js/index.js @@ -1332,19 +1332,22 @@ $(function () { if (lock) { lock = false; // 每個標誌位上的數量 - restrainArr[currentWeaponIndex].costPieceNum += parseInt($('.select-num input').val()) - $('.sign-wrap div').eq(currentWeaponIndex).find('img') - .stop(true, true) - .animate({ scale: 1.2 }, 200) - .animate({ scale: 1 }, 200, function () { - $('.sign-wrap div').eq(currentWeaponIndex).find('p').html('+' + restrainArr[currentWeaponIndex].costPieceNum).hide().fadeIn(200) - setTimeout(() => { - getUserInfo() - }, 100) - }) + // restrainArr[currentWeaponIndex].costPieceNum += parseInt($('.select-num input').val()/100) + // $('.sign-wrap div').eq(currentWeaponIndex).find('img') + // .stop(true, true) + // .animate({ scale: 1.2 }, 200) + // .animate({ scale: 1 }, 200, function () { + // $('.sign-wrap div').eq(currentWeaponIndex).find('p').html('+' + restrainArr[currentWeaponIndex].costPieceNum).hide().fadeIn(200) + // setTimeout(() => { + // getUserInfo() + // }, 100) + // }) - console.log('costPieceNum---', restrainArr[currentWeaponIndex].costPieceNum); - console.log('id----', restrainArr[currentWeaponIndex].id); + // console.log('costPieceNum---', restrainArr[currentWeaponIndex].costPieceNum); + // console.log('id----', restrainArr[currentWeaponIndex].id); + setTimeout(() => { + getUserInfo() + }, 100) sendUserDrawInfo(restrainArr[currentWeaponIndex].id, $('.select-num input').val()) } }) @@ -1500,20 +1503,22 @@ $(function () { if (lock) { lock = false; // 每個標誌位上的數量 - restrainArr[currentWeaponIndex_top].costPieceNum += parseInt($('.popup-select-num input').val()) + // restrainArr[currentWeaponIndex_top].costPieceNum += parseInt($('.popup-select-num input').val()) + // $('.sign-wrap div').eq(currentWeaponIndex_top).find('img') + // .stop(true, true) + // .animate({ scale: 1.2 }, 200) + // .animate({ scale: 1 }, 200, function () { + // $('.sign-wrap div').eq(currentWeaponIndex_top).find('p').html('+' + restrainArr[currentWeaponIndex_top].costPieceNum).hide().fadeIn(200) + // setTimeout(() => { + // getUserInfo() + // }, 100) + // }) - $('.sign-wrap div').eq(currentWeaponIndex_top).find('img') - .stop(true, true) - .animate({ scale: 1.2 }, 200) - .animate({ scale: 1 }, 200, function () { - $('.sign-wrap div').eq(currentWeaponIndex_top).find('p').html('+' + restrainArr[currentWeaponIndex_top].costPieceNum).hide().fadeIn(200) - setTimeout(() => { - getUserInfo() - }, 100) - }) - - console.log('costPieceNum---', restrainArr[currentWeaponIndex_top].costPieceNum); - console.log('id----', restrainArr[currentWeaponIndex_top].id); + // console.log('costPieceNum---', restrainArr[currentWeaponIndex_top].costPieceNum); + // console.log('id----', restrainArr[currentWeaponIndex_top].id); + setTimeout(() => { + getUserInfo() + }, 100) sendUserDrawInfo(restrainArr[currentWeaponIndex_top].id, $('.popup-select-num input').val()) } })