| | |
| | | return merchantType === '酒店服务' || merchantType === '酒店' |
| | | }) |
| | | const hideTalentBenefitPanel = computed(() => { |
| | | const merchantType = String(product.value?.merchantType || '').trim().toLowerCase() |
| | | return ['酒店服务', '酒店', '医院服务', '医院', '医疗服务', '医疗', 'hotel', 'hospital', 'medical', 'health_check'].includes(merchantType) |
| | | const productData = product.value as (Product & Record<string, unknown>) | undefined |
| | | const merchantTypes = [ |
| | | productData?.merchantType, |
| | | productData?.merchantTypeCode, |
| | | productData?.merchant_type, |
| | | productData?.merchant_type_code, |
| | | ] |
| | | .map(value => String(value || '').trim().toLowerCase().replace(/[\s_-]+/g, '')) |
| | | .filter(Boolean) |
| | | const productType = String(productData?.productType || '').trim().toLowerCase().replace(/[\s_-]+/g, '') |
| | | const hiddenTypes = [ |
| | | '酒店服务', '酒店', 'hotel', |
| | | '医院服务', '医院', '医疗服务', '医疗', '免费体检', '体检服务', '医疗体检', |
| | | 'hospital', 'medical', 'healthcheck', 'medicalservice', |
| | | ] |
| | | return merchantTypes.some(type => hiddenTypes.includes(type)) || ['hotel', 'hospital', 'medical', 'healthcheck'].includes(productType) |
| | | }) |
| | | const productAmountText = computed(() => { |
| | | const salePrice = product.value?.salePrice |