Pārlūkot izejas kodu

修复老页面跳转路径2

shmily1213 1 mēnesi atpakaļ
vecāks
revīzija
9f6cb0e5f0

+ 1 - 1
src/components/mx-buy-vip/mx-buy-vip.vue

@@ -44,7 +44,7 @@ const close = function () {
 function gotoPay() {
   close();
   const {transferTo} = useTransfer();
-  transferTo("/pages/personal-center/pay/pay");
+  transferTo("/pagesOther/pages/personal-center/pay/pay");
 }
 
 defineExpose({open, close})

+ 1 - 1
src/hooks/useTransfer.js

@@ -107,7 +107,7 @@ export const useTransfer = function () {
     }
 
     const transferToWebView = function (url, title = '') {
-        const nextPage = '/pages/h5/h5'
+        const nextPage = '/pagesOther/pages/h5/h5'
         transferTo(nextPage, {url, title})
     }
 

+ 7 - 1
src/pagesMain/pages/me/components/me-info.vue

@@ -10,7 +10,7 @@
         <view v-if="phonenumber" class="text-30 text-fore-subcontent">{{ phonenumber }}</view>
       </view>
       <view>
-        <ie-image src="/static/personal/setting.png" custom-class="w-48 h-48" />
+        <ie-image src="/static/personal/setting.png" custom-class="w-48 h-48" @click="handleSettingClick" />
       </view>
     </view>
     <view class="my-30 flex items-center text-center">
@@ -50,5 +50,11 @@ const handleHeaderClick = async () => {
   // 不询问直接跳转登录
   const isLogin = await userStore.checkLogin({ askToLogin: false });
 }
+const handleSettingClick = async () => {
+  const isLogin = await userStore.checkLogin();
+  if (isLogin) {
+    transferTo('/pagesOther/pages/personal-center/setting/setting');
+  }
+}
 </script>
 <style lang="scss" scoped></style>

+ 30 - 7
src/pagesMain/pages/me/components/me-menu.vue

@@ -12,7 +12,8 @@
     </view>
     <view class="-mt-10 rounded-8 py-20">
       <uv-cell-group :border="false">
-        <uv-cell isLink :cellStyle="cellStyle">
+        <uv-cell isLink :cellStyle="cellStyle"
+          @click="handleNavigate('/pagesOther/pages/personal-center/basic-info/basic-info', '基本资料')">
           <template #title>
             <view class="flex items-center gap-x-10">
               <ie-image src="/static/personal/icon_jibenziliao@2x.png" custom-class="w-34 h-34" />
@@ -21,7 +22,8 @@
           </template>
 
         </uv-cell>
-        <uv-cell isLink :cellStyle="cellStyle">
+        <uv-cell isLink :cellStyle="cellStyle"
+          @click="handleNavigate('/pagesOther/pages/personal-center/change-pwd/change-pwd', '修改密码')">
           <template #title>
             <view class="flex items-center gap-x-10">
               <ie-image src="/static/personal/icon_password@2x.png" custom-class="w-36 h-36" />
@@ -29,7 +31,7 @@
             </view>
           </template>
         </uv-cell>
-        <uv-cell isLink :cellStyle="cellStyle">
+        <uv-cell isLink :cellStyle="cellStyle" @click="handleQuestion">
           <template #title>
             <view class="flex items-center gap-x-10">
               <uv-icon name="question-circle" size="16" color="#888888" />
@@ -60,22 +62,22 @@ const menus = [
   {
     name: '测评报告',
     icon: '/static/personal/test_report.png',
-    pagePath: '/pages/test-center/list/list',
+    pagePath: '/pagesOther/pages/test-center/list/list',
   },
   {
     name: '我的收藏',
     icon: '/static/personal/my_collected.png',
-    pagePath: '/pages/test-center/list/list',
+    pagePath: '/pagesOther/pages/personal-center/my-concerned/my-concerned',
   },
   {
     name: '我的志愿表',
     icon: '/static/personal/my_simulated.png',
-    pagePath: '/pages/test-center/list/list',
+    pagePath: '/pagesOther/pages/ie/entry-ai-list/entry-ai-list',
   },
   {
     name: '绑定会员卡',
     icon: '/static/personal/bind_card.png',
-    pagePath: '/pages/test-center/list/list',
+    pagePath: '/pagesOther/pages/personal-center/bind-card/bind-card',
   }
 ];
 const cellStyle = {
@@ -87,6 +89,27 @@ const handleClick = async (item: MenuItem) => {
     transferTo(item.pagePath);
   }
 }
+const handleNavigate = async (pagePath: string, title: string) => {
+  const isLogin = await userStore.checkLogin();
+  if (isLogin) {
+    transferTo(pagePath, {
+      data: {
+        settingName: title
+      }
+    });
+  }
+}
+const handleQuestion = async () => {
+  const isLogin = await userStore.checkLogin();
+  if (isLogin) {
+    transferTo('/pagesOther/pages/h5/h5', {
+      data: {
+        title: '常见问题',
+        url: 'https://www.dz1kt.com/admin/FAQ/FAQ_IE.html'
+      }
+    });
+  }
+}
 const handleLogout = async () => {
   const confirm = await userStore.askLogout();
   if (confirm) {