# showConfirmView ^5.4.1

  • 接口描述:

    • 系统提示框
  • 调用方式:

nativeService.showConfirmView(param).then((resp) => {
    nativeService.toast("成功")
}).catch((error) => {
    nativeService.toast("失败")
})
1
2
3
4
5
  • 参数描述:
Prop Type Required Default Description
param Object Y {}附表1 请求参数

附表1:param参数

Prop Type Required Default Description
title String Y N/A 标题
content String Y N/A 内容说明描述
args Array Y [{}]注1 取消/确定按钮参数

注1:args参数

args: [{
    confirmText: "取消",
    index: 10
  },
  {
    confirmText: "确定",
    index: 11
  }
]
1
2
3
4
5
6
7
8
9
  • 返回描述:

    • 成功描述:
Prop Type Default Description
confirmText String N/A 点击的文案:取消/确定
index Number N/A 点击的index值:10/11
    • 失败描述:
Prop Type Default Description
errorCode Number N/A 请求失败错误码:-1 请求失败
Last Updated: 8/6/2021, 4:29:43 PM