|
|
@ -42,11 +42,12 @@ export const verifyBrand = () => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export const download = () => {
|
|
|
|
export const download = () => {
|
|
|
|
if (isBuiltIn()) {
|
|
|
|
// if (isBuiltIn()) {
|
|
|
|
// 内置浏览器 可加提示使其打开手机自带浏览器
|
|
|
|
// // 内置浏览器 可加提示使其打开手机自带浏览器
|
|
|
|
return;
|
|
|
|
// return;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
// const iosLinkUrl = ''; // TODO:
|
|
|
|
const iosLinkUrl = 'https://apps.apple.com/app/%E9%9B%80%E4%B9%90/id6478897923';
|
|
|
|
|
|
|
|
// const iosLinkUrl = 'itms-apps://itunes.apple.com/app/id6478897923';
|
|
|
|
const androidLinkurl = '//cdn.indie.cn/release/queyue.apk';
|
|
|
|
const androidLinkurl = '//cdn.indie.cn/release/queyue.apk';
|
|
|
|
// const huaweiUrl = `appmarket://details?id=${APK_NAME}`;
|
|
|
|
// const huaweiUrl = `appmarket://details?id=${APK_NAME}`;
|
|
|
|
// const oppoUrl = `oppomarket://details?packagename=${APK_NAME}`;
|
|
|
|
// const oppoUrl = `oppomarket://details?packagename=${APK_NAME}`;
|
|
|
@ -74,10 +75,12 @@ export const download = () => {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
switch (verifyBrand()) {
|
|
|
|
switch (verifyBrand()) {
|
|
|
|
case 'iphone':
|
|
|
|
case 'iphone':
|
|
|
|
alert('开发中,敬请期待');
|
|
|
|
window.location.href = iosLinkUrl;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
|
|
|
|
if (!isBuiltIn()) {
|
|
|
|
window.location.href = androidLinkurl;
|
|
|
|
window.location.href = androidLinkurl;
|
|
|
|
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|