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
dca33237
authored
Feb 05, 2025
by
qiuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增处理马甲包对应资源方法
parent
78dc2394
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
275 additions
and
0 deletions
js/common.js
js/common.js
View file @
dca33237
...
@@ -119,4 +119,278 @@ function appCollaboration(msg) {
...
@@ -119,4 +119,278 @@ function appCollaboration(msg) {
//客户端回调结果
//客户端回调结果
function
appCallback
(
msg
)
{
function
appCallback
(
msg
)
{
console
.
log
(
msg
);
console
.
log
(
msg
);
}
/**
* 根据传入的appname马甲包名返回对应马甲包的资源对象
* @param appname 马甲包名
* @returns resourceObj
*/
function
handleVestApp
(
appname
)
{
const
staticUrl
=
"https://app.ixiulive.com/static/app/img/vestBag"
;
let
resourceObj
;
if
(
appname
==
"face.peach.live.video.chat.tangoo"
||
appname
==
"online.live.video.chat.mt.lite"
||
appname
==
"com.peach.live.mico.tangoo"
)
{
/* 蜜桃直播或蜜桃lite */
resourceObj
=
{
btnTextColor
:
"#fff"
,
fireColor
:
"#DD59F1"
,
bgColor
:
"#feacd2"
,
// 邀请有奖主页面背景色·
langBgColor
:
"#fff"
,
textColor
:
"#F658A1"
,
// 默认主题文字颜色
themeColor
:
"#F658A1"
,
// 主题色
bgImg
:
staticUrl
+
"/nectarina/invite_bg.jpg"
,
bgEnImg
:
staticUrl
+
"/nectarina/invite_bg_en.jpg"
,
hasBuyIcon
:
staticUrl
+
"/nectarina/has_buy_icon.png"
,
iconBigFire
:
staticUrl
+
"/nectarina/icon_bigFire.png"
,
dewImg
:
staticUrl
+
"/nectarina/icon_dew.png"
,
fireImg
:
staticUrl
+
"/nectarina/icon_fire.png"
,
gewImg
:
staticUrl
+
"/nectarina/icon_gew.png"
,
inviteBg
:
staticUrl
+
"/nectarina/invite_bg.png"
,
inviteBgEn
:
staticUrl
+
"/nectarina/invite_bg_en.png"
,
lastImg
:
staticUrl
+
"/nectarina/last.png"
,
loadLogo
:
staticUrl
+
"/nectarina/load_logo.png"
,
logo
:
staticUrl
+
"/nectarina/logo.png"
,
noData
:
staticUrl
+
"/nectarina/no_data.png"
,
step1
:
staticUrl
+
"/nectarina/step1.png"
,
step1En
:
staticUrl
+
"/nectarina/step1_en.png"
,
step2
:
staticUrl
+
"/nectarina/step2.png"
,
step2En
:
staticUrl
+
"/nectarina/step2_en.png"
,
step3
:
staticUrl
+
"/nectarina/step3.png"
,
step3En
:
staticUrl
+
"/nectarina/step3_en.png"
,
vipImg
:
staticUrl
+
"/nectarina/vip.png"
,
svipImg
:
staticUrl
+
"/nectarina/svip.png"
,
vipBg1Cn
:
staticUrl
+
"/nectarina/vip_bg1_cn.png"
,
vipBg1En
:
staticUrl
+
"/nectarina/vip_bg1_en.png"
,
vipBg2Cn
:
staticUrl
+
"/nectarina/vip_bg2_cn.png"
,
vipBg2En
:
staticUrl
+
"/nectarina/vip_bg2_en.png"
,
noLogo
:
staticUrl
+
"/nectarina/no_data.png"
,
caseBg1
:
staticUrl
+
"/nectarina/case_bg1.png"
,
caseBg2
:
staticUrl
+
"/nectarina/case_bg2.png"
,
headLogo
:
staticUrl
+
"/nectarina/head_logo.png"
,
iconCorrect
:
staticUrl
+
"/nectarina/icon_correct.png"
,
checkColorBg
:
staticUrl
+
"/nectarina/check_color_bg.png"
,
multipleGew
:
staticUrl
+
"/nectarina/multipleGew.png"
,
iconBox
:
staticUrl
+
"/nectarina/icon_box.png"
,
rewardHeadChImg
:
staticUrl
+
"/nectarina/reward_head.png"
,
rewardHeadENImg
:
staticUrl
+
"/nectarina/reward_head_en.png"
,
rewaRdrulesCh1Img
:
staticUrl
+
"/nectarina/rewaRdrules-ch1.png"
,
rewaRdrulesCh2Img
:
staticUrl
+
"/nectarina/rewaRdrules-ch2.png"
,
rewaRdrulesEn1Img
:
staticUrl
+
"/nectarina/rewaRdrules-en1.png"
,
rewaRdrulesEn2Img
:
staticUrl
+
"/nectarina/rewaRdrules-en2.png"
,
rewardBgColor
:
'#fcdbea'
,
// 直播奖励页面背景色
rewardIcon
:
staticUrl
+
"/secret/reward-icon.png"
,
};
}
else
if
(
appname
==
"among.chameet.bigoo.Live.video.chat"
||
appname
==
"com.nine.one.lite.android"
)
{
/* 秘密直播或秘密lite */
resourceObj
=
{
btnTextColor
:
"#fff"
,
fireColor
:
"#EE348B"
,
bgColor
:
"#fc8b98"
,
langBgColor
:
"#fff"
,
textColor
:
"#FD4F62"
,
themeColor
:
"#FD4F62"
,
// 主题色
bgImg
:
staticUrl
+
"/secret/invite_bg.jpg"
,
bgEnImg
:
staticUrl
+
"/secret/invite_bg_en.jpg"
,
hasBuyIcon
:
staticUrl
+
"/secret/has_buy_icon.png"
,
iconBigFire
:
staticUrl
+
"/secret/icon_bigFire.png"
,
dewImg
:
staticUrl
+
"/secret/icon_dew.png"
,
fireImg
:
staticUrl
+
"/secret/icon_fire.png"
,
gewImg
:
staticUrl
+
"/secret/icon_gew.png"
,
inviteBg
:
staticUrl
+
"/secret/invite_bg.png"
,
inviteBgEn
:
staticUrl
+
"/secret/invite_bg_en.png"
,
lastImg
:
staticUrl
+
"/secret/last.png"
,
loadLogo
:
staticUrl
+
"/secret/load_logo.png"
,
logo
:
staticUrl
+
"/secret/logo.png"
,
noData
:
staticUrl
+
"/secret/no_data.png"
,
step1
:
staticUrl
+
"/secret/step1.png"
,
step1En
:
staticUrl
+
"/secret/step1_en.png"
,
step2
:
staticUrl
+
"/secret/step2.png"
,
step2En
:
staticUrl
+
"/secret/step2_en.png"
,
step3
:
staticUrl
+
"/secret/step3.png"
,
step3En
:
staticUrl
+
"/secret/step3_en.png"
,
vipImg
:
staticUrl
+
"/secret/vip.png"
,
svipImg
:
staticUrl
+
"/secret/svip.png"
,
vipBg1Cn
:
staticUrl
+
"/secret/vip_bg1_cn.png"
,
vipBg1En
:
staticUrl
+
"/secret/vip_bg1_en.png"
,
vipBg2Cn
:
staticUrl
+
"/secret/vip_bg2_cn.png"
,
vipBg2En
:
staticUrl
+
"/secret/vip_bg2_en.png"
,
noLogo
:
staticUrl
+
"/secret/no_data.png"
,
caseBg1
:
staticUrl
+
"/secret/case_bg1.png"
,
caseBg2
:
staticUrl
+
"/secret/case_bg2.png"
,
headLogo
:
staticUrl
+
"/secret/head_logo.png"
,
iconCorrect
:
staticUrl
+
"/secret/icon_correct.png"
,
checkColorBg
:
staticUrl
+
"/secret/check_color_bg.png"
,
multipleGew
:
staticUrl
+
"/secret/multipleGew.png"
,
iconBox
:
staticUrl
+
"/secret/icon_box.png"
,
rewardHeadChImg
:
staticUrl
+
"/secret/reward_head.png"
,
rewardHeadENImg
:
staticUrl
+
"/secret/reward_head_en.png"
,
rewaRdrulesCh1Img
:
staticUrl
+
"/secret/rewaRdrules-ch1.png"
,
rewaRdrulesCh2Img
:
staticUrl
+
"/secret/rewaRdrules-ch2.png"
,
rewaRdrulesEn1Img
:
staticUrl
+
"/secret/rewaRdrules-en1.png"
,
rewaRdrulesEn2Img
:
staticUrl
+
"/secret/rewaRdrules-en2.png"
,
rewardBgColor
:
'#fee4e7'
,
// 直播奖励页面背景色
rewardIcon
:
staticUrl
+
"/secret/reward-icon.png"
,
};
}
else
if
(
appname
==
"chat.video.live.bigoo.micoo"
)
{
/* 悦色*/
resourceObj
=
{
btnTextColor
:
"#fff"
,
fireColor
:
"#FEA718"
,
bgColor
:
"#fcd88a"
,
langBgColor
:
"#fff"
,
textColor
:
"F7CA6A"
,
themeColor
:
"#F7CA6A"
,
// 主题色
bgImg
:
staticUrl
+
"/candle/invite_bg.jpg"
,
bgEnImg
:
staticUrl
+
"/candle/invite_bg_en.jpg"
,
hasBuyIcon
:
staticUrl
+
"/candle/has_buy_icon.png"
,
iconBigFire
:
staticUrl
+
"/candle/icon_bigFire.png"
,
dewImg
:
staticUrl
+
"/candle/icon_dew.png"
,
fireImg
:
staticUrl
+
"/candle/icon_fire.png"
,
gewImg
:
staticUrl
+
"/candle/icon_gew.png"
,
inviteBg
:
staticUrl
+
"/candle/invite_bg.png"
,
inviteBgEn
:
staticUrl
+
"/candle/invite_bg_en.png"
,
lastImg
:
staticUrl
+
"/candle/last.png"
,
loadLogo
:
staticUrl
+
"/candle/load_logo.png"
,
logo
:
staticUrl
+
"/candle/logo.png"
,
noData
:
staticUrl
+
"/candle/no_data.png"
,
step1
:
staticUrl
+
"/candle/step1.png"
,
step1En
:
staticUrl
+
"/candle/step1_en.png"
,
step2
:
staticUrl
+
"/candle/step2.png"
,
step2En
:
staticUrl
+
"/candle/step2_en.png"
,
step3
:
staticUrl
+
"/candle/step3.png"
,
step3En
:
staticUrl
+
"/candle/step3_en.png"
,
vipImg
:
staticUrl
+
"/candle/vip.png"
,
svipImg
:
staticUrl
+
"/candle/svip.png"
,
vipBg1Cn
:
staticUrl
+
"/candle/vip_bg1_cn.png"
,
vipBg1En
:
staticUrl
+
"/candle/vip_bg1_en.png"
,
vipBg2Cn
:
staticUrl
+
"/candle/vip_bg2_cn.png"
,
vipBg2En
:
staticUrl
+
"/candle/vip_bg2_en.png"
,
noLogo
:
staticUrl
+
"/candle/no_data.png"
,
caseBg1
:
staticUrl
+
"/candle/case_bg1.png"
,
caseBg2
:
staticUrl
+
"/candle/case_bg2.png"
,
headLogo
:
staticUrl
+
"/candle/head_logo.png"
,
iconCorrect
:
staticUrl
+
"/candle/icon_correct.png"
,
checkColorBg
:
staticUrl
+
"/candle/check_color_bg.png"
,
multipleGew
:
staticUrl
+
"/candle/multipleGew.png"
,
iconBox
:
staticUrl
+
"/candle/icon_box.png"
,
rewardHeadChImg
:
staticUrl
+
"/candle/reward_head.png"
,
rewardHeadENImg
:
staticUrl
+
"/candle/reward_head_en.png"
,
rewaRdrulesCh1Img
:
staticUrl
+
"/candle/rewaRdrules-ch1.png"
,
rewaRdrulesCh2Img
:
staticUrl
+
"/candle/rewaRdrules-ch2.png"
,
rewaRdrulesEn1Img
:
staticUrl
+
"/candle/rewaRdrules-en1.png"
,
rewaRdrulesEn2Img
:
staticUrl
+
"/candle/rewaRdrules-en2.png"
,
rewardBgColor
:
'#e3ffff'
,
rewardIcon
:
staticUrl
+
"/secret/reward-icon.png"
,
};
}
else
if
(
appname
==
"com.zhuguang.can.android"
)
{
/* 烛光*/
resourceObj
=
{
btnTextColor
:
"#fff"
,
fireColor
:
"#FD58A7"
,
bgColor
:
"#fec2ff"
,
langBgColor
:
"#fff"
,
textColor
:
"#E74EE7"
,
themeColor
:
"#E74EE7"
,
// 主题色
bgImg
:
staticUrl
+
"/joyColor/invite_bg.jpg"
,
bgEnImg
:
staticUrl
+
"/joyColor/invite_bg_en.jpg"
,
hasBuyIcon
:
staticUrl
+
"/joyColor/has_buy_icon.png"
,
iconBigFire
:
staticUrl
+
"/joyColor/icon_bigFire.png"
,
dewImg
:
staticUrl
+
"/joyColor/icon_dew.png"
,
fireImg
:
staticUrl
+
"/joyColor/icon_fire.png"
,
gewImg
:
staticUrl
+
"/joyColor/icon_gew.png"
,
inviteBg
:
staticUrl
+
"/joyColor/invite_bg.png"
,
inviteBgEn
:
staticUrl
+
"/joyColor/invite_bg_en.png"
,
lastImg
:
staticUrl
+
"/joyColor/last.png"
,
loadLogo
:
staticUrl
+
"/joyColor/load_logo.png"
,
logo
:
staticUrl
+
"/joyColor/logo.png"
,
noData
:
staticUrl
+
"/joyColor/no_data.png"
,
step1
:
staticUrl
+
"/joyColor/step1.png"
,
step1En
:
staticUrl
+
"/joyColor/step1_en.png"
,
step2
:
staticUrl
+
"/joyColor/step2.png"
,
step2En
:
staticUrl
+
"/joyColor/step2_en.png"
,
step3
:
staticUrl
+
"/joyColor/step3.png"
,
step3En
:
staticUrl
+
"/joyColor/step3_en.png"
,
vipImg
:
staticUrl
+
"/joyColor/vip.png"
,
svipImg
:
staticUrl
+
"/joyColor/svip.png"
,
vipBg1Cn
:
staticUrl
+
"/joyColor/vip_bg1_cn.png"
,
vipBg1En
:
staticUrl
+
"/joyColor/vip_bg1_en.png"
,
vipBg2Cn
:
staticUrl
+
"/joyColor/vip_bg2_cn.png"
,
vipBg2En
:
staticUrl
+
"/joyColor/vip_bg2_en.png"
,
noLogo
:
staticUrl
+
"/joyColor/no_data.png"
,
caseBg1
:
staticUrl
+
"/joyColor/case_bg1.png"
,
caseBg2
:
staticUrl
+
"/joyColor/case_bg2.png"
,
headLogo
:
staticUrl
+
"/joyColor/head_logo.png"
,
iconCorrect
:
staticUrl
+
"/joyColor/icon_correct.png"
,
checkColorBg
:
staticUrl
+
"/joyColor/check_color_bg.png"
,
multipleGew
:
staticUrl
+
"/joyColor/multipleGew.png"
,
iconBox
:
staticUrl
+
"/joyColor/icon_box.png"
,
rewardHeadChImg
:
staticUrl
+
"/joyColor/reward_head.png"
,
rewardHeadENImg
:
staticUrl
+
"/joyColor/reward_head_en.png"
,
rewaRdrulesCh1Img
:
staticUrl
+
"/joyColor/rewaRdrules-ch1.png"
,
rewaRdrulesCh2Img
:
staticUrl
+
"/joyColor/rewaRdrules-ch2.png"
,
rewaRdrulesEn1Img
:
staticUrl
+
"/joyColor/rewaRdrules-en1.png"
,
rewaRdrulesEn2Img
:
staticUrl
+
"/joyColor/rewaRdrules-en2.png"
,
rewardBgColor
:
'#fee0fe'
,
rewardIcon
:
staticUrl
+
"/secret/reward-icon.png"
,
};
}
else
{
resourceObj
=
{
// 默认是fusi和firefly
btnTextColor
:
"#000"
,
fireColor
:
"#00be6b"
,
bgColor
:
"#01d9e0"
,
langBgColor
:
"#95EAF9"
,
textColor
:
"#01D9E0"
,
themeColor
:
"#01d9e0"
,
// 主题色
bgImg
:
staticUrl
+
"/fusi/invite_bg.jpg"
,
bgEnImg
:
staticUrl
+
"/fusi/invite_bg_en.jpg"
,
hasBuyIcon
:
staticUrl
+
"/fusi/has_buy_icon.png"
,
iconBigFire
:
staticUrl
+
"/fusi/icon_bigFire.png"
,
dewImg
:
staticUrl
+
"/fusi/icon_dew.png"
,
fireImg
:
staticUrl
+
"/fusi/icon_fire.png"
,
gewImg
:
staticUrl
+
"/fusi/icon_gew.png"
,
inviteBg
:
staticUrl
+
"/fusi/invite_bg.png"
,
inviteBgEn
:
staticUrl
+
"/fusi/invite_bg_en.png"
,
lastImg
:
staticUrl
+
"/fusi/last.png"
,
loadLogo
:
staticUrl
+
"/fusi/load_logo.png"
,
logo
:
staticUrl
+
"/fusi/logo.png"
,
noData
:
staticUrl
+
"/fusi/no_data.png"
,
step1
:
staticUrl
+
"/fusi/step1.png"
,
step1En
:
staticUrl
+
"/fusi/step1_en.png"
,
step2
:
staticUrl
+
"/fusi/step2.png"
,
step2En
:
staticUrl
+
"/fusi/step2_en.png"
,
step3
:
staticUrl
+
"/fusi/step3.png"
,
step3En
:
staticUrl
+
"/fusi/step3_en.png"
,
vipImg
:
staticUrl
+
"/fusi/vip.png"
,
svipImg
:
staticUrl
+
"/fusi/svip.png"
,
vipBg1Cn
:
staticUrl
+
"/fusi/vip_bg1_cn.png"
,
vipBg1En
:
staticUrl
+
"/fusi/vip_bg1_en.png"
,
vipBg2Cn
:
staticUrl
+
"/fusi/vip_bg2_cn.png"
,
vipBg2En
:
staticUrl
+
"/fusi/vip_bg2_en.png"
,
noLogo
:
staticUrl
+
"/fusi/no_data.png"
,
caseBg1
:
staticUrl
+
"/fusi/case_bg1.png"
,
caseBg2
:
staticUrl
+
"/fusi/case_bg2.png"
,
headLogo
:
staticUrl
+
"/fusi/head_logo.png"
,
iconCorrect
:
staticUrl
+
"/fusi/icon_correct.png"
,
checkColorBg
:
staticUrl
+
"/fusi/check_color_bg.png"
,
multipleGew
:
staticUrl
+
"/fusi/multipleGew.png"
,
iconBox
:
staticUrl
+
"/fusi/icon_box.png"
,
rewardHeadChImg
:
staticUrl
+
"/fusi/reward_head.png"
,
rewardHeadENImg
:
staticUrl
+
"/fusi/reward_head_en.png"
,
rewaRdrulesCh1Img
:
staticUrl
+
"/fusi/rewaRdrules-ch1.jpg"
,
rewaRdrulesCh2Img
:
staticUrl
+
"/fusi/rewaRdrules-ch2.jpg"
,
rewaRdrulesEn1Img
:
staticUrl
+
"/fusi/rewaRdrules-en1.jpg"
,
rewaRdrulesEn2Img
:
staticUrl
+
"/fusi/rewaRdrules-en2.jpg"
,
rewardBgColor
:
'#e3ffff'
,
rewardIcon
:
staticUrl
+
"/fusi/reward-icon.png"
,
};
}
return
resourceObj
;
}
}
\ 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