Przeglądaj źródła

fix(frontend): 设置菜单由 7 项缩减为 6 项,修正 actionSheet url 映射并移除失效的「设置密码」项

liaoxg 1 miesiąc temu
rodzic
commit
6d07887906
1 zmienionych plików z 5 dodań i 6 usunięć
  1. 5 6
      cfc-frontend/pages/profile-main/profile.vue

+ 5 - 6
cfc-frontend/pages/profile-main/profile.vue

@@ -563,16 +563,15 @@ export default {
     },
     goToSettings: function() {
       uni.showActionSheet({
-        itemList: ['完善信息', '家庭成员', '邀请加入', '设置密码', '隐私设置', '关于浠艾福', '我的画像'],
+        itemList: ['完善信息', '家庭成员', '邀请加入', '隐私政策', '用户协议', '我的画像'],
         success: function(res) {
           var urls = {
             0: '/pages/user-edit/user-edit',
             1: '/pages/profile-extra/family-members',
-             3: '/pages/profile/settings',
-              6: '/pages/profile/portrait-edit'
-          }
-          if (res.tapIndex === 2) {
-            // 邀请加入 - 触发分享
+            2: '/pages/guide/invite/share',
+            3: '/pages/policy/privacy',
+            4: '/pages/policy/agreement',
+            5: '/pages/profile/portrait-edit'
           }
           if (urls[res.tapIndex]) {
             uni.navigateTo({ url: urls[res.tapIndex] })