修复下注异常问题

This commit is contained in:
Dragon
2024-02-22 21:57:28 +08:00
parent 5f45fdcbf0
commit dd3d0ae151
2 changed files with 31 additions and 26 deletions

View File

@@ -257,7 +257,7 @@
<script src="../../common/js/vconsole.min.js"></script>
<script src="../../common/js/svga.min.js"></script>
<script src="../../common/js/route-constant.js"></script>
<script src="./js/index.js?v=2.5"></script>
<script src="./js/index.js?v=2.6"></script>
</body>
</html>

View File

@@ -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())
}
})