优化店铺名显示

This commit is contained in:
2024-06-16 00:22:40 +08:00
parent 41384ef8e9
commit 14b723ce1f
2 changed files with 6 additions and 1 deletions

View File

@@ -33,7 +33,7 @@
<text>卡信息</text> <text>卡信息</text>
</view> </view>
<text>店铺名称{{ userInfo?.creatorName }}</text> <text>{{ getStoreName() }}</text>
<text>{{ userInfo?.storeId }}</text> <text>{{ userInfo?.storeId }}</text>
</view> </view>
</view> </view>
@@ -71,6 +71,10 @@ onLoad(() => {
}, 1000); }, 1000);
}); });
const getStoreName = () => {
return `${userInfo.value?.nickName || userInfo.value?.name}${userInfo.value?.storeName || userInfo.value?.companyName || userInfo.value?.creatorName}`;
};
const generateCode = async () => { const generateCode = async () => {
const { dynccode } = await getDynamicCode(); const { dynccode } = await getDynamicCode();
codeContent.value = dynccode; codeContent.value = dynccode;

View File

@@ -43,6 +43,7 @@ export interface UserBean {
source: string; source: string;
status: string; status: string;
storeId: string; storeId: string;
storeName: string;
telephone: string; telephone: string;
totalConsumption: string; totalConsumption: string;
totalIncoming: number; totalIncoming: number;