Browse Source

修改返回

wangxy 1 day ago
parent
commit
08214b69fb
2 changed files with 17 additions and 6 deletions
  1. 14 2
      api/login.js
  2. 3 4
      pages/Login/test.vue

+ 14 - 2
api/login.js

@@ -62,7 +62,7 @@ export function getAllImgList(data = {}) {
 }
 export function loginApplet(data = {}) {
   return request({
-    'url': '/common/app/login/applet',
+    'url': '/common/applet/login/weixin',
     headers: {
       isToken: true
     },
@@ -73,7 +73,19 @@ export function loginApplet(data = {}) {
 }
 export function bindApplet(data = {}) {
   return request({
-    'url': '/common/app/bind/applet',
+    'url': '/common/applet/bind/tel',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
+}
+
+export function appletLoginTel(data = {}) {
+  return request({
+    'url': '/common/applet/login/tel',
     headers: {
       isToken: true
     },

+ 3 - 4
pages/Login/test.vue

@@ -175,10 +175,9 @@
 			title: '登录中'
 		})
 
-		httpApi.loginTemp({
-			type: 2,
-			userName: trimmedUserName,
-			password: trimmedPassword,
+		httpApi.appletLoginTel({
+			tel: trimmedUserName,
+			str: trimmedPassword,
 		}).then(res => {
 			if (res.data.type === 4) {
 				cacheManager.set('auth', res.data)