|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
// 安卓包名
|
|
|
|
|
const APK_NAME = 'cn.luoo.indiemusic';
|
|
|
|
|
// const APK_NAME = 'cn.luoo.indiemusic';
|
|
|
|
|
|
|
|
|
|
export const isBuiltIn = () => {
|
|
|
|
|
const ua = window?.navigator?.userAgent?.toLowerCase();
|
|
|
|
@ -46,27 +46,35 @@ export const download = () => {
|
|
|
|
|
// 内置浏览器 可加提示使其打开手机自带浏览器
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
const iosLinkUrl = ''; // TODO:
|
|
|
|
|
// const iosLinkUrl = ''; // TODO:
|
|
|
|
|
const androidLinkurl = '//cdn.indie.cn/release/queyue.apk';
|
|
|
|
|
const huaweiUrl = `appmarket://details?id=${APK_NAME}`;
|
|
|
|
|
const oppoUrl = `oppomarket://details?packagename=${APK_NAME}`;
|
|
|
|
|
const vivoUrl = `vivomarket://details?id=${APK_NAME}`;
|
|
|
|
|
const xiaomiUrl = `mimarket://details?id=${APK_NAME}`;
|
|
|
|
|
// const huaweiUrl = `appmarket://details?id=${APK_NAME}`;
|
|
|
|
|
// const oppoUrl = `oppomarket://details?packagename=${APK_NAME}`;
|
|
|
|
|
// const vivoUrl = `vivomarket://details?id=${APK_NAME}`;
|
|
|
|
|
// const xiaomiUrl = `mimarket://details?id=${APK_NAME}`;
|
|
|
|
|
// switch (verifyBrand()) {
|
|
|
|
|
// case 'iphone':
|
|
|
|
|
// window.location.href = iosLinkUrl;
|
|
|
|
|
// break;
|
|
|
|
|
// case 'xiaomi':
|
|
|
|
|
// window.location.href = xiaomiUrl;
|
|
|
|
|
// break;
|
|
|
|
|
// case 'huawei':
|
|
|
|
|
// window.location.href = huaweiUrl;
|
|
|
|
|
// break;
|
|
|
|
|
// case 'vivo':
|
|
|
|
|
// window.location.href = vivoUrl;
|
|
|
|
|
// break;
|
|
|
|
|
// case 'oppo':
|
|
|
|
|
// window.location.href = oppoUrl;
|
|
|
|
|
// break;
|
|
|
|
|
// default:
|
|
|
|
|
// window.location.href = androidLinkurl;
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
switch (verifyBrand()) {
|
|
|
|
|
case 'iphone':
|
|
|
|
|
window.location.href = iosLinkUrl;
|
|
|
|
|
break;
|
|
|
|
|
case 'xiaomi':
|
|
|
|
|
window.location.href = xiaomiUrl;
|
|
|
|
|
break;
|
|
|
|
|
case 'huawei':
|
|
|
|
|
window.location.href = huaweiUrl;
|
|
|
|
|
break;
|
|
|
|
|
case 'vivo':
|
|
|
|
|
window.location.href = vivoUrl;
|
|
|
|
|
break;
|
|
|
|
|
case 'oppo':
|
|
|
|
|
window.location.href = oppoUrl;
|
|
|
|
|
alert('开发中,敬请期待');
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
window.location.href = androidLinkurl;
|
|
|
|
|