|
|
@@ -0,0 +1,39 @@
|
|
|
+<!doctype html>
|
|
|
+<html lang="">
|
|
|
+
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
+ <meta name="viewport" content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
|
|
|
+ <link rel="icon" href="favicon.ico">
|
|
|
+ <title>Caner</title>
|
|
|
+</head>
|
|
|
+
|
|
|
+<body>
|
|
|
+ <div id="app"></div>
|
|
|
+ <script>
|
|
|
+ // 先判断是苹果还是安卓
|
|
|
+ window.onload = function() {
|
|
|
+ const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
|
|
|
+ const isAndroid = navigator.userAgent.includes('Android') || navigator.userAgent.includes('Linux') // g
|
|
|
+ if (isIOS) {
|
|
|
+ window.location.href = 'https://m.music.163.com/m/applink/?scheme=orpheus://song/2000381011?market=baiduqk'
|
|
|
+ }
|
|
|
+ if (isAndroid) {
|
|
|
+ // 创建a标签自动点击跳转
|
|
|
+ const aLink = document.createElement('a')
|
|
|
+ aLink.href = 'orpheus://song/2000381011?market=baiduqk'
|
|
|
+ let event
|
|
|
+ if (window.MouseEvent) event = new MouseEvent('click')
|
|
|
+ else {
|
|
|
+ event = document.createEvent('MouseEvents')
|
|
|
+ event.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null)
|
|
|
+ }
|
|
|
+ aLink.dispatchEvent(event)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+</body>
|
|
|
+
|
|
|
+</html>
|