diff --git a/public/front/index.html b/public/front/index.html index 9e9ce8b..8f170c8 100644 --- a/public/front/index.html +++ b/public/front/index.html @@ -83,7 +83,7 @@
{{ goodsNum }}
- {{goodsPrice}} + {{goodsPrice/100}}
去结算
@@ -125,7 +125,7 @@
{{item.name}}
- {{item.amount}}
+ {{item.amount/100}}
@@ -386,7 +386,7 @@ //菜单中往购物车中添加商品 async addCart(item){ let params = { - amount:item.price/100,//金额 + amount:item.price,//金额 dishFlavor:item.dishFlavor,//口味 如果没有传undefined dishId:undefined,//菜品id setmealId:undefined,//套餐id diff --git a/public/front/page/add-order.html b/public/front/page/add-order.html index 74e6464..3aca562 100644 --- a/public/front/page/add-order.html +++ b/public/front/page/add-order.html @@ -52,7 +52,7 @@
x{{item.number}}
- {{item.amount}}
+ {{item.amount/100}}
@@ -129,7 +129,7 @@ this.cartData.forEach(item=>{ price += (item.number * item.amount) }) - return price + return price/100 } }, created(){ diff --git a/public/front/page/order.html b/public/front/page/order.html index 9854ff4..2795895 100644 --- a/public/front/page/order.html +++ b/public/front/page/order.html @@ -44,7 +44,7 @@
- 共{{order.sumNum}} 件商品,实付¥{{order.amount}} + 共{{order.sumNum}} 件商品,实付¥{{order.amount/100}}
再来一单
diff --git a/public/front/page/user.html b/public/front/page/user.html index 6034912..6ebebc0 100644 --- a/public/front/page/user.html +++ b/public/front/page/user.html @@ -58,7 +58,7 @@
共{{order[0].sumNum}} 件商品,实付 - ¥{{order[0].amount}} + ¥{{order[0].amount/100}}
再来一单