Commit 84d26233 by dawei

Merge branch 'master' of http://git.yabolive.net:88/libai/Static

parents 81851a7c d26039c0

265 KB | W: | H:

251 KB | W: | H:

app/img/vestBag/candle/first_charge_full_bg_cn.jpg
app/img/vestBag/candle/first_charge_full_bg_cn.jpg
app/img/vestBag/candle/first_charge_full_bg_cn.jpg
app/img/vestBag/candle/first_charge_full_bg_cn.jpg
  • 2-up
  • Swipe
  • Onion skin

89.8 KB | W: | H:

244 KB | W: | H:

app/img/vestBag/candle/first_charge_full_bg_en.jpg
app/img/vestBag/candle/first_charge_full_bg_en.jpg
app/img/vestBag/candle/first_charge_full_bg_en.jpg
app/img/vestBag/candle/first_charge_full_bg_en.jpg
  • 2-up
  • Swipe
  • Onion skin

73.8 KB | W: | H:

172 KB | W: | H:

app/img/vestBag/candle/first_charge_half_bg_cn.jpg
app/img/vestBag/candle/first_charge_half_bg_cn.jpg
app/img/vestBag/candle/first_charge_half_bg_cn.jpg
app/img/vestBag/candle/first_charge_half_bg_cn.jpg
  • 2-up
  • Swipe
  • Onion skin

69.5 KB | W: | H:

165 KB | W: | H:

