소스 검색

feat(membership): 激活会员中心页面导航入口

将 membership/index 从分包移至主包注册,并将 ProfileMenu 的「会员中心」从「即将上线」占位改为真实导航

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Xiaogang Liao 4 달 전
부모
커밋
4daebe39af
2개의 변경된 파일과 7개의 추가작업 그리고 5개의 파일을 삭제
  1. 6 4
      cfc-frontend/pages.json
  2. 1 1
      cfc-frontend/pages/profile/components/ProfileMenu.vue

+ 6 - 4
cfc-frontend/pages.json

@@ -128,6 +128,12 @@
       "style": {
         "navigationBarTitleText": "我的优惠券"
       }
+    },
+    {
+      "path": "pages/membership/index",
+      "style": {
+        "navigationBarTitleText": "会员中心"
+      }
     }
   ],
   "subPackages": [
@@ -493,10 +499,6 @@
     {
       "root": "pages/membership",
       "pages": [
-        {
-          "path": "index",
-          "style": { "navigationBarTitleText": "会员服务" }
-        },
         {
           "path": "upgrade",
           "style": { "navigationBarTitleText": "开通会员" }

+ 1 - 1
cfc-frontend/pages/profile/components/ProfileMenu.vue

@@ -174,7 +174,7 @@ export default {
       }
     },
     goToMembership() {
-      uni.showToast({ title: '即将上线', icon: 'none' })
+      uni.navigateTo({ url: '/pages/membership/index' })
     },
     goToVendorCenter() {
       uni.navigateTo({ url: '/pages/vendor/center' })