修复下注异常问题
This commit is contained in:
@@ -257,7 +257,7 @@
|
|||||||
<script src="../../common/js/vconsole.min.js"></script>
|
<script src="../../common/js/vconsole.min.js"></script>
|
||||||
<script src="../../common/js/svga.min.js"></script>
|
<script src="../../common/js/svga.min.js"></script>
|
||||||
<script src="../../common/js/route-constant.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>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@@ -1332,19 +1332,22 @@ $(function () {
|
|||||||
if (lock) {
|
if (lock) {
|
||||||
lock = false;
|
lock = false;
|
||||||
// 每個標誌位上的數量
|
// 每個標誌位上的數量
|
||||||
restrainArr[currentWeaponIndex].costPieceNum += parseInt($('.select-num input').val())
|
// restrainArr[currentWeaponIndex].costPieceNum += parseInt($('.select-num input').val()/100)
|
||||||
$('.sign-wrap div').eq(currentWeaponIndex).find('img')
|
// $('.sign-wrap div').eq(currentWeaponIndex).find('img')
|
||||||
.stop(true, true)
|
// .stop(true, true)
|
||||||
.animate({ scale: 1.2 }, 200)
|
// .animate({ scale: 1.2 }, 200)
|
||||||
.animate({ scale: 1 }, 200, function () {
|
// .animate({ scale: 1 }, 200, function () {
|
||||||
$('.sign-wrap div').eq(currentWeaponIndex).find('p').html('+' + restrainArr[currentWeaponIndex].costPieceNum).hide().fadeIn(200)
|
// $('.sign-wrap div').eq(currentWeaponIndex).find('p').html('+' + restrainArr[currentWeaponIndex].costPieceNum).hide().fadeIn(200)
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
getUserInfo()
|
// getUserInfo()
|
||||||
}, 100)
|
// }, 100)
|
||||||
})
|
// })
|
||||||
|
|
||||||
console.log('costPieceNum---', restrainArr[currentWeaponIndex].costPieceNum);
|
// console.log('costPieceNum---', restrainArr[currentWeaponIndex].costPieceNum);
|
||||||
console.log('id----', restrainArr[currentWeaponIndex].id);
|
// console.log('id----', restrainArr[currentWeaponIndex].id);
|
||||||
|
setTimeout(() => {
|
||||||
|
getUserInfo()
|
||||||
|
}, 100)
|
||||||
sendUserDrawInfo(restrainArr[currentWeaponIndex].id, $('.select-num input').val())
|
sendUserDrawInfo(restrainArr[currentWeaponIndex].id, $('.select-num input').val())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -1500,20 +1503,22 @@ $(function () {
|
|||||||
if (lock) {
|
if (lock) {
|
||||||
lock = false;
|
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')
|
// console.log('costPieceNum---', restrainArr[currentWeaponIndex_top].costPieceNum);
|
||||||
.stop(true, true)
|
// console.log('id----', restrainArr[currentWeaponIndex_top].id);
|
||||||
.animate({ scale: 1.2 }, 200)
|
setTimeout(() => {
|
||||||
.animate({ scale: 1 }, 200, function () {
|
getUserInfo()
|
||||||
$('.sign-wrap div').eq(currentWeaponIndex_top).find('p').html('+' + restrainArr[currentWeaponIndex_top].costPieceNum).hide().fadeIn(200)
|
}, 100)
|
||||||
setTimeout(() => {
|
|
||||||
getUserInfo()
|
|
||||||
}, 100)
|
|
||||||
})
|
|
||||||
|
|
||||||
console.log('costPieceNum---', restrainArr[currentWeaponIndex_top].costPieceNum);
|
|
||||||
console.log('id----', restrainArr[currentWeaponIndex_top].id);
|
|
||||||
sendUserDrawInfo(restrainArr[currentWeaponIndex_top].id, $('.popup-select-num input').val())
|
sendUserDrawInfo(restrainArr[currentWeaponIndex_top].id, $('.popup-select-num input').val())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user