From 6c7bba2e05c011a3d640b6565a113204228e92e0 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期六, 07 十月 2023 10:58:36 +0800
Subject: [PATCH] Merge tag '首页猜你喜欢修复' into develop

---
 public/html/mttran.html |   44 ++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 40 insertions(+), 4 deletions(-)

diff --git a/public/html/mttran.html b/public/html/mttran.html
index 4d99d56..dadc47a 100644
--- a/public/html/mttran.html
+++ b/public/html/mttran.html
@@ -1,18 +1,54 @@
 <!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>
\ No newline at end of file

--
Gitblit v1.9.3