diff --git a/lua_probject/base_project/Game/View/FamilyView.lua b/lua_probject/base_project/Game/View/FamilyView.lua index 310f7dae..efd4e073 100644 --- a/lua_probject/base_project/Game/View/FamilyView.lua +++ b/lua_probject/base_project/Game/View/FamilyView.lua @@ -178,6 +178,8 @@ function M:UpdateFamilyRoom(fgCtr, id) } end local roomList = self._group.rooms + print("lingmengroomList") + pt(roomList) local roomCtr = ControllerManager.GetController(RoomController) list_room.itemRenderer = function(index, obj) if index < #roomList then diff --git a/lua_probject/base_project/Game/View/Lobby/LobbyAuthenticateView.lua b/lua_probject/base_project/Game/View/Lobby/LobbyAuthenticateView.lua index 09a1c08c..f15ce2cf 100644 --- a/lua_probject/base_project/Game/View/Lobby/LobbyAuthenticateView.lua +++ b/lua_probject/base_project/Game/View/Lobby/LobbyAuthenticateView.lua @@ -3,10 +3,10 @@ local LobbyAuthenticateView = {} local M = LobbyAuthenticateView -setmetatable(M, {__index = BaseWindow}) +setmetatable(M, { __index = BaseWindow }) function LobbyAuthenticateView.new() - local self = setmetatable({}, {__index = M}) + local self = setmetatable({}, { __index = M }) self.class = 'AuthenticateView' self._close_destroy = true --假效果 @@ -48,27 +48,22 @@ function M:init(url) local btn_send = view:GetChild('btn_send') btn_send.onClick:Set(function() - if false then - --发送身份证 - else - --假发送 - ViewUtil.ShowModalWait(self._root_view,"正在验证身份证...") - coroutine.start(function() - coroutine.wait(3) - ViewUtil.CloseModalWait() - self.authenticate = 1 - self.authenticateName=input_name.text - self.authenticateId=input_idInfo.text - input_name.grayed = true - input_name.touchable=false - input_idInfo.grayed = true - input_idInfo.touchable=false - ViewUtil.ShowBannerOnScreenCenter("验证身份证成功") - end) - end + local _data = {} + _data.type = 6 + _data.real_info = {} + _data.real_info.name = input_name.text + _data.real_info.ID = input_idInfo.text + local loddyctr = ControllerManager.GetController(LoddyController) + loddyctr:UpdateUserInfo(_data, function(res) + if res.ReturnCode ~= 0 then + ViewUtil.ErrorTip(res.ReturnCode, "实名认证失败") + else + pt(res) + ViewUtil.ShowOneChooose("实名认证成功") + self:Destroy() + end + end) end) end - - return M diff --git a/lua_probject/base_project/Game/View/Lobby/LobbyPlayerInfoView.lua b/lua_probject/base_project/Game/View/Lobby/LobbyPlayerInfoView.lua index 60a17d2d..686fd3f7 100644 --- a/lua_probject/base_project/Game/View/Lobby/LobbyPlayerInfoView.lua +++ b/lua_probject/base_project/Game/View/Lobby/LobbyPlayerInfoView.lua @@ -73,8 +73,7 @@ function M:init(url) if cnt > 0 then ViewUtil.ShowOneChooose( string.format("确定要修改%s%s%s吗?", cnt % 2 == 1 and "昵称" or "", cnt == 3 and "、" or "", - cnt >= 2 and "性别" or ""), - 1, function() + cnt >= 2 and "性别" or ""), 1, function() type.selectedIndex = 0 end) else diff --git a/lua_probject/base_project/Game/View/Lobby/LobbyRecordView.lua b/lua_probject/base_project/Game/View/Lobby/LobbyRecordView.lua index c3d47fa4..2933c1cd 100644 --- a/lua_probject/base_project/Game/View/Lobby/LobbyRecordView.lua +++ b/lua_probject/base_project/Game/View/Lobby/LobbyRecordView.lua @@ -19,7 +19,14 @@ function M:init(url) local view = self._view - local LbC = ControllerManager.GetCurrenController() + local loddyCtr1 = ControllerManager.GetController(LoddyController) + loddyCtr1:RequestRecordList(function(res) + if res ~= 0 then + ViewUtil.ErrorTip(res.ReturnCode, "获取战绩失败") + else + pt(loddyCtr1.recordList) + end + end) end return M diff --git a/wb_new_ui/assets/Lobby/PlayerInfo.xml b/wb_new_ui/assets/Lobby/PlayerInfo.xml index 0b28be9c..eac6d803 100644 --- a/wb_new_ui/assets/Lobby/PlayerInfo.xml +++ b/wb_new_ui/assets/Lobby/PlayerInfo.xml @@ -1,6 +1,6 @@ - + @@ -13,7 +13,7 @@ - + @@ -22,10 +22,8 @@ - - -