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
85b834ea
authored
Apr 22, 2024
by
agan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加cid45
parent
adab2692
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
js/webAppComm.js
js/webAppComm.js
View file @
85b834ea
...
@@ -301,7 +301,7 @@ webAppComm.prototype.goOthers = function (jumptype, url, isHide) {
...
@@ -301,7 +301,7 @@ webAppComm.prototype.goOthers = function (jumptype, url, isHide) {
"reqCode"
:
new
Date
().
getTime
(),
"reqCode"
:
new
Date
().
getTime
(),
"data"
:
{
"data"
:
{
"msg"
:
arr
[
jumptype
],
"msg"
:
arr
[
jumptype
],
"jumptype"
:
jumptype
,
//16: 去储值 18: 跳转到座驾 3:跳转集合功能 28:跳转直播间 29:空间 26:设置 40:半屏宝石储值 41:礼物列表 42:背包列表
"jumptype"
:
jumptype
,
//16: 去储值 18: 跳转到座驾 3:跳转集合功能 28:跳转直播间 29:空间 26:设置 40:半屏宝石储值 41:礼物列表 42:背包列表
// 43: 跳转新人主播引导
"url"
:
url
,
//41 42时传入礼物id。
"url"
:
url
,
//41 42时传入礼物id。
"hideTitle"
:
isHide
// 1隐藏头部,0 不隐藏, 默认为0
"hideTitle"
:
isHide
// 1隐藏头部,0 不隐藏, 默认为0
}
}
...
@@ -618,6 +618,20 @@ webAppComm.prototype.vertify = function (type, callBackName) {
...
@@ -618,6 +618,20 @@ webAppComm.prototype.vertify = function (type, callBackName) {
webAppCollaboration
(
obj2
);
webAppCollaboration
(
obj2
);
}
}
//45: 与客户端同步H5客服聊天消息
webAppComm
.
prototype
.
syncChatHis
=
function
(
type
,
content
,
timeStr
)
{
let
obj
=
{
"cid"
:
45
,
//客服聊天用,与客户端同步本地发送信息
"data"
:
{
"type"
:
type
,
//1文字 2图片
"content"
:
content
,
"time"
:
timeStr
//发送聊天时间戳
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
webAppCollaboration
(
obj2
);
}
//接收客戶端的消息
//接收客戶端的消息
webAppComm
.
prototype
.
reMsgFromApp
=
function
(
callback
)
{
webAppComm
.
prototype
.
reMsgFromApp
=
function
(
callback
)
{
callback
&&
callback
();
callback
&&
callback
();
...
...
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