Sfoglia il codice sorgente

个人中心菜单修改

zuy 1 anno fa
parent
commit
51911f277d
3 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 0 0
      src/pages-common/faq/faq.vue
  2. 2 2
      src/pages.json
  3. 4 4
      src/pages/user/user.vue

+ 0 - 0
src/pages-common/contact/contact.vue → src/pages-common/faq/faq.vue


+ 2 - 2
src/pages.json

@@ -151,10 +151,10 @@
       "root": "pages-common",
       "pages": [
         {
-          "path": "contact/contact",
+          "path": "faq/faq",
           "style": {
             "navigationStyle": "default",
-            "navigationBarTitleText": "联系我们",
+            "navigationBarTitleText": "常见问题",
             "navigationBarBackgroundColor": "#ffffff"
           }
         },

+ 4 - 4
src/pages/user/user.vue

@@ -93,11 +93,11 @@ const menu = ref([
   },
   {
     title: "联系我们",
-    path: "/pages-common/contact/contact",
+    path: "",
   },
   {
     title: "常见问题",
-    path: "/pages-common/contact/contact",
+    path: "/pages-common/faq/faq",
   },
   {
     title: "电站列表",
@@ -111,7 +111,7 @@ const toPage = (index: number) => {
     });
     return;
   }
-  if (index === 3) {
+  if (index === 4) {
     uni.makePhoneCall({
       phoneNumber: service.value,
     });
@@ -119,7 +119,7 @@ const toPage = (index: number) => {
   }
   const item = menu.value[index];
   uni.navigateTo({
-    url: item.path + (index === 4 ? `?service=${service.value}` : ""),
+    url: item.path + (index === 5 ? `?service=${service.value}` : ""),
   });
 };