diff --git a/lua_probject/base_project/Game/View/Family/FamilyNumberDetail.lua b/lua_probject/base_project/Game/View/Family/FamilyNumberDetail.lua index 80cf4c95..4b80a138 100644 --- a/lua_probject/base_project/Game/View/Family/FamilyNumberDetail.lua +++ b/lua_probject/base_project/Game/View/Family/FamilyNumberDetail.lua @@ -36,11 +36,31 @@ function M:init(url, lev, res) end) self._view:GetChild('btn_changeMJScore').onClick:Set(function() - ViewUtil.ShowOneChooose("该功能还未开放") + ViewUtil.ShowOneInput("修改麻将进入限制分", function(text) + print("lingmeng修改扑克进入限制分", text) + fgCtr:FG_SetJoinScore(self.groupId, info.uid, tonumber(text), MJScore, function(res) + if res.ReturnCode ~= 0 then + ViewUtil.ShowOneChooose("修改限制分失败" .. res.ReturnCode) + else + MJScore = tonumber(text) + self._view:GetChild('text_score_majiang').text = MJScore + end + end) + end) end) self._view:GetChild('btn_changePokerScore').onClick:Set(function() - ViewUtil.ShowOneChooose("该功能还未开放") + ViewUtil.ShowOneInput("修改扑克进入限制分", function(text) + print("lingmeng修改扑克进入限制分", text) + fgCtr:FG_SetJoinScore(self.groupId, info.uid, MJScore, tonumber(text), function(res) + if res.ReturnCode ~= 0 then + ViewUtil.ShowOneChooose("修改限制分失败" .. res.ReturnCode) + else + PKScore = tonumber(text) + self._view:GetChild('text_score_poker').text = PKScore + end + end) + end) end) self._view:GetChild('btn_tick').onClick:Set(function()