|
@@ -608,12 +608,13 @@ export default {
|
608
|
608
|
totalPrice() {
|
609
|
609
|
let n = 0;
|
610
|
610
|
// 是否为称重
|
611
|
|
- if (item.isWeightGood) {
|
612
|
|
- let m = (item.price / 100) * item.select_num;
|
613
|
|
- m = Number(n.toFixed(2));
|
614
|
|
- n += m;
|
615
|
|
- } else {
|
616
|
|
- for (let item of this.goods) {
|
|
611
|
+
|
|
612
|
+ for (let item of this.goods) {
|
|
613
|
+ if (item.isWeightGood) {
|
|
614
|
+ let m = (item.price / 100) * item.select_num;
|
|
615
|
+ m = Number(n.toFixed(2));
|
|
616
|
+ n += m;
|
|
617
|
+ } else {
|
617
|
618
|
if (item._sku) {
|
618
|
619
|
n += (item._sku.price / 100) * item.select_num;
|
619
|
620
|
} else {
|