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
c8ae704a
authored
Oct 22, 2026
by
kaisa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:cid3分享 新增通用网页分享配置字段
parent
6098c1f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
4 deletions
js/actHead.js
js/webAppComm.js
js/actHead.js
View file @
c8ae704a
...
...
@@ -26,7 +26,10 @@ if (isFirefly) {
imgUrl1
=
'https://app.ixiulive.com/static/app/img/com.happy.live/kf.webp'
;
imgUrl2
=
'https://app.ixiulive.com/static/app/img/com.happy.live/share1.png'
imgUrl3
=
'https://app.ixiulive.com/static/app/img/com.happy.live/5.png'
imgUrl4
=
'https://app.ixiulive.com/static/app/img/title.png'
;
imgUrl4
=
'https://app.ixiulive.com/static/app/img/title.png'
imgUrl5
=
'https://big.bgp.ourpow.com/comm/webShare/close.png'
imgUrl6
=
'https://big.bgp.ourpow.com/comm/webShare/kf.png'
;
imgUrl7
=
'https://big.bgp.ourpow.com/comm/webShare/refresh.png'
;
}
else
if
(
fileName
==
'fusi'
)
{
// fusiya
imgUrl1
=
'https://app.ixiulive.com/static/app/img/fusi/kf.png'
;
...
...
@@ -86,7 +89,24 @@ if ($firefly.urlData.appversion >= 7400) {
"isPrivateMes"
:
1
,
// 是否可以分享私信 0:否 1:是
"webpage"
:
location
.
origin
+
location
.
pathname
+
"?agentCode="
+
$firefly
.
urlData
.
uid
+
"&bindType=3"
,
}
$firefly
.
goShare
(
shareContent
)
let
shareConfig
=
[
{
"imgUrl"
:
imgUrl7
,
"title"
:
'刷新'
,
"webFunc"
:
"$firefly.refreshWeb()"
,
},
{
"imgUrl"
:
imgUrl5
,
"title"
:
'客服'
,
"webFunc"
:
"$firefly.goCustomerService()"
,
},
{
"imgUrl"
:
imgUrl6
,
"title"
:
'关闭'
,
"webFunc"
:
"$firefly.closeWebView()"
,
},
]
$firefly
.
goShare
(
shareContent
,
""
,
shareConfig
);
}
function
openExtra
()
{
let
infos
;
...
...
js/webAppComm.js
View file @
c8ae704a
...
...
@@ -61,6 +61,7 @@
// 62:让客户端打开通用 Flutter 路由 Dialog
// 63:购买成功后通知客户端刷新商城宝石和露水余额
// 64:控制页面左右滑手势
// 65:
function
webAppComm
()
{
this
.
data
=
null
;
...
...
@@ -207,9 +208,9 @@ webAppComm.prototype.goWebView = function (url) {
}
//3:分享
webAppComm
.
prototype
.
goShare
=
function
(
shareContent
,
shareType
)
{
webAppComm
.
prototype
.
goShare
=
function
(
shareContent
,
shareType
,
shareConfig
)
{
let
mShare
=
shareType
||
{
//1图片 2文字 3网页
//
分享方式
1图片 2文字 3网页
wechat
:
3
,
wechat_moment
:
3
,
facebook
:
3
,
...
...
@@ -224,6 +225,7 @@ webAppComm.prototype.goShare = function (shareContent, shareType) {
data
:
{
shareContent
:
shareContent
,
shareType
:
mShare
,
shareConfig
:
shareConfig
,
},
};
let
obj2
=
JSON
.
stringify
(
obj
);
...
...
@@ -1100,6 +1102,19 @@ webAppComm.prototype.controlSwiperHandle = function (type) {
webAppCollaboration
(
obj2
);
};
// 65: 右上角的分享网页配置项
webAppComm
.
prototype
.
shareConfig
=
function
(
config
)
{
let
obj
=
{
cid
:
65
,
data
:
{
msg
:
"网页分享配置内容"
,
config
:
config
,
},
};
let
obj2
=
JSON
.
stringify
(
obj
);
webAppCollaboration
(
obj2
);
};
// 接收客戶端的消息
webAppComm
.
prototype
.
reMsgFromApp
=
function
(
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