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
5529c758
authored
Sep 16, 2025
by
kaisa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:新增分享私信副标题及左上角图标功能
parent
d8d77097
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
js/actHead.js
js/actHead.js
View file @
5529c758
...
...
@@ -14,7 +14,7 @@ else {
let
imgUrl1
,
imgUrl2
,
imgUrl3
,
imgUrl4
;
let
fileName
=
$firefly
.
urlData
.
appname
;
const
isFirefly
=
fileName
==
'com.happy.live'
||
fileName
==
'com.yzfirefire.live.ios'
const
isFirefly
=
fileName
==
'com.happy.live'
||
fileName
==
'com.yzfirefire.live.ios'
if
(
$firefly
.
urlData
.
appname
==
'com.ftsfoss.android'
||
$firefly
.
urlData
.
appname
==
'com.fusi.meet.live.chat.video.among.friends'
)
{
fileName
=
'fusi'
...
...
@@ -68,6 +68,8 @@ if ($firefly.urlData.appversion >= 7400) {
function
goShare
()
{
let
shareContent
=
{
"title"
:
$
(
'title'
).
html
(),
"subTitle"
:
$
(
'h2'
).
html
()
?
$
(
'h2'
).
html
()
:
""
,
"icoPic"
:
getWebIcon
()
?
getWebIcon
()
:
''
,
"pic"
:
'https://app.ixiulive.com/static/app/img/logo.png'
,
"text"
:
''
,
"whichShare"
:
0
,
...
...
@@ -75,7 +77,6 @@ if ($firefly.urlData.appversion >= 7400) {
}
$firefly
.
goShare
(
shareContent
)
}
function
openExtra
()
{
let
infos
;
if
(
isFirefly
)
{
...
...
@@ -152,5 +153,8 @@ if ($firefly.urlData.appversion >= 7400) {
$firefly
.
openExtra
(
infos
);
}
function
getWebIcon
()
{
const
link
=
document
.
querySelector
(
"link[rel*='icon']"
)
||
document
.
querySelector
(
"link[rel='shortcut icon']"
);
return
link
?
link
.
href
:
''
;
}
}
\ 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