...
|
...
|
@@ -65,19 +65,19 @@ var Order = { |
|
|
});
|
|
|
|
|
|
/*使用优惠卷支付 下面的文本框*/
|
|
|
e.$jc.focus(function() {
|
|
|
$(this).prev('label').prev(':radio').attr('checked', true);
|
|
|
}).change(function() {
|
|
|
$(this).prev('label').prev(':radio').val($(this).val());
|
|
|
e.$jc.on("focus change",function(event) {
|
|
|
var radio=$(this).prev('label').prev(':radio');
|
|
|
if(event.type==="focus"){
|
|
|
radio.attr('checked', true);
|
|
|
}else{
|
|
|
radio.val($(this).val());
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
/*使用YOHO币支付*/
|
|
|
e.$bp.data('tobi', e.$tobi.html());
|
|
|
e.$bp.keyup(function() {
|
|
|
var bi = c.enterNUM($(this).val(), $(this).data('tobi'));
|
|
|
|
|
|
$(this).val(bi);
|
|
|
}).change(function() {
|
|
|
e.$bp.on("keyup change",function() {
|
|
|
var bi = c.enterNUM($(this).val(), $(this).data('tobi'));
|
|
|
|
|
|
$(this).val(bi);
|
...
|
...
|
@@ -105,8 +105,8 @@ var Order = { |
|
|
var i = 0;
|
|
|
|
|
|
e.$total.html('0.00');
|
|
|
e.$statistics.find('em').html('0.00');
|
|
|
e.$statistics.slice(3, 5).hide();
|
|
|
e.$statistics.slice(0, 5).find('em').html('0.00');
|
|
|
|
|
|
$.each(d, function(key) {
|
|
|
if (d.hasOwnProperty(key)) {
|
...
|
...
|
@@ -157,7 +157,7 @@ var Order = { |
|
|
}
|
|
|
},
|
|
|
/*业务逻辑*/
|
|
|
Submit: {
|
|
|
Bll: {
|
|
|
e: {
|
|
|
$juanok: $('#juansubmit'),
|
|
|
$juantip: $('.errtip', '.play-juan-pan'),
|
...
|
...
|
@@ -172,15 +172,15 @@ var Order = { |
|
|
|
|
|
/*点击 优惠卷支付 确认按钮*/
|
|
|
e.$juanok.click(function() {
|
|
|
var $jgroup = $('input[name="juangroup"]:checked');
|
|
|
var code = $('input[name="juangroup"]:checked').val();
|
|
|
var pan = $(this).parents('.pan');
|
|
|
|
|
|
if ($jgroup.val()) {
|
|
|
if (code) {
|
|
|
options = {
|
|
|
url: '/Order/save/priceByCode',
|
|
|
type: 'post',
|
|
|
data: {
|
|
|
code: $jgroup.val()
|
|
|
code: code
|
|
|
},
|
|
|
success: function(data) {
|
|
|
if (data.code === 200) {
|
...
|
...
|
@@ -219,4 +219,4 @@ Order.Data.activity = 0; |
|
|
Order.Data.carriage = 0;
|
|
|
|
|
|
Order.UI.init();
|
|
|
Order.Submit.init(); |
|
|
\ No newline at end of file |
|
|
Order.Bll.init(); |
|
|
\ No newline at end of file |
...
|
...
|
|