Эх сурвалжийг харах

feat: 更新小程序TabBar(发现/商城)并注册溪福俱乐部页面路由和API

User 3 сар өмнө
parent
commit
8c560cb9dc

+ 29 - 4
zxyj-frontend/pages.json

@@ -325,6 +325,31 @@
         "navigationBarTitleText": "任务完成率",
         "navigationStyle": "custom"
       }
+    },
+    // ===== 溪福俱乐部 Phase 0 =====
+    {
+      "path": "pages/discover/index",
+      "style": {
+        "navigationBarTitleText": "发现"
+      }
+    },
+    {
+      "path": "pages/shop/index",
+      "style": {
+        "navigationBarTitleText": "商城"
+      }
+    },
+    {
+      "path": "pages/vendor/apply",
+      "style": {
+        "navigationBarTitleText": "服务商入驻"
+      }
+    },
+    {
+      "path": "pages/vendor/center",
+      "style": {
+        "navigationBarTitleText": "服务商中心"
+      }
     }
   ],
   "globalStyle": {
@@ -344,12 +369,12 @@
         "text": "首页"
       },
       {
-        "pagePath": "pages/tasks/tasks",
-        "text": "任务"
+        "pagePath": "pages/discover/index",
+        "text": "发现"
       },
       {
-        "pagePath": "pages/rewards/rewards",
-        "text": "心愿单"
+        "pagePath": "pages/shop/index",
+        "text": "商城"
       },
       {
         "pagePath": "pages/profile/profile",

+ 17 - 0
zxyj-frontend/utils/api.js

@@ -718,3 +718,20 @@ export const acceptParentInvite = (code) => {
 export const kickFamilyMember = (targetUserId) => {
   return request('/api/family/user/kick', 'POST', { targetUserId })
 }
+
+// ===================== 溪福俱乐部 - 服务商模块 =====================
+
+// 提交服务商入驻申请
+export const vendorApply = (data) => {
+  return request('/api/vendor/apply', 'POST', data)
+}
+
+// 查询入驻审核状态
+export const vendorStatus = () => {
+  return request('/api/vendor/status', 'POST', {})
+}
+
+// 获取服务商信息
+export const vendorInfo = () => {
+  return request('/api/vendor/info', 'POST', {})
+}