| | |
| | | var btnChat = rowChat.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uWebChat), 400, 60);
|
| | | btnChat.Y = Application.GetRealHeight(12) + rowChat.chidrenYaxis;
|
| | | btnChat.TextSize = 15;
|
| | | rowChat.AddChidren(btnChat, ChidrenBindMode.BindEventOnly);
|
| | | rowChat.AddChidren(btnChat, ChidrenBindMode.BindEvent);
|
| | | //未授权 OR 名字
|
| | | var btnTip1 = rowChat.AddLeftCaption(bindNameText == null ? string.Empty : bindNameText, 400, 50);
|
| | | btnTip1.Y = Application.GetRealHeight(72) + rowChat.chidrenYaxis;
|
| | | btnTip1.TextSize = 12;
|
| | | btnTip1.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | rowChat.AddChidren(btnTip1, ChidrenBindMode.BindEventOnly);
|
| | | rowChat.AddChidren(btnTip1, ChidrenBindMode.BindEvent);
|
| | | //向右图标
|
| | | rowChat.AddRightArrow();
|
| | | //底线
|
| | |
| | | //var btnQQ = rowQQ.AddLeftCaption("QQ", 400, 60);
|
| | | //btnQQ.Y = Application.GetRealHeight(12) + rowQQ.chidrenYaxis;
|
| | | //btnQQ.TextSize = 15;
|
| | | //rowQQ.AddChidren(btnQQ, ChidrenBindMode.BindEventOnly);
|
| | | //rowQQ.AddChidren(btnQQ, ChidrenBindMode.BindEvent);
|
| | | ////未授权 OR 名字
|
| | | //var btnTip2 = rowQQ.AddLeftCaption(bindNameText, 400, 49);
|
| | | //btnTip2.Y = Application.GetRealHeight(72) + rowQQ.chidrenYaxis;
|
| | | //btnTip2.TextSize = 12;
|
| | | //btnTip2.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | //rowQQ.AddChidren(btnTip2, ChidrenBindMode.BindEventOnly);
|
| | | //rowQQ.AddChidren(btnTip2, ChidrenBindMode.BindEvent);
|
| | | ////向右图标
|
| | | //rowQQ.AddRightArrow();
|
| | | ////请绑定 OR 解除绑定
|
| | |
| | | #if Android
|
| | | com.hdl.home.Application.WXLogin();
|
| | | com.hdl.home.WXEntryActivity.RespAction = (authStr) =>
|
| | | #endif
|
| | | #if iOS
|
| | | Home.IOS.AppDelegate.WXLogin();
|
| | | Home.IOS.AppDelegate.RespAction = (authStr) =>
|
| | | #endif
|
| | | {
|
| | | if (string.IsNullOrEmpty(authStr) == true)
|
| | | {
|
| | |
| | | //绑定微信
|
| | | this.BindWechat(authRes.access_token, authRes.refresh_token, authRes.openid);
|
| | | };
|
| | | #endif
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/BindAuthUserToAccount", false, pra2);
|
| | | if (result == true)
|
| | | {
|
| | | //绑定微信成功!
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uBindSomethingSuccess);
|
| | | msg = msg.Replace("{0}", Language.StringByID(R.MyInternationalizationString.uWebChat));
|
| | | this.ShowMassage(ShowMsgType.Tip, msg);
|
| | | //绑定成功!下次你可以用微信{0}账号快速登录啦
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uBindWebchatSuccessMsg);
|
| | | msg = msg.Replace("{0}", "\r\n");
|
| | | this.ShowMassage(ShowMsgType.Normal, msg, null, Language.StringByID(R.MyInternationalizationString.uWell));
|
| | | //重新刷新界面
|
| | | this.InitMiddleData();
|
| | | }
|