|
@@ -95,7 +95,7 @@ class OrderService extends CrudService {
|
|
|
for (const g of i.goods) {
|
|
|
// 如果有特价,那就使用特价,没有特价就是用正常销售价
|
|
|
goods_total = this.ctx.plus(goods_total, this.ctx.multiply(_.get(g, 'price'), _.get(g, 'buy_num')));
|
|
|
- freight_total = this.ctx.plus(freight_total, this.ctx.multiply(_.get(g, 'freight'), _.get(g, 'num')));
|
|
|
+ freight_total = this.ctx.plus(freight_total, this.ctx.multiply(_.get(g, 'freight'), _.get(g, 'buy_num')));
|
|
|
if (_.isArray(g.act)) {
|
|
|
const actDiscount = g.act.reduce((p, n) => this.ctx.plus(p, n.discount), 0);
|
|
|
discount = this.ctx.plus(discount, actDiscount);
|