|
|
@@ -83,7 +83,7 @@
|
|
|
<!-- 简介 -->
|
|
|
<TextEllipsis
|
|
|
fontConfig="secondText"
|
|
|
- :outerProps="{ direction: 'row', width: descOpen || !isStaff ? '' : '490rpx' }"
|
|
|
+ :outerProps="{ direction: 'row', width: descOpen ? '' : '490rpx' }"
|
|
|
:lines="1"
|
|
|
:expandable="(villageInfoLoader.content.value?.desc as string || '').length > 20"
|
|
|
:text="(villageInfoLoader.content.value?.desc as string) || '暂无简介,欢迎您来编写完善!'"
|
|
|
@@ -91,7 +91,7 @@
|
|
|
@expand="descOpen = true;"
|
|
|
@collapse="descOpen = false;"
|
|
|
/>
|
|
|
- <Button v-if="isStaff" size="mini" icon="edit-filling" text="编辑简介" @click="handleGoEdit" />
|
|
|
+ <Button size="mini" icon="edit-filling" text="编辑简介" @click="handleGoEdit" />
|
|
|
</FlexView>
|
|
|
|
|
|
<!-- 状态与申请 -->
|
|
|
@@ -104,8 +104,8 @@
|
|
|
<FlexRow align="center">
|
|
|
<FlexCol gap="gap.md">
|
|
|
<FlexRow gap="gap.lg" align="center">
|
|
|
- <Icon v-if="villageInfoLoader.content.value?.level === 4" name="https://xy.wenlvti.net/app_static/images/village/IconGov.png" :size="70" />
|
|
|
- <Text :text="`${villageInfoLoader.content.value?.levelText || '默认级别'}`" fontConfig="secondText" />
|
|
|
+ <Icon v-if="villageInfoLoader.content.value?.vipLevel === 4" name="https://xy.wenlvti.net/app_static/images/village/IconGov.png" :size="70" />
|
|
|
+ <Text :text="`${villageInfoLoader.content.value?.vipLevelText || '默认级别'}`" fontConfig="secondText" />
|
|
|
</FlexRow>
|
|
|
<Text v-if="villageInfoLoader.content.value?.sizeLimit" :text="`存储空间:${villageInfoLoader.content.value?.sizeText || ''}`" :fontSize="22" fontConfig="secondText" />
|
|
|
<Text v-else text="无限存储空间" :fontSize="22" fontConfig="secondText" />
|
|
|
@@ -458,8 +458,9 @@ const villageInfoLoader = useSimpleDataLoader(async () => {
|
|
|
address: village?.address,
|
|
|
sizeText: `${FormatUtils.formatSize(village?.storageUsed || 0)}/${FormatUtils.formatSize(village?.storageLimit || 0)}`,
|
|
|
sizeLimit: (village?.storageLimit || 0) >= 0,
|
|
|
- level: village?.vipLevel || '',
|
|
|
- levelText: village?.vipName ? `已升级 · ${village?.vipName}` : '',
|
|
|
+ level: village?.level || 1,
|
|
|
+ vipLevel: village?.vipLevel || '',
|
|
|
+ vipLevelText: village?.vipName ? `已升级 · ${village?.vipName}` : '',
|
|
|
rankText: village?.rank.toString() || '',
|
|
|
light: village?.light || 0,
|
|
|
memberCount: village?.volunteerCount || 0,
|