From 397c73077bf1ef53a7eab6057cd639b64ea5df97 Mon Sep 17 00:00:00 2001
From: admin <961120009@qq.com>
Date: Thu, 23 Oct 2025 10:21:37 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E5=88=B8=E9=A1=B5=E9=9D=A2=E6=8F=90?=
=?UTF-8?q?=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/UniappTool.xml | 14 +
.idea/jsLibraryMappings.xml | 6 +
api/coupon.js | 12 +
pages.json | 14 +
pages/my/car.vue | 22 ++
pages/my/getCoupons.vue | 295 ++++++++++++++++++++
pages/my/my.vue | 17 +-
static/my/bg.jpg | Bin 0 -> 22247 bytes
static/my/bg1.png | Bin 0 -> 1315 bytes
static/my/gr.png | Bin 0 -> 1951 bytes
static/my/grc.png | Bin 0 -> 2018 bytes
static/my/logo.png | Bin 0 -> 27611 bytes
static/my/over.png | Bin 0 -> 16403 bytes
static/my/red_envelope.png | Bin 0 -> 34121 bytes
static/my/微信图片_20251022100930_97_25.png | Bin 0 -> 1357 bytes
15 files changed, 377 insertions(+), 3 deletions(-)
create mode 100644 .idea/UniappTool.xml
create mode 100644 .idea/jsLibraryMappings.xml
create mode 100644 api/coupon.js
create mode 100644 pages/my/car.vue
create mode 100644 pages/my/getCoupons.vue
create mode 100644 static/my/bg.jpg
create mode 100644 static/my/bg1.png
create mode 100644 static/my/gr.png
create mode 100644 static/my/grc.png
create mode 100644 static/my/logo.png
create mode 100644 static/my/over.png
create mode 100644 static/my/red_envelope.png
create mode 100644 static/my/微信图片_20251022100930_97_25.png
diff --git a/.idea/UniappTool.xml b/.idea/UniappTool.xml
new file mode 100644
index 0000000..adde661
--- /dev/null
+++ b/.idea/UniappTool.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml
new file mode 100644
index 0000000..c27af06
--- /dev/null
+++ b/.idea/jsLibraryMappings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/api/coupon.js b/api/coupon.js
new file mode 100644
index 0000000..d56c141
--- /dev/null
+++ b/api/coupon.js
@@ -0,0 +1,12 @@
+import {
+ http
+} from "../util/api"
+const baseURL = "http://192.168.0.11:3000"
+export const coupon = {
+ get_coupon: (params = {}) => http.get(baseURL + '/api/coupon',params ),
+ post_coupon: (data = {}) => http.get(`${baseURL}/api/coupon/${data.user_id}`,{coupon_id:data.coupon_id} ),
+}
+export default {
+ coupon
+}
+
diff --git a/pages.json b/pages.json
index 6c4b2d7..f65ae3e 100644
--- a/pages.json
+++ b/pages.json
@@ -160,6 +160,20 @@
"navigationBarTitleText" : "搜索商品",
"navigationStyle": "custom"
}
+ },
+ {
+ "path" : "pages/my/getCoupons",
+ "style" :
+ {
+ "navigationBarTitleText" : "领券中心"
+ }
+ },
+ {
+ "path" : "pages/my/car",
+ "style" :
+ {
+ "navigationBarTitleText" : "购物车"
+ }
}
],
"globalStyle": {
diff --git a/pages/my/car.vue b/pages/my/car.vue
new file mode 100644
index 0000000..8183fd0
--- /dev/null
+++ b/pages/my/car.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
diff --git a/pages/my/getCoupons.vue b/pages/my/getCoupons.vue
new file mode 100644
index 0000000..97f1546
--- /dev/null
+++ b/pages/my/getCoupons.vue
@@ -0,0 +1,295 @@
+
+
+
+
+ 满减券每日限量
+
+
+ ¥{{item.discount}}
+
+ 满{{item.for_a_amount}}可用
+
+
+ 立即领券
+ 已领取
+
+
+
+
+
+
+ 代金券天天领
+
+
+
+ ¥{{item.price}}
+ 无门槛
+ 立即领券
+ 已领取
+
+
+
+
+ 全场促销折扣券
+
+
+ {{(item.precent/10).toFixed(0)}}折
+
+ 指定商品折上折
+
+
+ 立即领券
+ 已领取
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/my/my.vue b/pages/my/my.vue
index eef0024..b0d6ef1 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -45,12 +45,12 @@
我的兑换
-
+
283
- 我的收藏
+ 购物车
@@ -87,7 +87,7 @@