From 5fab1b22e0a1c59164169818891f9236291c8f1b Mon Sep 17 00:00:00 2001
From: mlf9527 <2192316287@qq.com>
Date: Wed, 14 Jun 2023 21:31:39 +0800
Subject: [PATCH] =?UTF-8?q?6/14=20=E8=A7=A3=E5=86=B3=E4=BA=86=E7=B2=BE?=
=?UTF-8?q?=E5=BA=A6=E9=97=AE=E9=A2=98=E5=92=8C=E8=B4=AD=E7=89=A9=E8=BD=A6?=
=?UTF-8?q?=E9=87=91=E9=A2=9D=E6=95=B0=E6=8D=AE=E5=8F=AF=E8=83=BD=E8=A2=AB?=
=?UTF-8?q?=E5=89=8D=E7=AB=AF=E7=AF=A1=E6=94=B9=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/front/index.html | 6 +++---
public/front/page/add-order.html | 4 ++--
public/front/page/order.html | 2 +-
public/front/page/user.html | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
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}}