This commit is contained in:
2026-07-06 16:16:30 +08:00
parent 7e73312838
commit fb9a55229f
3 changed files with 18 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ import { getToken } from '@/utils/storage'
const VIP_APPLY_H5_PATH = '/agent/vipApply'
const CONFIRM_TITLE = '前往浏览器完成升级'
const CONFIRM_CONTENT = '代理会员开通/续费将在系统浏览器中完成,与 App 支付完全分离。是否继续打开?'
const CONFIRM_CONTENT = '代理会员开通/续费将在系统浏览器中完成,是否继续打开?'
export function buildAgentVipApplyH5Url(params: Record<string, string> = {}) {
const { buildSitePathUrl } = useReportWebview()

View File

@@ -22,6 +22,21 @@ const formData = ref({
/** 从首页报告卡片带入的 product_en配置加载后预选 */
const initialFeature = ref('')
/** 推广页不展示「示例报告」的 product_en诚信租赁等 */
const HIDE_EXAMPLE_REPORT_PRODUCT_EN = ['rentalinfo']
const showExampleReportButton = computed(() => {
const feature = formData.value.productType
if (!feature)
return true
if (HIDE_EXAMPLE_REPORT_PRODUCT_EN.includes(feature))
return false
const name = pickerProductConfig.value?.product_name ?? ''
if (name.includes('企业诚信'))
return false
return true
})
const availableReportTypes = computed(() => {
if (!productConfig.value?.length)
return []
@@ -188,12 +203,13 @@ onMounted(() => {
<view class="card mb-4 relative">
<text
v-if="showExampleReportButton"
class="absolute right-4 top-4 z-10 text-sm text-blue-600 active:opacity-70"
@click="toExampleReport"
>
示例报告
</text>
<view class="mb-2 pr-20 text-xl font-semibold">
<view class="mb-2 text-xl font-semibold" :class="{ 'pr-20': showExampleReportButton }">
生成推广码
</view>
<wd-form ref="promotionForm" :model="formData">