app.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. var _0x4f06 = ['show', 'browser', 'KHTML', './app.mobileprovision', '#gosteptips', 'Safari', 'appmarket://details?id=', 'test', 'ios', 'html', '.pc-box', 'click', 'Trident', 'class', 'huawei', '#gomchelp', 'android', '#weixin_ios', 'mimarket://details?id=', 'oppomarket://details?packagename=', 'attr', 'match', 'safari', 'indexOf', '#install-btn', 'getElementById', 'hide', 'appVersion', '.app-slider', 'userAgent', 'QQ/', 'app_code', 'href', '#gomchelp-btn', 'oppo', 'Gecko', 'Adr', 'samsungapps://ProductDetail/', 'qq2', 'Presto', 'xiaomi', 'MQQBrowser', 'samsung', '#ipt_url'];
  2. var _0x417a = function (_0x4f0689, _0x417a46) {
  3. _0x4f0689 = _0x4f0689 - 0x0;
  4. var _0x330fc9 = _0x4f06[_0x4f0689]; return _0x330fc9;
  5. };
  6. var package_name = 'com.yougou.mch';
  7. var android_url = 'https://yougou999.oss-cn-hongkong.aliyuncs.com/yougou-mch-100002.apk';
  8. var ios_appid = '6449150515';
  9. var ios_webclip = '';
  10. var market = ['xiaomi', 'huawei', _0x417a('0x2a')];
  11. var Base = {};
  12. Base[_0x417a('0x1')] = function () {
  13. var _0x4e510b = navigator[_0x417a('0x1d')], _0x41f47f = navigator[_0x417a('0x1b')];
  14. return { 'trident': _0x4e510b['indexOf'](_0x417a('0xc')) > -0x1, 'presto': _0x4e510b['indexOf'](_0x417a('0x27')) > -0x1, 'webKit': _0x4e510b['indexOf']('AppleWebKit') > -0x1, 'gecko': _0x4e510b['indexOf'](_0x417a('0x23')) > -0x1 && _0x4e510b[_0x417a('0x17')](_0x417a('0x2')) == -0x1, 'mobile': !!_0x4e510b['match'](/AppleWebKit.*Mobile.*/), 'ios': /(iPhone|iPad|iPod|iOS|Mac)/i[_0x417a('0x7')](_0x4e510b), 'android': _0x4e510b['indexOf']('Android') > -0x1 || _0x4e510b['indexOf'](_0x417a('0x24')) > -0x1, 'iPhone': _0x4e510b['indexOf']('iPhone') > -0x1, 'iPad': /(?:iPad|PlayBook)/['test'](_0x4e510b), 'webApp': _0x4e510b['indexOf'](_0x417a('0x5')) == -0x1, 'weixin': _0x4e510b['indexOf']('MicroMessenger') > -0x1, 'qq': _0x4e510b[_0x417a('0x15')](/QQ/i) == 'QQ', 'qq2': _0x4e510b['match'](/QQ/i) == 'QQ' && _0x4e510b['indexOf']('MQQBrowser') == -0x1, 'qq1': _0x4e510b['indexOf'](_0x417a('0x29')) > -0x1 && _0x4e510b[_0x417a('0x17')](_0x417a('0x1e')) > -0x1, 'safari': /Safari/['test'](_0x4e510b) && !(/Chrome/[_0x417a('0x7')](_0x4e510b) || /CriOS/[_0x417a('0x7')](_0x4e510b)) && _0x4e510b[_0x417a('0x17')]('MQQBrowser') < 0x0, 'xiaomi': /XiaoMi/i[_0x417a('0x7')](_0x4e510b) || / MI /i['test'](_0x4e510b), 'vivo': /ViVo/i['test'](_0x4e510b), 'oppo': /OPPO/i['test'](_0x4e510b), 'huawei': /HUAWEI/i['test'](_0x4e510b), 'samsung': /amsung/i[_0x417a('0x7')](_0x4e510b) || / SM-/['test'](_0x4e510b) };
  15. }();
  16. $(function () {
  17. var _0x172525 = new Swiper('.swiper-container', {}); $('#gosteptips-close-btn')['on']('click', function () {
  18. $(_0x417a('0x4'))[_0x417a('0x1a')]();
  19. });
  20. $('.pc-colsed')['on'](_0x417a('0xb'), function () { $('.pc-box')[_0x417a('0x1a')](); });
  21. $(_0x417a('0x21'))['on'](_0x417a('0xb'), function () { $(_0x417a('0xf'))[_0x417a('0x0')](); });
  22. $('#gomchelp-close-btn')['on']('click', function () { $(_0x417a('0xf'))[_0x417a('0x1a')](); });
  23. if (!/windows phone|iphone|android/ig[_0x417a('0x7')](window['navigator']['userAgent'])) {
  24. new QRCode(document[_0x417a('0x19')](_0x417a('0x1f')), { 'text': location['href'], 'width': 0xc8, 'height': 0xc8 });
  25. $(_0x417a('0xa'))['show']();
  26. } else if (Base['browser']['weixin'] || Base['browser'][_0x417a('0x26')]) {
  27. if (Base['browser']['android']) {
  28. $('#weixin_android')['show']();
  29. } else {
  30. $(_0x417a('0x11'))['show']();
  31. }
  32. $(_0x417a('0x9'))['attr'](_0x417a('0xd'), 'no_scroll');
  33. } else if (Base[_0x417a('0x1')][_0x417a('0x8')]) {
  34. if (Base[_0x417a('0x1')][_0x417a('0x16')]) {
  35. if (ios_appid != '') {
  36. var _0x1687ac = 'itms-apps://itunes.apple.com/app/' + ios_appid;
  37. $(_0x417a('0x18'))[_0x417a('0x14')](_0x417a('0x20'), _0x1687ac);
  38. location['href'] = _0x1687ac;
  39. } else if (ios_webclip != '') {
  40. $(_0x417a('0x1c'))['show']();
  41. $('#install-btn')['attr']('href', './' + ios_webclip);
  42. $(_0x417a('0x18'))[_0x417a('0xb')](function (_0x526b35) {
  43. setTimeout(function () {
  44. if (confirm) {
  45. location['href'] = _0x417a('0x3');
  46. }
  47. }, 0xdac);
  48. $('#gosteptips')[_0x417a('0x0')]();
  49. });
  50. }
  51. } else {
  52. $('body')[_0x417a('0xb')](function (_0x180351) {
  53. $(_0x417a('0x2b'))['html'](location['href']);
  54. $('.wechat-mask')['show']();
  55. });
  56. }
  57. } else if (Base['browser'][_0x417a('0x10')]) {
  58. var _0x1687ac = android_url;
  59. if (market[_0x417a('0x17')](_0x417a('0x28')) > -0x1 && Base['browser']['xiaomi']) {
  60. _0x1687ac = _0x417a('0x12') + package_name;
  61. } else if (market[_0x417a('0x17')]('vivo') > -0x1 && Base[_0x417a('0x1')]['vivo']) {
  62. _0x1687ac = 'vivomarket://details?id=' + package_name;
  63. } else if (market[_0x417a('0x17')](_0x417a('0x22')) > -0x1 && Base[_0x417a('0x1')][_0x417a('0x22')]) {
  64. _0x1687ac = _0x417a('0x13') + package_name;
  65. } else if (market[_0x417a('0x17')](_0x417a('0xe')) > -0x1 && Base[_0x417a('0x1')]['huawei']) {
  66. _0x1687ac = _0x417a('0x6') + package_name;
  67. } else if (market['indexOf'](_0x417a('0x2a')) > -0x1 && Base[_0x417a('0x1')][_0x417a('0x2a')]) {
  68. _0x1687ac = _0x417a('0x25') + package_name;
  69. }
  70. $('#install-btn')[_0x417a('0x14')]('href', _0x1687ac);
  71. if (_0x1687ac != android_url) {
  72. location['href'] = _0x1687ac;
  73. }
  74. }
  75. });