Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
Static
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1564a68f
authored
a year ago
by
agan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xg
parent
5214f041
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletions
js/webAppComm.js
js/webAppComm.js
View file @
1564a68f
...
...
@@ -35,6 +35,9 @@
// 37:web页面加载完毕时
// 38: 打开签到提醒
// 39: 告知客户端渠道信息
// 40: 跳转任务界面
// 41: 打开半屏网页
function
webAppComm
()
{
this
.
data
=
null
;
...
...
@@ -493,7 +496,7 @@ webAppComm.prototype.sendBindInfos = function (cid, uid, lang, type) {
}
// 40: 跳转任务界面
webAppComm
.
prototype
.
jumpToTask
=
function
(
type
){
webAppComm
.
prototype
.
jumpToTask
=
function
(
type
)
{
let
obj
=
{
"cid"
:
40
,
"data"
:
{
...
...
@@ -504,6 +507,22 @@ webAppComm.prototype.jumpToTask = function (type){
webAppCollaboration
(
obj2
);
}
// 41: 打开半屏网页
webAppComm
.
prototype
.
openHelfWeb
=
function
(
url
,
width
,
height
)
{
let
obj
=
{
"cid"
:
41
,
"data"
:
{
url
:
url
,
width
:
width
,
height
:
height
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
webAppCollaboration
(
obj2
);
}
//接收客戶端的消息
webAppComm
.
prototype
.
reMsgFromApp
=
function
(
callback
)
{
callback
&&
callback
();
...
...
This diff is collapsed.
Click to expand it.
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