From 54a69954dd496fccdfd43860cb8a0aa80875a3f0 Mon Sep 17 00:00:00 2001
From: "@fawn-nine" <1271023382@qq.com>
Date: Thu, 19 Sep 2024 11:35:36 +0800
Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E7=9B=B8=E5=85=B3=E8=B0=83?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.hbuilderx/launch.json | 2 +-
.../commonComponents/selectGoods.vue | 17 ++-
pages/goods/index/index.vue | 3 +-
pages/goods/order/index.vue | 133 ++++++++++++++----
4 files changed, 116 insertions(+), 39 deletions(-)
diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index b5014f6..5be1b72 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -24,7 +24,7 @@
"type" : "uni-app:app-ios"
},
{
- "playground" : "standard",
+ "playground" : "custom",
"type" : "uni-app:app-android"
},
{
diff --git a/pages/component/commonComponents/selectGoods.vue b/pages/component/commonComponents/selectGoods.vue
index c8c32f9..8d206c2 100644
--- a/pages/component/commonComponents/selectGoods.vue
+++ b/pages/component/commonComponents/selectGoods.vue
@@ -50,7 +50,7 @@
: ''
}`"
>
-
+
-
+
{{ slotProps.row.productName }}
- ¥{{ slotProps.row.activityPrice?slotProps.row.activityPrice:slotProps.row.price }}
+
+ ¥{{slotProps.row.price}}
+ ¥{{ slotProps.row.activityPrice?slotProps.row.activityPrice:slotProps.row.price }}
+
+
diff --git a/pages/goods/index/index.vue b/pages/goods/index/index.vue
index a166865..4471507 100644
--- a/pages/goods/index/index.vue
+++ b/pages/goods/index/index.vue
@@ -877,7 +877,8 @@ export default {
productImages: this.selectGoodsData.productImages,
productId: this.selectGoodsData.productId,
productName: this.selectGoodsData.productName,
- price: this.selectGoodsData.activityPrice?this.selectGoodsData.activityPrice:this.selectGoodsData.price,
+ activityPrice:this.selectGoodsData.activityPrice,
+ price: this.selectGoodsData.price,
goodsType: this.selectGoodsData.goodsType,
},
],
diff --git a/pages/goods/order/index.vue b/pages/goods/order/index.vue
index 287fdbe..f2ba75e 100644
--- a/pages/goods/order/index.vue
+++ b/pages/goods/order/index.vue
@@ -53,15 +53,25 @@
{{ v.productName }}
-
+
-
-
- x 1
+
+
+
+
+ 原价:¥{{v.price}}
+
+ ¥{{ v.activityPrice && v.activityPrice > 0 ? v.activityPrice : v.price}}
+
+ x 1
+
+
+