diff --git a/src/pages/prosperity-shop/goods-detail.vue b/src/pages/prosperity-shop/goods-detail.vue
index cf4024b..c9ef73c 100644
--- a/src/pages/prosperity-shop/goods-detail.vue
+++ b/src/pages/prosperity-shop/goods-detail.vue
@@ -1,18 +1,18 @@
-
+
- ¥
+ ¥
{{ state.detail.originalPrice.toFixed(2) }}
- ¥
+ ¥
{{ state.detail.spuPrice.toFixed(2) }}
- 到手价
+ 到手价
约省
- {{ Number(state.detail.originalPrice) - Number(state.detail.spuPrice) }}
+ {{ Number(state.detail.originalPrice) - Number(state.detail.spuPrice) }}
元
@@ -28,10 +28,22 @@
剩余库存 {{ state.detail.totalStock }}
-
+
+ 包装单位
+
+ {{ item.skuName }}
+
+ 售价 {{ displayPrice(item.price) }}
+ 重量 {{ item.weightG }}克
+ 库存 {{ item.stock }}
+
+
+
+
商品描述
+
@@ -40,6 +52,7 @@ import { onLoad } from "@dcloudio/uni-app"
import { reactive } from "vue"
import { prosperityShopApi } from "@/sheep/api"
import { filePath } from "@/sheep/utils/file"
+import { displayPrice } from "@/sheep/utils/formatMoney"
const state = reactive({
id: "",
@@ -75,7 +88,7 @@ const getGoodsDetail = async (id: string) => {
bottom: 0rpx;
width: 20rpx;
height: 20rpx;
- background: radial-gradient(circle at 0 0, transparent 72%, #1879ff 0);
+ background: radial-gradient(circle at 0 0, transparent 80%, red 0);
}
}
diff --git a/src/pages/prosperity-shop/shop-detail.vue b/src/pages/prosperity-shop/shop-detail.vue
index 67d3466..0b47593 100644
--- a/src/pages/prosperity-shop/shop-detail.vue
+++ b/src/pages/prosperity-shop/shop-detail.vue
@@ -1,9 +1,16 @@
-
+
+
+
+ 搜索商品
+
{{ state.detail.name }}
@@ -22,7 +29,7 @@
-