优化店铺名显示
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
<text>卡信息</text>
|
||||
</view>
|
||||
|
||||
<text>店铺名称({{ userInfo?.creatorName }})</text>
|
||||
<text>{{ getStoreName() }}</text>
|
||||
<text>{{ userInfo?.storeId }}</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -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;
|
||||
|
@@ -43,6 +43,7 @@ export interface UserBean {
|
||||
source: string;
|
||||
status: string;
|
||||
storeId: string;
|
||||
storeName: string;
|
||||
telephone: string;
|
||||
totalConsumption: string;
|
||||
totalIncoming: number;
|
||||
|
Reference in New Issue
Block a user