修改个人麻将限制分
parent
d8a7766394
commit
6e547f8c9c
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue