From a0b5604fcefa0c7900ecc50830b718f77bba8f39 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期五, 15 七月 2022 14:43:40 +0800 Subject: [PATCH] add cluster pwd --- src/views/index/components/userCard.vue | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/index/components/userCard.vue b/src/views/index/components/userCard.vue index 59ed19c..1ac012f 100644 --- a/src/views/index/components/userCard.vue +++ b/src/views/index/components/userCard.vue @@ -4,7 +4,12 @@ <img src="/images/index/榛樿澶村儚-01.png" alt="" /> </div> <div class="notification" v-if="!userInfo"> - Hi!璇� <span class="login">鐧诲綍</span>鎴�<span class="register">娉ㄥ唽</span> + Hi!璇� + <span class="login" @click="jump('/login')">鐧诲綍</span>鎴�<span + class="register" + @click="jump('/register')" + >娉ㄥ唽</span + > </div> <div class="des" v-if="!userInfo">鐧诲綍鍚庢煡鐪嬩釜浜哄伐鍏锋爮</div> <div class="userName" v-else>{{ userInfo.username }}</div> @@ -20,6 +25,7 @@ <script> export default { props: { + userBuyInfo:Object, userCardArr: { type: Array, default: () => { @@ -30,7 +36,7 @@ }, { num: "_", - label: "寰呮秷璐�", + label: "寰呯画璐�", }, { num: "_", @@ -49,6 +55,11 @@ userInfo: null, //鐢ㄦ埛淇℃伅 }; }, + methods: { + jump(url) { + this.$router.push(url); + }, + }, }; </script> -- Gitblit v1.8.0