Showing
1 changed file
with
7 additions
and
6 deletions
@@ -65,19 +65,20 @@ var Order = { | @@ -65,19 +65,20 @@ var Order = { | ||
65 | }); | 65 | }); |
66 | 66 | ||
67 | /*使用优惠卷支付 下面的文本框*/ | 67 | /*使用优惠卷支付 下面的文本框*/ |
68 | - e.$jc.on("focus change",function(event) { | ||
69 | - var radio=$(this).prev('label').prev(':radio'); | ||
70 | - if(event.type==="focus"){ | 68 | + e.$jc.on('focus change', function(event) { |
69 | + var radio = $(this).prev('label').prev(':radio'); | ||
70 | + | ||
71 | + if (event.type === 'focus') { | ||
71 | radio.attr('checked', true); | 72 | radio.attr('checked', true); |
72 | - }else{ | 73 | + } else { |
73 | radio.val($(this).val()); | 74 | radio.val($(this).val()); |
74 | } | 75 | } |
75 | - | 76 | + |
76 | }); | 77 | }); |
77 | 78 | ||
78 | /*使用YOHO币支付*/ | 79 | /*使用YOHO币支付*/ |
79 | e.$bp.data('tobi', e.$tobi.html()); | 80 | e.$bp.data('tobi', e.$tobi.html()); |
80 | - e.$bp.on("keyup change",function() { | 81 | + e.$bp.on('keyup change', function() { |
81 | var bi = c.enterNUM($(this).val(), $(this).data('tobi')); | 82 | var bi = c.enterNUM($(this).val(), $(this).data('tobi')); |
82 | 83 | ||
83 | $(this).val(bi); | 84 | $(this).val(bi); |
-
Please register or login to post a comment