wansfa 2 years ago
parent
commit
173de66fa7
2 changed files with 19 additions and 11 deletions
  1. 13 11
      public/wx.html
  2. 6 0
      src/router/index.js

+ 13 - 11
public/wx.html

@@ -81,25 +81,26 @@
     }
 
     function getInfos() {
-      console.log('getInfos')
+      
       var weixin = isWeiXin();
     //   var res={
-    //     "code": 200,
-    //     "msg": "success",
-    //     "result": {
-    //              "openlink": "weixin:\/\/dl\/business\/?t=B7IYjoq9ZPq"
-    //           }
+    //         "code": 200,
+    //         "msg": "success",
+    //         "result": {
+    //                 "openlink": "weixin:\/\/dl\/business\/?t=Dyq5kn9Vfyf"
+    //             }
     //     };
 	   
-	  //  if (res.status === 200) {
+	//    if (res.code === 200) {
     //     if (!weixin) {
     //       $("#dianjiimg_links").attr('href', res.result.openlink)
     //       // $("#public-web-jump-button").attr("href", res.result.openlink)
     //       jsUpdate(res)
     //     }
-	  //  } else {
-	  //  	    $(".public-container").html('<p class="error-msg">'+res.msg+'</p>');
-	  //  }
+	//    } else {
+	//    	    $(".public-container").html('<p class="error-msg">'+res.msg+'</p>');
+	//    }
+      
 	
 	  
       $.ajax({
@@ -108,7 +109,8 @@
             //dataType: "jsonp",
             //jsonp: "callback",//传递给请求处理程序或页面的,标识jsonp回调函数名(一般为:callback)
             //jsonpCallback: "GetData",//callback的function名称
-            url: "http://139.186.77.83:7015/app/user/getAppletScheme",
+            url: "http://127.0.0.1:7015/app/user/getAppletScheme", 
+            //url: "http://139.186.77.83:7015/app/user/getAppletScheme",
             data: {
               "cardId":cid,
               // "domain": "eturl.cn",

+ 6 - 0
src/router/index.js

@@ -38,6 +38,7 @@ export const constantRoutes = [
       }
     ]
   },
+
   {
     path: '/login',
     component: (resolve) => require(['@/views/login'], resolve),
@@ -53,6 +54,11 @@ export const constantRoutes = [
     component: (resolve) => require(['@/views/error/401'], resolve),
     hidden: true
   },
+  {
+    path: '/wx',
+    // component: () => import('@/page/help'),
+    hidden: true,
+  },
   {
     path: '',
     component: Layout,