From 6e547f8c9cbffd414297e870e3f0f2a0126fc702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=AE=B6=E7=82=9C?= <2029049582@qq.com> Date: Tue, 20 May 2025 19:06:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AA=E4=BA=BA=E9=BA=BB?= =?UTF-8?q?=E5=B0=86=E9=99=90=E5=88=B6=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Game/View/Family/FamilyNumberDetail.lua | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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)