Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhu_wap_bridge
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
千变科技开源组件
zhu_wap_bridge
Commits
2a6d5e72
Commit
2a6d5e72
authored
Apr 11, 2021
by
westzmg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加电子文档的接入
parent
75e47c15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
244 additions
and
1 deletion
+244
-1
_Bridge.js
components/_Bridge.js
+41
-0
_Bridge.js
lib/_Bridge.js
+203
-1
No files found.
components/_Bridge.js
View file @
2a6d5e72
...
...
@@ -482,6 +482,42 @@ export const getProjectUser = async (opt) => {
})
};
/**
* @name saveSpreadSheet 保存电子文档
* options {
* }
*/
export
const
saveSpreadSheet
=
async
(
opt
)
=>
{
return
new
Promise
(
async
(
resolve
)
=>
{
invoke
.
define
(
'saveSpreadSheetCompleted'
,
async
(
result
)
=>
{
resolve
(
result
)});
await
invoke
.
bind
(
"saveSpreadSheet"
)(
opt
)
})
};
/**
* @name signSpreadSheet 电子文档电子签名
* options {
* }
*/
export
const
signSpreadSheet
=
async
(
opt
)
=>
{
return
new
Promise
(
async
(
resolve
)
=>
{
invoke
.
define
(
'signSpreadSheetCompleted'
,
async
(
result
)
=>
{
resolve
(
result
)});
await
invoke
.
bind
(
"signSpreadSheet"
)(
opt
)
})
};
/**
* @name sealSpreadSheet 电子文档盖章
* options {
* }
*/
export
const
sealSpreadSheet
=
async
(
opt
)
=>
{
return
new
Promise
(
async
(
resolve
)
=>
{
invoke
.
define
(
'sealSpreadSheetCompleted'
,
async
(
result
)
=>
{
resolve
(
result
)});
await
invoke
.
bind
(
"sealSpreadSheet"
)(
opt
)
})
};
export
const
EVENTS_TYPE
=
{
keyboardWillShow
:
'keyboardWillShow'
,
// 键盘即将出现
keyboardDidShow
:
'keyboardDidShow'
,
// 键盘已经出现
...
...
@@ -527,6 +563,11 @@ export default {
takeIdCardAndDiscern
,
getProjectEnterprise
,
getProjectUser
,
saveSpreadSheet
,
signSpreadSheet
,
sealSpreadSheet
,
}
lib/_Bridge.js
View file @
2a6d5e72
...
...
@@ -2081,6 +2081,204 @@ export var getProjectUser = /*#__PURE__*/function () {
return
_ref87
.
apply
(
this
,
arguments
);
};
}();
/**
* @name saveSpreadSheet 保存电子文档
* options {
* }
*/
export
var
saveSpreadSheet
=
/*#__PURE__*/
function
()
{
var
_ref90
=
_asyncToGenerator
(
/*#__PURE__*/
_regeneratorRuntime
.
mark
(
function
_callee92
(
opt
)
{
return
_regeneratorRuntime
.
wrap
(
function
_callee92$
(
_context92
)
{
while
(
1
)
{
switch
(
_context92
.
prev
=
_context92
.
next
)
{
case
0
:
return
_context92
.
abrupt
(
"return"
,
new
Promise
(
/*#__PURE__*/
function
()
{
var
_ref91
=
_asyncToGenerator
(
/*#__PURE__*/
_regeneratorRuntime
.
mark
(
function
_callee91
(
resolve
)
{
return
_regeneratorRuntime
.
wrap
(
function
_callee91$
(
_context91
)
{
while
(
1
)
{
switch
(
_context91
.
prev
=
_context91
.
next
)
{
case
0
:
invoke
.
define
(
'saveSpreadSheetCompleted'
,
/*#__PURE__*/
function
()
{
var
_ref92
=
_asyncToGenerator
(
/*#__PURE__*/
_regeneratorRuntime
.
mark
(
function
_callee90
(
result
)
{
return
_regeneratorRuntime
.
wrap
(
function
_callee90$
(
_context90
)
{
while
(
1
)
{
switch
(
_context90
.
prev
=
_context90
.
next
)
{
case
0
:
resolve
(
result
);
case
1
:
case
"end"
:
return
_context90
.
stop
();
}
}
},
_callee90
);
}));
return
function
(
_x90
)
{
return
_ref92
.
apply
(
this
,
arguments
);
};
}());
_context91
.
next
=
3
;
return
invoke
.
bind
(
"saveSpreadSheet"
)(
opt
);
case
3
:
case
"end"
:
return
_context91
.
stop
();
}
}
},
_callee91
);
}));
return
function
(
_x89
)
{
return
_ref91
.
apply
(
this
,
arguments
);
};
}()));
case
1
:
case
"end"
:
return
_context92
.
stop
();
}
}
},
_callee92
);
}));
return
function
saveSpreadSheet
(
_x88
)
{
return
_ref90
.
apply
(
this
,
arguments
);
};
}();
/**
* @name signSpreadSheet 电子文档电子签名
* options {
* }
*/
export
var
signSpreadSheet
=
/*#__PURE__*/
function
()
{
var
_ref93
=
_asyncToGenerator
(
/*#__PURE__*/
_regeneratorRuntime
.
mark
(
function
_callee95
(
opt
)
{
return
_regeneratorRuntime
.
wrap
(
function
_callee95$
(
_context95
)
{
while
(
1
)
{
switch
(
_context95
.
prev
=
_context95
.
next
)
{
case
0
:
return
_context95
.
abrupt
(
"return"
,
new
Promise
(
/*#__PURE__*/
function
()
{
var
_ref94
=
_asyncToGenerator
(
/*#__PURE__*/
_regeneratorRuntime
.
mark
(
function
_callee94
(
resolve
)
{
return
_regeneratorRuntime
.
wrap
(
function
_callee94$
(
_context94
)
{
while
(
1
)
{
switch
(
_context94
.
prev
=
_context94
.
next
)
{
case
0
:
invoke
.
define
(
'signSpreadSheetCompleted'
,
/*#__PURE__*/
function
()
{
var
_ref95
=
_asyncToGenerator
(
/*#__PURE__*/
_regeneratorRuntime
.
mark
(
function
_callee93
(
result
)
{
return
_regeneratorRuntime
.
wrap
(
function
_callee93$
(
_context93
)
{
while
(
1
)
{
switch
(
_context93
.
prev
=
_context93
.
next
)
{
case
0
:
resolve
(
result
);
case
1
:
case
"end"
:
return
_context93
.
stop
();
}
}
},
_callee93
);
}));
return
function
(
_x93
)
{
return
_ref95
.
apply
(
this
,
arguments
);
};
}());
_context94
.
next
=
3
;
return
invoke
.
bind
(
"signSpreadSheet"
)(
opt
);
case
3
:
case
"end"
:
return
_context94
.
stop
();
}
}
},
_callee94
);
}));
return
function
(
_x92
)
{
return
_ref94
.
apply
(
this
,
arguments
);
};
}()));
case
1
:
case
"end"
:
return
_context95
.
stop
();
}
}
},
_callee95
);
}));
return
function
signSpreadSheet
(
_x91
)
{
return
_ref93
.
apply
(
this
,
arguments
);
};
}();
/**
* @name sealSpreadSheet 电子文档盖章
* options {
* }
*/
export
var
sealSpreadSheet
=
/*#__PURE__*/
function
()
{
var
_ref96
=
_asyncToGenerator
(
/*#__PURE__*/
_regeneratorRuntime
.
mark
(
function
_callee98
(
opt
)
{
return
_regeneratorRuntime
.
wrap
(
function
_callee98$
(
_context98
)
{
while
(
1
)
{
switch
(
_context98
.
prev
=
_context98
.
next
)
{
case
0
:
return
_context98
.
abrupt
(
"return"
,
new
Promise
(
/*#__PURE__*/
function
()
{
var
_ref97
=
_asyncToGenerator
(
/*#__PURE__*/
_regeneratorRuntime
.
mark
(
function
_callee97
(
resolve
)
{
return
_regeneratorRuntime
.
wrap
(
function
_callee97$
(
_context97
)
{
while
(
1
)
{
switch
(
_context97
.
prev
=
_context97
.
next
)
{
case
0
:
invoke
.
define
(
'sealSpreadSheetCompleted'
,
/*#__PURE__*/
function
()
{
var
_ref98
=
_asyncToGenerator
(
/*#__PURE__*/
_regeneratorRuntime
.
mark
(
function
_callee96
(
result
)
{
return
_regeneratorRuntime
.
wrap
(
function
_callee96$
(
_context96
)
{
while
(
1
)
{
switch
(
_context96
.
prev
=
_context96
.
next
)
{
case
0
:
resolve
(
result
);
case
1
:
case
"end"
:
return
_context96
.
stop
();
}
}
},
_callee96
);
}));
return
function
(
_x96
)
{
return
_ref98
.
apply
(
this
,
arguments
);
};
}());
_context97
.
next
=
3
;
return
invoke
.
bind
(
"sealSpreadSheet"
)(
opt
);
case
3
:
case
"end"
:
return
_context97
.
stop
();
}
}
},
_callee97
);
}));
return
function
(
_x95
)
{
return
_ref97
.
apply
(
this
,
arguments
);
};
}()));
case
1
:
case
"end"
:
return
_context98
.
stop
();
}
}
},
_callee98
);
}));
return
function
sealSpreadSheet
(
_x94
)
{
return
_ref96
.
apply
(
this
,
arguments
);
};
}();
export
var
EVENTS_TYPE
=
{
keyboardWillShow
:
'keyboardWillShow'
,
// 键盘即将出现
...
...
@@ -2127,5 +2325,8 @@ export default {
discernIdCardBack
:
discernIdCardBack
,
takeIdCardAndDiscern
:
takeIdCardAndDiscern
,
getProjectEnterprise
:
getProjectEnterprise
,
getProjectUser
:
getProjectUser
getProjectUser
:
getProjectUser
,
saveSpreadSheet
:
saveSpreadSheet
,
signSpreadSheet
:
signSpreadSheet
,
sealSpreadSheet
:
sealSpreadSheet
};
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment