Commit baa94e96 by cuishuai

login

parent 8a2154ce
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
this.positionTop = uni.getSystemInfoSync().windowHeight - 100; this.positionTop = uni.getSystemInfoSync().windowHeight - 100;
}, },
invokeServer(body) { invokeServer(body) {
console.log(util.user) console.log(this.GLOBALUTIL.user)
var form = []; var form = [];
for(let i in body){ for(let i in body){
if(body.hasOwnProperty(i)){ if(body.hasOwnProperty(i)){
...@@ -81,9 +81,12 @@ ...@@ -81,9 +81,12 @@
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
}, },
success: (res) => { success: (res) => {
util.user = res.data.loginresponse this.GLOBALUTIL.user = res.data.loginresponse
console.log(res.data); console.log(res.data);
this.text = 'request success'; this.text = 'request success';
uni.reLaunch({
url: '../Security-Check/index',
});
} }
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment