|
@@ -19,7 +19,7 @@
|
|
|
</view>
|
|
|
<view class="price">
|
|
|
<view class="price-left">
|
|
|
- {{item.unitPrice*item.courseAmount+item.waterElectricityAmount}}元
|
|
|
+ {{Math.round(item.unitPrice*item.courseAmount+item.waterElectricityAmount)}}元
|
|
|
</view>
|
|
|
<view class="order-amount">
|
|
|
<!-- x1 -->
|
|
@@ -281,8 +281,8 @@
|
|
|
var money2 = 0;
|
|
|
var money3 = 0;
|
|
|
for (var j = 0; j < this.coursesPayList.length; j++) {
|
|
|
- money += this.coursesPayList[j].courseAmount * this.coursesPayList[j].unitPrice + this.coursesPayList[
|
|
|
- j].waterElectricityAmount;
|
|
|
+ money += Math.round(this.coursesPayList[j].courseAmount * this.coursesPayList[j].unitPrice + this.coursesPayList[
|
|
|
+ j].waterElectricityAmount);
|
|
|
money2 += this.coursesPayList[j].courseAmount * this.coursesPayList[j].unitPrice;
|
|
|
money3 += this.coursesPayList[j].waterElectricityAmount;
|
|
|
}
|