修改个人麻将限制分

master
罗家炜 2025-05-20 19:06:00 +08:00
parent d8a7766394
commit 6e547f8c9c
1 changed files with 10 additions and 8 deletions

View File

@ -19,15 +19,17 @@ function M:init(url, lev, res)
local fgCtr = ControllerManager.GetController(NewGroupController) local fgCtr = ControllerManager.GetController(NewGroupController)
BaseWindow.init(self, url) BaseWindow.init(self, url)
local info = res.Data.members[1] local info = res.Data.members[1]
local flag_assistant = info.lev == 2 and 1 or 0 local flag_assistant = info.lev == 2 and 1 or 0
local flag_band = info.ban 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('name').text = string.format("%s(%s)", info.nick, info.uid)
self._view:GetChild('text_allRounds').text = info.total_round 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_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_majiang').text = MJScore
self._view:GetChild('text_score_poker').text = 0 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) self._view:GetController('isAssistant').selectedIndex = info.lev == 1 and 0 or (lev == 2 and 1 or 2)