cmy 2 tahun lalu
induk
melakukan
aaab96594d
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      app/admin/view/store/placeorder/index.php

+ 5 - 1
app/admin/view/store/placeorder/index.php

@@ -180,7 +180,7 @@
 												{{ls.price}}
 											</i-Col>
 											<i-Col span="4" class="text-cente">
-												{{(ls.price*ls.num).toFixed(2)}}
+												{{domNum(ls.price*ls.num)}}
 											</i-Col>
 											<i-Col span="4" class="text-cente">
 												{{+ls.is_consumer==0?'普通商品':'消费券商品'}}
@@ -280,6 +280,10 @@
 						}
 					},
 					methods: {
+						// 向下取整舍弃数
+						domNum: function(value) {
+							return Math.floor(value*100)/100
+						},
 						// 修复订单
 						async orderContrast() {
 							// 开始处理数据