...
|
...
|
@@ -705,7 +705,7 @@ |
|
|
<li>
|
|
|
<div class="customerInfo">
|
|
|
<img src="{$c1.user.avatar}" alt="img">
|
|
|
<p class="customerNickname">{$c1.user.username}</p>
|
|
|
<p class="customerNickname">{$c1.user.nickname|default='****'}</p>
|
|
|
</div>
|
|
|
<div class="evaluateInfo">
|
|
|
<div class="title">
|
...
|
...
|
@@ -744,7 +744,7 @@ |
|
|
<li>
|
|
|
<div class="customerInfo">
|
|
|
<img src="{$c2.user.avatar}" alt="img">
|
|
|
<p class="customerNickname">{$c2.user.username}</p>
|
|
|
<p class="customerNickname">{$c2.user.nickname|default='****'}</p>
|
|
|
</div>
|
|
|
<div class="evaluateInfo">
|
|
|
<div class="title">
|
...
|
...
|
@@ -783,7 +783,7 @@ |
|
|
<li>
|
|
|
<div class="customerInfo">
|
|
|
<img src="{$c3.user.avatar}" alt="img">
|
|
|
<p class="customerNickname">{$c3.user.username}</p>
|
|
|
<p class="customerNickname">{$c3.user.nickname|default='****'}</p>
|
|
|
</div>
|
|
|
<div class="evaluateInfo">
|
|
|
<div class="title">
|
...
|
...
|
@@ -822,7 +822,7 @@ |
|
|
<li>
|
|
|
<div class="customerInfo">
|
|
|
<img src="{$c4.user.avatar}" alt="img">
|
|
|
<p class="customerNickname">{$c4.user.username}</p>
|
|
|
<p class="customerNickname">{$c4.user.nickname|default='****'}</p>
|
|
|
</div>
|
|
|
<div class="evaluateInfo">
|
|
|
<div class="title">
|
...
|
...
|
@@ -1024,32 +1024,28 @@ |
|
|
// Netscape/Firefox/Opera
|
|
|
keyCode = e.which
|
|
|
}
|
|
|
if($('#numberInput').val()<=0){
|
|
|
$('#numberInput').val(1);
|
|
|
if(is_impose == 1){
|
|
|
if(parseInt($('.spinner input').val()) >= parseInt(imposenum)){
|
|
|
$('#numberInput').val(parseInt(imposenum));
|
|
|
var totalPrice = parseFloat($('.spinner input').val()) * parseFloat($('#price').html().split('¥')[1]);
|
|
|
$('#totalPrice').html('¥'+totalPrice.toFixed(2));
|
|
|
return false;
|
|
|
};
|
|
|
}
|
|
|
console.log(parseInt($('#numberInput').val()));
|
|
|
console.log(parseInt($('#inventory').text()));
|
|
|
if(parseInt($('#numberInput').val()) >= parseInt($('#inventory').text())){
|
|
|
$('#numberInput').val(parseInt($('#inventory').text()));
|
|
|
if($('#numberInput').val()<=0){
|
|
|
$('#numberInput').val(1);
|
|
|
var totalPrice = parseFloat($('.spinner input').val()) * parseFloat($('#price').html().split('¥')[1]);
|
|
|
$('#totalPrice').html('¥'+totalPrice.toFixed(2));
|
|
|
return false;
|
|
|
}
|
|
|
if(is_impose == 1){
|
|
|
console.log(imposenum);
|
|
|
console.log($('.spinner input').val());
|
|
|
if(parseInt($('.spinner input').val()) >= parseInt(imposenum)){
|
|
|
$('#numberInput').val(parseInt(imposenum));
|
|
|
if(parseInt($('#numberInput').val()) >= parseInt($('#inventory').text())){
|
|
|
$('#numberInput').val(parseInt($('#inventory').text()));
|
|
|
var totalPrice = parseFloat($('.spinner input').val()) * parseFloat($('#price').html().split('¥')[1]);
|
|
|
$('#totalPrice').html('¥'+totalPrice.toFixed(2));
|
|
|
return false;
|
|
|
};
|
|
|
}
|
|
|
$('.spinner input').val(isNaN(parseFloat($('.spinner input').val()))?1:parseFloat($('.spinner input').val()));
|
|
|
$('#totalPrice').html('¥0.00');
|
|
|
// $('#totalPrice').html('¥0.00');
|
|
|
if (keyCode>=48&&keyCode<=57 || keyCode>=96&&keyCode<=105 || keyCode==8){
|
|
|
var totalPrice = parseFloat($('.spinner input').val()) * parseFloat($('#price').html().split('¥')[1]);
|
|
|
$('#totalPrice').html('¥'+totalPrice.toFixed(2));
|
...
|
...
|
|