diff --git a/vue/gold-system/src/router/index.js b/vue/gold-system/src/router/index.js index 40b1180..e951857 100644 --- a/vue/gold-system/src/router/index.js +++ b/vue/gold-system/src/router/index.js @@ -36,6 +36,8 @@ const router=createRouter({ {path:'/allRefund',component:()=>import("../views/refund/allRefund.vue")}, // 客户金币明细 {path:'/usergold',component:()=>import("../views/usergold/index.vue")}, + // 客户金币余额 + {path:'/usergoldInfo',component:()=>import("../views/usergoldInfo/index.vue")}, ] }, diff --git a/vue/gold-system/src/views/index.vue b/vue/gold-system/src/views/index.vue index 9c9a945..b15ef29 100644 --- a/vue/gold-system/src/views/index.vue +++ b/vue/gold-system/src/views/index.vue @@ -33,13 +33,13 @@ const getAdminData = async function () { // 查看个人信息弹出框 const openMessage = function () { messageVisible.value = true; -} +}; const closeMessage = function () { messageVisible.value = false; }; const message = function () { openMessage(); -} +}; function logout() { localStorage.removeItem("token"); @@ -47,7 +47,6 @@ function logout() { ElMessage.success("退出成功"); } - // 挂载 onMounted(async function () { // 获取用户信息 @@ -60,11 +59,23 @@ onMounted(async function () { - + @@ -134,15 +145,31 @@ onMounted(async function () { 客户金币明细 + + + + + + 客户金币余额 + - + 查看个人信息 @@ -184,7 +211,6 @@ onMounted(async function () { -