Authored by 肖亚东

昵称解析修改

... ... @@ -292,7 +292,7 @@ Page(extend({},Toast,{
//注册后上传并获取用户信息
registerToGetUserInfo(e) {
let that = this;
decodeUnionId(app.getWechatThirdSession(),e.detail, function (response){
decodeUnionId(app.getWechatThirdSession(),e.detail, function (response){
if (response.isHaveUnionID){
that.setData({
hasUnionID: true,
... ... @@ -304,7 +304,8 @@ Page(extend({},Toast,{
});
debugger
let nickName = e.detail.userInfo.nickName;
let userInfo = JSON.parse(e.detail.detail.rawData);
let nickName = userInfo.nickName;
if (nickName) {
modifyNickName(nickName, function (response){
if (response.succeed){
... ...