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
2f8b3fe4
authored
May 27, 2026
by
kaisa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更新cid
parent
61736516
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
7 deletions
js/webAppComm.js
js/webAppComm.js
View file @
2f8b3fe4
...
...
@@ -18,6 +18,7 @@
// 18: 打開購買VIP
// 19:打開購買守護彈窗
// 20:播放座驾预览
// 21:隐藏客户端顶部
// 23:自動添加直播間聊天消息
// 24:获取网页图片下标
// 25:点击web
...
...
@@ -32,15 +33,16 @@
// 34:修改标题
// 35:打开游戏
// 36:播放動畫
// 37: web页面加载完毕时通知客户端
// 38: 打开签到提醒
// 39: 告知客户端渠道信息
// 40: 跳转任务界面
// 41: 修改webview底色
// 42: 振动
// 43:修改webview宽高
// 44: 调起第三方并获取OpenId(7570版本以上
// 45:与客户端同步H5客服聊天消息
// 46: 将图片存入相册
// 47: 直播奖励小窗抖动
// 48: 弹出用户行为规范弹窗
// 49: base64格式图片保存到相册
...
...
@@ -50,6 +52,10 @@
// 53:直播间跳转全屏任务中心页面
// 54:添加系统日历提醒
// 55:打开外部对应App并连接到对应的账号
// 56:返回原生上一层(flutter使用)
// 57:开启/加入游戏房间
// 58:告知客户端是否打开原生侧滑返回手势(flutter使用)
// 59: 上麦/下麦
function
webAppComm
()
{
this
.
data
=
null
;
...
...
@@ -312,7 +318,26 @@ webAppComm.prototype.goOthers = function (jumptype, url = '', isHide, gid, topic
"reqCode"
:
new
Date
().
getTime
(),
"data"
:
{
"msg"
:
arr
[
jumptype
],
"jumptype"
:
jumptype
,
//16: 去储值 18: 跳转到座驾 3:跳转集合功能 28:跳转直播间 29:空间 26:设置 40:半屏宝石储值 41:礼物列表 42:背包列表 // 43: 跳转新人主播引导 // 11:跳转主播空间 2:跳转到另一个网页 47: 跳转贴文 71:使者邀请 72:半屏资料卡
"jumptype"
:
jumptype
,
/*
jumptype:
2:跳转到另一个网页
3:跳转集合功能
11:跳转主播空间
16: 去储值
18: 跳转到座驾
26:设置
28:跳转直播间
29:空间
40:半屏宝石储值
41:礼物列表
42:背包列表
43: 跳转新人主播引导
47: 跳转贴文
71:使者邀请
72:半屏资料卡
"jumptype": jumptype,
*/
"url"
:
url
,
//41 42时传入礼物id。
"topicId"
:
topicId
,
// 贴文id
"hideTitle"
:
isHide
,
// 1隐藏头部,0 不隐藏, 默认为0
...
...
@@ -367,7 +392,7 @@ webAppComm.prototype.openRecords = function (urls, type) {
appCollaboration
(
obj2
);
}
//隐藏客户端顶部
//
21:
隐藏客户端顶部
webAppComm
.
prototype
.
hideTopBar
=
function
()
{
let
obj
=
{
"cid"
:
21
,
...
...
@@ -923,8 +948,6 @@ webAppComm.prototype.url_get_params = function (url_path) {
}
return
theRequest
;
}
function
webAppCollaboration
(
msg
)
{
let
sUserAgent
=
navigator
.
userAgent
.
toLowerCase
();
let
bIsIpad
=
sUserAgent
.
match
(
/ipad/i
)
==
"ipad"
;
...
...
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