From 14eef62db43d4d1b7a5bada04032faaecffecb9e Mon Sep 17 00:00:00 2001 From: liyong <18434998025@163.com> Date: 星期五, 25 四月 2025 14:20:23 +0800 Subject: [PATCH] feat: 单丝扫码 --- src/components/worker-calling-card/index.vue | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/worker-calling-card/index.vue b/src/components/worker-calling-card/index.vue index 1f8be3b..3ea106d 100644 --- a/src/components/worker-calling-card/index.vue +++ b/src/components/worker-calling-card/index.vue @@ -3,12 +3,12 @@ <template #title> <view> <text class="font-medium"> - 鍛ㄧ惣鐜� - <text class="text-[#0D867F] text-xs">路鐢熶骇鎿嶄綔宸�</text> + {{ userInfo?.nickName }} + <text class="text-[#0D867F] text-xs">路{{ userInfo?.roles[0].roleName }}</text> </text> </view> <view> - <text class="font-medium text-[#3D3D3D] text-sm">宸ュ彿: sc1989201</text> + <text class="font-medium text-[#3D3D3D] text-sm">宸ュ彿: {{ userInfo?.userName }}</text> </view> </template> <view class="mt-2"> @@ -16,7 +16,11 @@ </view> </wd-cell> </template> -<script setup lang="ts"></script> +<script setup lang="ts"> +import { useUserStore } from "@/store/modules/user"; +const userStore = useUserStore(); +const userInfo = computed(() => userStore.userInfo); +</script> <style lang="scss" scoped> .calling_card { background: #fff; -- Gitblit v1.9.3