feat: 商家介绍拼接

This commit is contained in:
zoujing
2026-09-23 09:06:03 +08:00
parent 59fc90a880
commit 2f35e953df

View File

@@ -39,7 +39,11 @@ const images = computed(() => {
);
});
const badge = computed(() => merchant.value?.type_label || "");
const introTitle = computed(() => String(merchant.value?.intro_label || "").trim() || "介绍");
/** 介绍卡标题:接口 intro_label + 「介绍」 */
const introTitle = computed(() => {
const label = String(merchant.value?.intro_label || "").trim();
return label ? `${label}介绍` : "介绍";
});
const addressText = computed(() => merchant.value?.address || "");
const phone = computed(() => merchant.value?.contact_phone || "");
const businessHours = computed(() => merchant.value?.business_hours || "");
@@ -190,7 +194,7 @@ onShareAppMessage(() => ({
</view>
</view>
<!-- 介绍卡(标题直接取接口 intro_label) -->
<!-- 介绍卡(标题=接口 intro_label + 介绍) -->
<view v-if="merchant.description" :class="CARD">
<view class="flex items-center gap-2 text-[16px] font-bold tracking-[-0.3px] text-ink deco-titledot">
{{ introTitle }}