| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| | | <meta name="App-Config" content="fullscreen=yes,useHistoryState=yes,transition=yes"> |
| | | <meta content="yes" name="apple-mobile-web-app-capable"><meta content="yes" name="apple-touch-fullscreen"> |
| | | <meta content="telephone=no,email=no" name="format-detection"> |
| | | <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover"> |
| | | <script type="text/javascript" src="https://public.ffquan.cn/lib/jquery-1.12.4.min.js"></script> |
| | | <script type="text/javascript" src="./js/uni-webview-js.js"></script> |
| | | <head> |
| | | <title>美团红包</title> |
| | | <style> |
| | | </style> |
| | | </head> |
| | | <body> |
| | | |
| | | <div id="mtcont"> |
| | | |
| | | </div> |
| | | </body> |
| | | |
| | | </html> |
| | | <script type="text/javascript" src="https://cdn.staticfile.org/vue/2.6.11/vue.min.js"></script> |
| | | <script> |
| | | $(function(){ |
| | | window.location.href="imeituan://www.meituan.com/web?lch=cps:waimai:3:65c5f4b9271221c79eae104d969a48a3:94691xgzappxgz168845366013265:33:85459&url=https%3A%2F%2Fclick.meituan.com%2Ft%3Ft%3D1%26c%3D2%26p%3D_ZNNHr5zidEL" |
| | | }) |
| | | new Vue({ |
| | | el: '#mtcont', |
| | | data:{ |
| | | cmsUrl:'', |
| | | loading:false, |
| | | cmsurl:'' |
| | | }, |
| | | methods:{ |
| | | getEn:function() |
| | | { |
| | | // uni.getEnv(function(res){ |
| | | // alert(JSON.stringify(res)); |
| | | // }); |
| | | const userAgent = navigator.userAgent.toLowerCase(); |
| | | const iswx = userAgent.match(/weixin/i); |
| | | if(iswx) |
| | | { |
| | | window.location.href="https://click.meituan.com/t?t=1&c=2&p=jqgHar5zidEL"; |
| | | } |
| | | else{ |
| | | window.location.href="imeituan://www.meituan.com/web?lch=cps:waimai:3:65c5f4b9271221c79eae104d969a48a3:94691jutuike123456:33:85459&url=https%3A%2F%2Fclick.meituan.com%2Ft%3Ft%3D1%26c%3D2%26p%3Dhl8Lar5zidEL"; |
| | | } |
| | | } |
| | | }, |
| | | mounted:function() |
| | | { |
| | | this.getEn(); |
| | | |
| | | } |
| | | }) |
| | | </script> |