diff --git a/src/views/users/GiftManageView.vue b/src/views/users/GiftManageView.vue index 0aac426..dc18f4e 100644 --- a/src/views/users/GiftManageView.vue +++ b/src/views/users/GiftManageView.vue @@ -1638,10 +1638,6 @@ export default { let giftName = $('#giftName').val(); let giftStatus = $("input:radio[name='giftStatus']:checked").val(); let giftType = $('#giftType').val(); - $('#giftType').removeAttr('disabled'); - $('#subGiftType').removeAttr('disabled'); - $('#baseGiftId').removeAttr('disabled'); - $('#unlockNum').removeAttr('disabled'); console.log(giftType); if (giftType == 16) { let subGiftType = $this.gift.subGiftType; @@ -1696,13 +1692,17 @@ export default { } $('#sendDressId').val(sendDressId); $('#receiveDressid').val(receiveDressId); - if ((sendDressTime && sendDressTime <= 5) || (receiveDressTime && receiveDressTime <= 5)) { + if ((sendDressTime && sendDressTime < 5) || (receiveDressTime && receiveDressTime < 5)) { $("#tipMsg").text("装扮时长不能小于5分钟"); $("#tipModal").modal('show'); return; } } if ($("#giftForm").validationEngine('validate')) { + $('#giftType').removeAttr('disabled'); + $('#subGiftType').removeAttr('disabled'); + $('#baseGiftId').removeAttr('disabled'); + $('#unlockNum').removeAttr('disabled'); $("#consumeType").removeAttr("disabled"); $.ajax({ type: "post",