|
@@ -76,8 +76,12 @@
|
|
<span>¥ <%= course.oprice%></span>
|
|
<span>¥ <%= course.oprice%></span>
|
|
</li>
|
|
</li>
|
|
<li>
|
|
<li>
|
|
- <span id="code_sales">优惠:</span>
|
|
|
|
- <span id="code_price">- ¥ <%= course.discount%></span>
|
|
|
|
|
|
+ <span>优惠:</span>
|
|
|
|
+ <span>- ¥ <%= course.discount%></span>
|
|
|
|
+ </li>
|
|
|
|
+ <li id="code_sales_item" style="display:none">
|
|
|
|
+ <span>推荐码优惠:</span>
|
|
|
|
+ <span id="code_price">- ¥ 0</span>
|
|
</li>
|
|
</li>
|
|
<li>
|
|
<li>
|
|
<span>应付:</span>
|
|
<span>应付:</span>
|
|
@@ -178,15 +182,16 @@
|
|
success: function (res){
|
|
success: function (res){
|
|
orderPay.checking = false
|
|
orderPay.checking = false
|
|
if(res.code){
|
|
if(res.code){
|
|
|
|
+ $('#code_sales_item').hide()
|
|
return $('#err_msg').addClass('error').html(res.msg)
|
|
return $('#err_msg').addClass('error').html(res.msg)
|
|
}
|
|
}
|
|
$('#input_code').attr('disabled','disabled');
|
|
$('#input_code').attr('disabled','disabled');
|
|
$('#submit_code')[0].disabled=true
|
|
$('#submit_code')[0].disabled=true
|
|
$('#err_msg').addClass('success').html('推荐成功,已更新优惠价格')
|
|
$('#err_msg').addClass('success').html('推荐成功,已更新优惠价格')
|
|
$('#code_price').html('- ¥ ' + res.data.discountPrice)
|
|
$('#code_price').html('- ¥ ' + res.data.discountPrice)
|
|
- $('#code_sales').html('推荐码优惠:')
|
|
|
|
$('#real_price').html(res.data.price)
|
|
$('#real_price').html(res.data.price)
|
|
$('#price_info').html(res.data.price)
|
|
$('#price_info').html(res.data.price)
|
|
|
|
+ $('#code_sales_item').show()
|
|
},
|
|
},
|
|
error: function(err){
|
|
error: function(err){
|
|
orderPay.checking = false
|
|
orderPay.checking = false
|