...
|
...
|
@@ -35,7 +35,7 @@ var Order = { |
|
|
var len = e.$tbody.find('tr').length;
|
|
|
var subtotal = parseFloat(td.eq(1).html()) * parseInt(td.eq(3).html());
|
|
|
|
|
|
td.eq(4).html(c.__fixed(subtotal));
|
|
|
td.eq(4).html(c.strFixed(subtotal));
|
|
|
d.product += subtotal;
|
|
|
if (!index) {
|
|
|
td.last().attr('rowspan', len);
|
...
|
...
|
@@ -43,7 +43,7 @@ var Order = { |
|
|
td.last().remove();
|
|
|
}
|
|
|
if (index === len - 1) {
|
|
|
e.$tbody.find('tr').eq(0).find('td').last().html('<strong>' + c.__fixed(d.product) + '</strong>');
|
|
|
e.$tbody.find('tr').eq(0).find('td').last().html('<strong>' + c.strFixed(d.product) + '</strong>');
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -104,16 +104,16 @@ var Order = { |
|
|
e.$statistics.slice(3, 5).hide();
|
|
|
e.$statistics.slice(2, 5).find('em').html('0.00');
|
|
|
if (d.carriage) {
|
|
|
e.$statistics.eq(2).find('em').html(c.__fixed(d.carriage));
|
|
|
e.$statistics.eq(2).find('em').html(c.strFixed(d.carriage));
|
|
|
}
|
|
|
if (d.juan) {
|
|
|
e.$statistics.eq(3).show().find('em').html(c.__fixed(d.juan));
|
|
|
e.$statistics.eq(3).show().find('em').html(c.strFixed(d.juan));
|
|
|
}
|
|
|
if (d.yohocoin) {
|
|
|
e.$statistics.eq(4).show().find('em').html(c.__fixed(d.yohocoin));
|
|
|
e.$statistics.eq(4).show().find('em').html(c.strFixed(d.yohocoin));
|
|
|
}
|
|
|
|
|
|
e.$total.html(c.__fixed(c.calucate()));
|
|
|
e.$total.html(c.strFixed(c.calucate()));
|
|
|
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -148,7 +148,7 @@ var Order = { |
|
|
pan.find('dt').show();
|
|
|
pan.find('dd').hide();
|
|
|
},
|
|
|
__fixed(str) {
|
|
|
strFixed: function(str) {
|
|
|
return parseFloat(str).toFixed(2);
|
|
|
}
|
|
|
},
|
...
|
...
|
|