app/img/vestBag/candle/first_charge_half_bg_en.jpg
app/img/vestBag/candle/first_charge_half_bg_en.jpg
app/img/vestBag/candle/first_charge_half_bg_en.jpg
app/img/vestBag/candle/first_charge_half_bg_en.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -119,4 +119,322 @@ function appCollaboration(msg) { ...@@ -119,4 +119,322 @@ 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" ||
$firefly.urlData.appname == "com.mico.tangoo.peach.live"
) {
/* 蜜桃直播或蜜桃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 + "/nectarina/reward-icon.png",
gewBigImg:staticUrl + "/nectarina/icon_bigGew.png",
iconSmallGew:staticUrl + "/nectarina/icon_smallGew.png",
avatarLogo:staticUrl + "/nectarina/avatar_logo.png",// 客服头像
firstChargeFullBgCn: staticUrl + "/nectarina/first_charge_full_bg_cn.jpg",
firstChargeFullBgEn: staticUrl + "/nectarina/first_charge_full_bg_en.jpg",
firstChargeHalfBgCn: staticUrl + "/nectarina/first_charge_half_bg_cn.jpg",
firstChargeHalfBgEn: staticUrl + "/nectarina/first_charge_half_bg_en.jpg",
firstChargeStoneIcon: staticUrl + "/nectarina/first_charge_stone_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",
gewBigImg:staticUrl + "/secret/icon_bigGew.png",
iconSmallGew:staticUrl + "/secret/icon_smallGew.png",
avatarLogo:staticUrl + "/secret/avatar_logo.png",
firstChargeFullBgCn: staticUrl + "/secret/first_charge_full_bg_cn.jpg",
firstChargeFullBgEn: staticUrl + "/secret/first_charge_full_bg_en.jpg",
firstChargeHalfBgCn: staticUrl + "/secret/first_charge_half_bg_cn.jpg",
firstChargeHalfBgEn: staticUrl + "/secret/first_charge_half_bg_en.jpg",
firstChargeStoneIcon: staticUrl + "/secret/first_charge_stone_icon.png",
};
} else if (appname == "com.chat.langlive.face.ins" ||
appname == "com.zhuguang.can.android"
) {
/* 烛光*/
resourceObj = {
btnTextColor: "#fff",
fireColor: "#FD58A7",
bgColor: "#fec2ff",
langBgColor: "#fff",
textColor: "#E74EE7",
themeColor: "#E74EE7", // 主题色
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: '#fee0fe',
rewardIcon: staticUrl + "/candle/reward-icon.png",
gewBigImg:staticUrl + "/candle/icon_bigGew.png",
iconSmallGew:staticUrl + "/candle/icon_smallGew.png",
avatarLogo:staticUrl + "/candle/avatar_logo.png",
firstChargeFullBgCn: staticUrl + "/candle/first_charge_full_bg_cn.jpg",
firstChargeFullBgEn: staticUrl + "/candle/first_charge_full_bg_en.jpg",
firstChargeHalfBgCn: staticUrl + "/candle/first_charge_half_bg_cn.jpg",
firstChargeHalfBgEn: staticUrl + "/candle/first_charge_half_bg_en.jpg",
firstChargeStoneIcon: staticUrl + "/candle/first_charge_stone_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 + "/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: '#e3ffff',
rewardIcon: staticUrl + "/joyColor/reward-icon.png",
gewBigImg:staticUrl + "/joyColor/icon_bigGew.png",
iconSmallGew:staticUrl + "/joyColor/icon_smallGew.png",
avatarLogo:staticUrl + "/joyColor/avatar_logo.png",
firstChargeFullBgCn: staticUrl + "/joyColor/first_charge_full_bg_cn.jpg",
firstChargeFullBgEn: staticUrl + "/joyColor/first_charge_full_bg_en.jpg",
firstChargeHalfBgCn: staticUrl + "/joyColor/first_charge_half_bg_cn.jpg",
firstChargeHalfBgEn: staticUrl + "/joyColor/first_charge_half_bg_en.jpg",
firstChargeStoneIcon: staticUrl + "/joyColor/first_charge_stone_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",
gewBigImg:staticUrl + "/fusi/icon_bigGew.png",
iconSmallGew:staticUrl + "/fusi/icon_smallGew.png",
avatarLogo:staticUrl + "/fusi/avatar_logo.png",
firstChargeFullBgCn: staticUrl + "/fusi/first_charge_full_bg_cn.jpg",
firstChargeFullBgEn: staticUrl + "/fusi/first_charge_full_bg_en.jpg",
firstChargeHalfBgCn: staticUrl + "/fusi/first_charge_half_bg_cn.jpg",
firstChargeHalfBgEn: staticUrl + "/fusi/first_charge_half_bg_en.jpg",
firstChargeStoneIcon: staticUrl + "/fusi/first_charge_stone_icon.png",
};
}
return resourceObj;
} }
\ No newline at end of file
...@@ -42,19 +42,22 @@ ...@@ -42,19 +42,22 @@
// 42: 振动 // 42: 振动
// 47: 直播奖励小窗抖动 // 47: 直播奖励小窗抖动
// 48: 弹出用户行为规范弹窗
// 49: base64格式图片保存到相册
function webAppComm() { function webAppComm() {
this.data = null; this.data = null;
this.langList = [ this.langList = [
// 简中
{ {
'lang1': 'Events Rule', 'lang1':'活动规则',
'lang2': 'Refresh', 'lang2':'刷新',
'lang3': 'Customer Service', 'lang3':'客服咨询',
'lang4': 'Compartir', 'lang4':'推荐朋友',
'lang5': 'Event Zone', 'lang5':'活动专区',
'lang6': 'Close Page', 'lang6':'关闭页面',
'lang7': 'DEWs', 'lang7':'露水',
'lang8': 'GEMs' 'lang8':'宝石'
}, },
//1英文 //1英文
{ {
...@@ -409,7 +412,7 @@ webAppComm.prototype.openHalfWeb = function (param) { ...@@ -409,7 +412,7 @@ webAppComm.prototype.openHalfWeb = function (param) {
if (param.top || param.top === 0) { if (param.top || param.top === 0) {
obj.data.top = param.top; obj.data.top = param.top;
} }
if (param.left || param.left === 0) { if (param.left || param.left === 0) {
obj.data.left = param.left; obj.data.left = param.left;
} }
if (param.bottom || param.bottom === 0) { if (param.bottom || param.bottom === 0) {
...@@ -688,6 +691,30 @@ webAppComm.prototype.liveShakes = function () { ...@@ -688,6 +691,30 @@ webAppComm.prototype.liveShakes = function () {
let obj2 = JSON.stringify(obj); let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2); webAppCollaboration(obj2);
} }
// 48:弹出用户行为规范弹窗
webAppComm.prototype.userBehaviorSpecification = function (type) {
let obj = {
"cid": 48,
"reqCode": new Date().getTime(),
"data": {
'type': type
}
}
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
// 49: base64格式图片保存到相册
webAppComm.prototype.saveImgToAlbum = function (imgUrl) {
let obj = {
"cid": 49,
"data": {
'base64Url': imgUrl //照片地址
}
}
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
//接收客戶端的消息 //接收客戶端的消息
webAppComm.prototype.reMsgFromApp = function (callback) { webAppComm.prototype.reMsgFromApp = function (callback) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment