优化店铺名显示
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user