diff --git a/src/pages/qrcode/index.vue b/src/pages/qrcode/index.vue
index d1f74d4..9bb69c1 100644
--- a/src/pages/qrcode/index.vue
+++ b/src/pages/qrcode/index.vue
@@ -33,7 +33,7 @@
卡信息
- 店铺名称({{ userInfo?.creatorName }})
+ {{ getStoreName() }}
{{ userInfo?.storeId }}
@@ -71,6 +71,10 @@ onLoad(() => {
}, 1000);
});
+const getStoreName = () => {
+ return `${userInfo.value?.nickName || userInfo.value?.name}(${userInfo.value?.storeName || userInfo.value?.companyName || userInfo.value?.creatorName})`;
+};
+
const generateCode = async () => {
const { dynccode } = await getDynamicCode();
codeContent.value = dynccode;
diff --git a/src/store/modules/user/types.ts b/src/store/modules/user/types.ts
index bc63851..6a01c35 100644
--- a/src/store/modules/user/types.ts
+++ b/src/store/modules/user/types.ts
@@ -43,6 +43,7 @@ export interface UserBean {
source: string;
status: string;
storeId: string;
+ storeName: string;
telephone: string;
totalConsumption: string;
totalIncoming: number;