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

Merge branch 'master' of https://git.nanodreamtech.com/wkw/wallet_app

liming 21 цаг өмнө
parent
commit
81f4aab4ea

+ 6 - 0
src/router/system.js

@@ -37,6 +37,12 @@ export const systemRoutes = [
         meta: { title: "router.Me", keepAlive: false, navbar: false, tabbar:true }, // 我的
         component: () => import("@/views/me/index.vue"),
       },
+      {
+        path: "personalInformation",
+        name: "personalInformation",
+        meta: { title: "router.Me", keepAlive: false, navbar: true, leftArrow: true }, // 个人资料
+        component: () => import("@/views/me/personalInformation/index.vue"),
+      },
     ],
   },
 ];

+ 6 - 8
src/views/me/index.vue

@@ -39,7 +39,7 @@
           </div>
         </van-col>
         <van-col span="6">
-          <div class="user-bar-icon-box">
+          <div class="user-bar-icon-box" @click="goToProfile">
             <svg-icon class="user-bar-icon"  name="id-card"/> 
             <span class="user-info-text">个人资料</span> 
           </div>
@@ -66,9 +66,8 @@
 </template>
 
 <script setup>
-
-
-
+import { useRouter } from 'vue-router'
+const router = useRouter();
 const vanListConfig = [
   { title: '元宝兑换', icon:"ingot",  url: '/' },
   { title: '竞赛', icon:"competition",  url: '/' },
@@ -78,13 +77,12 @@ const vanListConfig = [
   { title: '系统设置', icon:"set",  url: '/' },
   { title: '管理员设置', icon:"admin-set",  url: '/' },
 ]
-
-
 const evGoPath = (path)=>{
   console.log(path)
 }
-
-
+const goToProfile = () => {
+  router.push('personalInformation')
+}
 </script>
 
 <style lang="less" scoped>

+ 13 - 0
src/views/me/personalInformation/index.vue

@@ -0,0 +1,13 @@
+<template>
+    <div>
+        hahha
+    </div>
+</template>
+
+<script setup>
+
+</script>
+
+<style lang="less" scoped>
+
+</style>