更新下载链接

This commit is contained in:
Dragon
2023-07-06 14:26:18 +08:00
parent c6df9a0872
commit daf57dd1ad

View File

@@ -7,113 +7,114 @@ const urlPrefix = getUrlPrefix()
let channelData = urlData.channel let channelData = urlData.channel
//定义官方渠道包 //定义官方渠道包
const channelDict = { const channelDict = {
'peko0': 'https://image.lecheng163.com/peko_peko0.apk', 'peko0': 'https://image.lecheng163.com/peko_peko0.apk',
'peko1': 'https://image.lecheng163.com/peko_peko1.apk', 'peko1': 'https://image.lecheng163.com/peko_peko1.apk',
'peko2': 'https://image.lecheng163.com/peko_peko2.apk', 'peko2': 'https://image.lecheng163.com/peko_peko2.apk',
'peko3': 'https://image.lecheng163.com/peko_peko3.apk', 'peko3': 'https://image.lecheng163.com/peko_peko3.apk',
'peko4': 'https://image.lecheng163.com/peko_peko4.apk', 'peko4': 'https://image.lecheng163.com/peko_peko4.apk',
'peko5': 'https://image.lecheng163.com/peko_peko5.apk', 'peko5': 'https://image.lecheng163.com/peko_peko5.apk',
'peko6': 'https://image.lecheng163.com/peko_peko6.apk', 'peko6': 'https://image.lecheng163.com/peko_peko6.apk',
'peko7': 'https://image.lecheng163.com/peko_peko7.apk', 'peko7': 'https://image.lecheng163.com/peko_peko7.apk',
'peko8': 'https://image.lecheng163.com/peko_peko8.apk', 'peko8': 'https://image.lecheng163.com/peko_peko8.apk',
'peko9': 'https://image.lecheng163.com/peko_peko9.apk', 'peko9': 'https://image.lecheng163.com/peko_peko9.apk',
'peko10': 'https://image.lecheng163.com/peko_peko10.apk', 'peko10': 'https://image.lecheng163.com/peko_peko10.apk',
'gongzhonghao': 'https://image.lecheng163.com/peko_gongzhonghao.apk', 'gongzhonghao': 'https://image.lecheng163.com/peko_gongzhonghao.apk',
'zhaohui': 'https://image.lecheng163.com/zhaohui.apk' 'zhaohui': 'https://image.lecheng163.com/zhaohui.apk'
// 'baomihua01': 'https://image.lecheng163.com/accompany_release_v_213_1_baomihua01_sign.apk' // 'baomihua01': 'https://image.lecheng163.com/accompany_release_v_213_1_baomihua01_sign.apk'
} }
$(function () { $(function () {
//判断url参数是否是与渠道包名一致 //判断url参数是否是与渠道包名一致
let androidUrl = null; let androidUrl = null;
channelDict.hasOwnProperty(channelData) ? androidUrl = channelDict[channelData] : androidUrl = 'https://play.google.com/store/apps/details?id=com.vele.peko'; channelDict.hasOwnProperty(channelData) ? androidUrl = channelDict[channelData] : androidUrl = 'https://play.google.com/store/apps/details?id=com.vele.pekolive';
let iosUrl = 'http://doudouyue.com/8axv' //ios企业包 let iosUrl = 'http://doudouyue.com/8axv' //ios企业包
// let iosUrl = 'https://apps.apple.com/cn/app/id1571083482' //ios商店包 // let iosUrl = 'https://apps.apple.com/cn/app/id1571083482' //ios商店包
if (version.ios) { if (version.ios) {
$('.button-wrapper').on('click', function () { $('.button-wrapper').on('click', function () {
if (version.weixin) { if (version.weixin) {
$('.tips').show() $('.tips').show()
return return
} }
window.location.href = iosUrl; window.location.href = iosUrl;
}) })
} else if (version.android) { } else if (version.android) {
$('.button-wrapper').on('click', function () { $('.button-wrapper').on('click', function () {
if (version.weixin) { if (version.weixin) {
$('.tips').show() $('.tips').show()
return return
} }
window.location.href = androidUrl; window.location.href = androidUrl;
}) })
} else { } else {
$('.button-wrapper').on('click', function () { $('.button-wrapper').on('click', function () {
window.location.href = androidUrl; window.location.href = androidUrl;
}) })
$('.button2-wrapper').on('click', function () { $('.button2-wrapper').on('click', function () {
window.location.href = iosUrl; window.location.href = iosUrl;
}) })
} }
}) })
function swiperFun() { function swiperFun () {
var swiper = new Swiper('.swiper', { var swiper = new Swiper('.swiper', {
direction: 'horizontal', direction: 'horizontal',
loop: true, loop: true,
autoplay: 5000, autoplay: 5000,
slidesPerView: "auto", slidesPerView: "auto",
centeredSlides: true, centeredSlides: true,
spaceBetween: 0, spaceBetween: 0,
initialSlide: 1,//默认第二个居中 initialSlide: 1,//默认第二个居中
}); });
} }
$(function () { $(function () {
$(document).ready(function () { $(document).ready(function () {
var deviceWidth = document.documentElement.clientWidth; var deviceWidth = document.documentElement.clientWidth;
if (deviceWidth > 768) { if (deviceWidth > 768) {
document.documentElement.style.fontSize = deviceWidth / 19.20 + 'px'; document.documentElement.style.fontSize = deviceWidth / 19.20 + 'px';
} else { } else {
document.documentElement.style.fontSize = deviceWidth / 7.50 + 'px'; document.documentElement.style.fontSize = deviceWidth / 7.50 + 'px';
}
});
window.onresize = function () {
var deviceWidth = document.documentElement.clientWidth;
// console.log('deviceWidth', deviceWidth);
if (deviceWidth > 768) {
document.documentElement.style.fontSize = deviceWidth / 19.20 + 'px';
} else {
document.documentElement.style.fontSize = deviceWidth / 7.50 + 'px';
}
} }
});
window.onresize = function () {
var deviceWidth = document.documentElement.clientWidth;
// console.log('deviceWidth', deviceWidth);
if (deviceWidth > 768) {
document.documentElement.style.fontSize = deviceWidth / 19.20 + 'px';
} else {
document.documentElement.style.fontSize = deviceWidth / 7.50 + 'px';
}
}
swiperFun(); swiperFun();
//跳转pc端充值 //跳转pc端充值
$('.homePc .charge').click(function () { $('.homePc .charge').click(function () {
window.location.href = urlPrefix + '/peko/modules/payPc/index.html?channelType=4'; window.location.href = urlPrefix + '/peko/modules/payPc/index.html?channelType=4';
}) })
// 跳转移动端h5充值 // 跳转移动端h5充值
$('.homeM .charge').click(function () { $('.homeM .charge').click(function () {
window.location.href = urlPrefix + '/peko/modules/pay/index.html?channelType=4'; window.location.href = urlPrefix + '/peko/modules/pay/index.html?channelType=4';
}) })
// logo跳转 // logo跳转
$('.googlePlay').click(function () { $('.googlePlay').click(function () {
window.location.href = 'https://play.google.com/store/apps/details?id=com.vele.peko' window.location.href = 'https://play.google.com/store/apps/details?id=com.vele.pekolive'
}) })
$('.appleStore').click(function () { $('.appleStore').click(function () {
// console.log(version, 'version'); // console.log(version, 'version');
if (version.webKit && version.ios) { if (version.webKit && version.ios) {
window.location.href = 'itms-services:///?action=download-manifest&url=https://img.pekolive.com/distribute.plist' window.location.href = 'https://apps.apple.com/cn/app/id6446155565'
} else { }
window.location.href = 'http://doudouyue.com/h958' else {
} window.location.href = 'http://doudouyue.com/3gh2'
}) }
$('.apk').click(function () { })
window.location.href = 'https://img.pekolive.com/peko_official.apk' $('.apk').click(function () {
}) window.location.href = 'https://image.hfighting.com/peko_official.apk'
})
}) })