Skip to content

热区图 ​

在一张背景图上按百分比坐标放置多个可点击区域。

完整信封 ​

ts
{
    component: 'v2.hotzone', text: '热区图', type: '3-3', active: true,
    props: {
        image: 'https://example.com/map.png',
        zones: [{ id: 'zone-1', top: 10, left: 5, width: 40, height: 25, httpType: 10, http: '/pages/activity' }]
    }
}

Props ​

字段类型默认值说明
imagestring''背景图地址
zonesCmsV2Hotzone[][]热区列表
zones[].idstring | number-稳定标识
zones[].top/left/width/heightnumber-0–100 百分比坐标
zones[].httpType10 | 11-内部或外部链接
zones[].httpstring''链接地址

坐标超出范围时运行时限制到 0–100。跳转依赖 link service。

为 uni-app 商城与 CMS 场景设计