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}}
+