Appearance
MideaCommon startContract
介绍
跳转原生签署合同流程
示例
js
window.cordova.exec(
(data) => {
console.log("成功", data);
},
(err) => {
console.log("失败", err);
},
"MideaCommon",
"startContract",
[
{
token: "akid",
hasAccept: true,
businessType: 1,
previewDocUrl: "http://test.com",
isNeedSignVideo: false,
signDuration: 30,
contracts: {
name: "ap-guangzhou",
contractNo: "test-1250000000",
filePath: "http://test.com/test.txt",
},
},
]
);
API
入参
| 参数 | 必传 | 类型 | 默认值 | 说明 |
|---|---|---|---|---|
| token | 是 | string | 无 | 获取到的 token |
| hasAccept | 是 | boolean | 无 | 是否已阅读并同意 |
| businessType | 是 | int | 无 | 业务类型 |
| previewDocUrl | 是 | string | 无 | 预览文档地址 |
| isNeedSignVideo | 是 | boolean | 无 | 是否需要签署视频 |
| signDuration | 是 | int | 30 | 签署时长 单位秒 |
| contracts | 是 | jsonarray | 30 | 合同列表 |
| contracts-name | 是 | string | 无 | 合同名称 |
| contracts-contractNo | 是 | string | 无 | 合同号 |
| contracts-filePath | 是 | string | 无 | 合同文件路径 |
出参
- 成功返回 JSONArray 数据
| 参数 | 必传 | 类型 | 说明 |
|---|---|---|---|
| contractNo | 是 | string | 合同编号 |
| constractAuthenticationUrl | 否 | string | 签署地址 |
- 失败返回:无