From d2a0584ee54615c8ec5237e9cdb995c85b7bfb65 Mon Sep 17 00:00:00 2001
From: Sun_sun <469361609@qq.com>
Date: Fri, 19 Sep 2025 16:45:02 +0800
Subject: [PATCH] 2025-09-19
---
api/common.js | 2 +-
api/mall.js | 11 ++
pages/login/login.vue | 1 +
pages/mall/mall.vue | 233 +++++++++++++++++++++---------------
pages/register/register.vue | 1 +
static/icon/rongdou.png | Bin 0 -> 9183 bytes
static/icon/zhu.png | Bin 0 -> 7477 bytes
util/api.js | 3 +-
util/common.js | 19 ++-
9 files changed, 172 insertions(+), 98 deletions(-)
create mode 100644 api/mall.js
create mode 100644 static/icon/rongdou.png
create mode 100644 static/icon/zhu.png
diff --git a/api/common.js b/api/common.js
index 9954c3d..8a8c32b 100644
--- a/api/common.js
+++ b/api/common.js
@@ -1,7 +1,7 @@
import { http } from "../util/api";
export const commonAPI = {
- getRegion: () => http.get('/regions/provinces'),
+ getRegion: () => http.get('/common/provinces'),
}
export default {
diff --git a/api/mall.js b/api/mall.js
new file mode 100644
index 0000000..aba5ec8
--- /dev/null
+++ b/api/mall.js
@@ -0,0 +1,11 @@
+import {
+ http
+} from "../util/api";
+
+export const mallAPI = {
+ getMallList: (params) => http.get('/mall', params)
+}
+
+export default {
+ mallAPI
+}
\ No newline at end of file
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 20c7219..0834884 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -156,6 +156,7 @@
}
authAPI.login(loginData).then(response => {
console.log('登录结果', response);
+ uni.clearStorageSync()
if (response.success) {
// 激活用户
uni.setStorageSync("token", response.token)
diff --git a/pages/mall/mall.vue b/pages/mall/mall.vue
index b8bf652..d4fe33d 100644
--- a/pages/mall/mall.vue
+++ b/pages/mall/mall.vue
@@ -1,11 +1,15 @@
-
+
+
+
+
-
+
-
+
- {{item.title}}
+ {{item.name}}
-
- {{item.price}}元
+ ¥{{item.price}}
+
+
+ {{item.rongdou_price}}
+
+
+
+ {{item.points_price}}
-
- 自营
+
+ 融豆
-
- 放心购
+
+ 积分
- {{item.shop}}
+ {{item.category}}
-
- {{item.title}}
+ {{item.name}}
-
- {{item.price}}元
+ ¥{{item.price}}
+
+
+ {{item.rongdou_price}}
+
+
+
+ {{item.points_price}}
-
- 自营
+
+ 融豆
-
- 放心购
+
+ 积分
- {{item.shop}}
+ {{item.category}}
+