diff --git a/lua_probject/base_project/Game/View/Family/FamilyNumberDetail.lua b/lua_probject/base_project/Game/View/Family/FamilyNumberDetail.lua index 4b80a138..7314e812 100644 --- a/lua_probject/base_project/Game/View/Family/FamilyNumberDetail.lua +++ b/lua_probject/base_project/Game/View/Family/FamilyNumberDetail.lua @@ -19,15 +19,17 @@ function M:init(url, lev, res) local fgCtr = ControllerManager.GetController(NewGroupController) BaseWindow.init(self, url) - local info = res.Data.members[1] - local flag_assistant = info.lev == 2 and 1 or 0 - local flag_band = info.ban + local info = res.Data.members[1] + local flag_assistant = info.lev == 2 and 1 or 0 + local flag_band = info.ban + local MJScore = info.mj_score + local PKScore = info.pk_score - self._view:GetChild('name').text = string.format("%s(%s)", info.nick, info.uid) - self._view:GetChild('text_allRounds').text = info.total_round - self._view:GetChild('text_joinTime').text = os.date('%Y-%m-%d %H:%M', info.join_time) - self._view:GetChild('text_score_majiang').text = 0 - self._view:GetChild('text_score_poker').text = 0 + self._view:GetChild('name').text = string.format("%s(%s)", info.nick, info.uid) + self._view:GetChild('text_allRounds').text = info.total_round + self._view:GetChild('text_joinTime').text = os.date('%Y-%m-%d %H:%M', info.join_time) + self._view:GetChild('text_score_majiang').text = MJScore + self._view:GetChild('text_score_poker').text = PKScore self._view:GetController('isAssistant').selectedIndex = info.lev == 1 and 0 or (lev == 2 and 1 or 2)