Commit 395c193b authored by Mac's avatar Mac

电脑端登录处理 样式修改

parent 5dc00912
...@@ -43,21 +43,28 @@ ...@@ -43,21 +43,28 @@
}, },
methods: { methods: {
getoldUser(){//旧的 兼容电脑端 getoldUser(){//旧的 兼容电脑端
var that = this; //4.27注释掉 给予新的提示不能在电脑端登录
uni.login({ // var that = this;
provider: 'weixin', // uni.login({
success: function (loginRes) { // provider: 'weixin',
console.log(loginRes.authResult); // success: function (loginRes) {
// 获取用户信息 // console.log(loginRes.authResult);
uni.getUserInfo({ // // 获取用户信息
provider: 'weixin', // uni.getUserInfo({
success: function (infoRes) { // provider: 'weixin',
console.log(infoRes,'infoRes') // success: function (infoRes) {
that.getUserInfo(infoRes) // console.log(infoRes,'infoRes')
} // that.getUserInfo(infoRes)
}); // }
} // });
// }
// });
uni.showToast({
title: '电脑端暂时不能获取用户信息,请转到手机端使用!',
icon: 'none'
}); });
this.showDialog = false;
this.$emit('gbAuth');
}, },
getUserProfile(){//新的获取用户资料 getUserProfile(){//新的获取用户资料
var that = this; var that = this;
...@@ -192,7 +199,11 @@ ...@@ -192,7 +199,11 @@
uni.removeStorageSync("KeyWord"); uni.removeStorageSync("KeyWord");
let uid = uni.getStorageSync("mall_UserInfo").UserId; let uid = uni.getStorageSync("mall_UserInfo").UserId;
that.msg.Id = uid that.msg.Id = uid
// that.updateuserinfo(that.msg);//更新用户头像 let IsOpenMiAi = uni.getStorageSync("basedata")?uni.getStorageSync("basedata").mall.setting.is_show_miai:0;//是否开启相亲模式
if(IsOpenMiAi==0){//不是相亲模式的时候去更新头像和昵称
that.updateuserinfo(that.msg);//更新用户头像
}
} }
} }
......
...@@ -563,7 +563,7 @@ ...@@ -563,7 +563,7 @@
} }
); );
}, },
goUserinfo(x){ goUserinfo(x,type){
let UserId = x.createEmpId let UserId = x.createEmpId
if(type==2){ if(type==2){
UserId = x.empId UserId = x.empId
......
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
IsEducation: 0, IsEducation: 0,
orderPopupdata:{},//离线收益的弹窗 orderPopupdata:{},//离线收益的弹窗
showorder:false,//显示弹出 showorder:false,//显示弹出
topHeight:500,//头部高度 topHeight:510,//头部高度
} }
}, },
created() { created() {
......
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