浏览代码

微信登录统一

seimin 3 年之前
父节点
当前提交
414e8f5cf8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/Login.vue

+ 2 - 2
src/views/Login.vue

@@ -45,7 +45,7 @@ export default {
45
     // 登陆
45
     // 登陆
46
     login() {
46
     login() {
47
       var that = this;
47
       var that = this;
48
-      that.$http.post("service/auth/reqwechatlogin", {}).then(res => {
48
+      that.$http.post("service/auth/wechatAuth", {}).then(res => {
49
         if (res.data.url) {
49
         if (res.data.url) {
50
           window.location.href = res.data.url;
50
           window.location.href = res.data.url;
51
         } else {
51
         } else {
@@ -70,7 +70,7 @@ export default {
70
           code: url[1],
70
           code: url[1],
71
           // name: "微信报修"
71
           // name: "微信报修"
72
         };
72
         };
73
-        that.$http.post("service/auth/reqwechatlogin2", code).then(res => {
73
+        that.$http.post("service/auth/wechatLoginEncrypt", code).then(res => {
74
           if (res.data.state == 200) {
74
           if (res.data.state == 200) {
75
             if (res.data.user) {
75
             if (res.data.user) {
76
               localStorage.setItem(
76
               localStorage.setItem(