# popupGeneralList ^7.8
弹出通用弹窗组件
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
title | String | N/A | 如果有值,则显示标题,否则去掉“标题栏”区域- 如:请选择客服类型 |
cancelLabel | String | N/A | 底部取消按钮的显示文案 == 如取消 |
list | String | N/A | list数组,看示例 |
# 接口调用示例
const params = {
title: '请选择客服类型', // 如果有值,则显示标题,否则去掉“标题栏”区域
cancelLabel: '取消', // 底部取消按钮的显示文案
list: [
{
groupName: null, //如果有值,则显示小组label,否则不显示
items: [
{
key: 'onlineService', //点击后返回key值
iconUrl: 'aaa.png', //显示的图标,如果有值,则显示图标。无则不显示
title: '在线客服', // 列表左边label
desc: '', // 列表右边的描述
},
],
},
]
}
this.$bridge
.popupGeneralList(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 接口返回示例
{
"key": "10086",
"iconUrl": null,
"title": "美的",
"desc": "400-889-9315"
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8