<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body style="background: #f3f3f3; margin:0;"> <p></p> <script> ;(function () { var ua = navigator.userAgent, isAndroid = /android/ig.test(ua), isIos = /iphone|ipod|ipad/ig.test(ua), isMicroMessenger = /MicroMessenger/ig.test(ua); if (isMicroMessenger) { if (isIos) { document.body.innerHTML = '<img style="100%" src="image/ios_download.jpg">'; } else if (isAndroid) { document.body.innerHTML = '<img style="100%" src="image/android_download.jpg">'; } } else { if (isIos) { location.href = 'http://XXXXXX'; } else if (isAndroid) { location.href= 'http://XXXXX.apk'; } } })() </script> </body> </html>