Skip to content

showExtendModal 展示扩展模态框

名称** 类型**** 是否必填**** 示例值**** 描述**
cellsArray元素数组,每一个item为一个包含image、title、content内容的对象
cells[].imageString图片地址
cells[].titleString标题
cells[].contentString文本内容
buttonLabelsArray按钮列表

返回参数

名称** 类型**** 示例值**** 描述**
buttonIndexNumber被点击按钮的索引值,Number,从0开始

用法示例

javascript
SZHN_HZT_SDK.showExtendModal({
  "cells": [
    {
      "image": "hhttps://www.baidu.com/111.jpg",
      "title": "DEMO版本更新",
      "content": "图片尺寸是540x380;"
    },
    {
      "image": "https://www.baidu.com/111.jpg",
      "title": "DEMO版本更新",
      "content": "图片尺寸是540x380;"
    }
  ],
  "buttonLabels": [
    "了解更多",
    "知道了"
  ]
}).then(res => {}).catch(err => {})