showConfirmView ^5.4.1
nativeService.showConfirmView(param).then((resp) => {
nativeService.toast("成功")
}).catch((error) => {
nativeService.toast("失败")
})
| 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
}
]
| Prop |
Type |
Default |
Description |
confirmText |
String |
N/A |
点击的文案:取消/确定 |
index |
Number |
N/A |
点击的index值:10/11 |
| Prop |
Type |
Default |
Description |
errorCode |
Number |
N/A |
请求失败错误码:-1 请求失败 |