|
@@ -167,7 +167,6 @@ export default {
|
|
|
// 微信用户手机号登录
|
|
|
phoneLogin(e) {
|
|
|
var that=this;
|
|
|
-
|
|
|
uni.showLoading({
|
|
|
title:"处理中"
|
|
|
})
|
|
@@ -195,12 +194,10 @@ export default {
|
|
|
.then( res => {
|
|
|
uni.hideLoading();
|
|
|
if(res.code==200){
|
|
|
- uni.showToast({
|
|
|
- icon:'none',
|
|
|
- title: "登录成功",
|
|
|
- });
|
|
|
- uni.setStorageSync('userHistoryApp',res.user.historyApp);
|
|
|
+ uni.showToast({icon:'none',title: "登录成功"});
|
|
|
uni.setStorageSync('AppToken',res.token);
|
|
|
+ uni.setStorageSync('userHistoryApp',res.user.historyApp);
|
|
|
+ uni.setStorageSync('userInfo',JSON.stringify(res.user));
|
|
|
uni.setStorageSync('userId',res.user.userId);
|
|
|
uni.setStorageSync('avatar',res.user.avatar);
|
|
|
uni.setStorageSync('nickName',res.user.nickName);
|