From e4f9130d713d8affc0a88d6d44eafd0e12fbb306 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BD=AD=E9=A1=BA?= <3024235926@qq.com>
Date: Tue, 3 Dec 2024 10:19:10 +0800
Subject: [PATCH 1/3] 1
---
...\344\271\246\347\256\241\347\220\206.html" | 233 ++++++++++++++++++
1 file changed, 233 insertions(+)
create mode 100644 "02 \345\275\255\351\241\272/20241202 ajax/\345\233\276\344\271\246\347\256\241\347\220\206.html"
diff --git "a/02 \345\275\255\351\241\272/20241202 ajax/\345\233\276\344\271\246\347\256\241\347\220\206.html" "b/02 \345\275\255\351\241\272/20241202 ajax/\345\233\276\344\271\246\347\256\241\347\220\206.html"
new file mode 100644
index 0000000..764049e
--- /dev/null
+++ "b/02 \345\275\255\351\241\272/20241202 ajax/\345\233\276\344\271\246\347\256\241\347\220\206.html"
@@ -0,0 +1,233 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
+
+
+
+
--
Gitee
From 62ea58fb591e219a3768116dfc8e9b850dcc01e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BD=AD=E9=A1=BA?= <3024235926@qq.com>
Date: Tue, 3 Dec 2024 11:51:07 +0800
Subject: [PATCH 2/3] 1
---
.../index.html" | 180 ++++++++++++++++++
1 file changed, 180 insertions(+)
create mode 100644 "02 \345\275\255\351\241\272/20241203 \350\264\255\347\211\251\350\275\246/1124_\350\264\255\347\211\251\350\275\246/index.html"
diff --git "a/02 \345\275\255\351\241\272/20241203 \350\264\255\347\211\251\350\275\246/1124_\350\264\255\347\211\251\350\275\246/index.html" "b/02 \345\275\255\351\241\272/20241203 \350\264\255\347\211\251\350\275\246/1124_\350\264\255\347\211\251\350\275\246/index.html"
new file mode 100644
index 0000000..99df9d8
--- /dev/null
+++ "b/02 \345\275\255\351\241\272/20241203 \350\264\255\347\211\251\350\275\246/1124_\350\264\255\347\211\251\350\275\246/index.html"
@@ -0,0 +1,180 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
--
Gitee
From 4b112a3a03058b662eaf2d244cf54523e5291b2d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BD=AD=E9=A1=BA?= <3024235926@qq.com>
Date: Thu, 5 Dec 2024 00:08:37 +0800
Subject: [PATCH 3/3] 1
---
.../index.html" | 23 ++++++++++++-------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git "a/02 \345\275\255\351\241\272/20241203 \350\264\255\347\211\251\350\275\246/1124_\350\264\255\347\211\251\350\275\246/index.html" "b/02 \345\275\255\351\241\272/20241203 \350\264\255\347\211\251\350\275\246/1124_\350\264\255\347\211\251\350\275\246/index.html"
index 99df9d8..af9b3cb 100644
--- "a/02 \345\275\255\351\241\272/20241203 \350\264\255\347\211\251\350\275\246/1124_\350\264\255\347\211\251\350\275\246/index.html"
+++ "b/02 \345\275\255\351\241\272/20241203 \350\264\255\347\211\251\350\275\246/1124_\350\264\255\347\211\251\350\275\246/index.html"
@@ -158,22 +158,29 @@
];
const en = document.querySelector('.list')
console.log(Object.values(goodsList));
+ en.innerHTML= goodsList.map (item=>{
+ const {picture,name,count,price,spec,gift}=item
- goodsList.map((item)=>{
- return `
+ const spec1 = Object.values(spec).join('/')
+ const s = gift ? gift.split(',').map(item=> `
【赠品】${item}`).join(''):''
+ return `
+
${name}
- 【赠品】10优惠券
+ ${s}
-
${spec}
-
${price}
-
${count}
-
${count*price}
-
`
+
${spec1}
+
${price.toFixed(2)}
+
x${count}
+
${(count*price).toFixed(2)}
+
+
+
+
合计:${count*price}
`
}).join('')