From d8a77663949c6b59e39e87243cc0050b8081aaff 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 18:59:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Game/View/Family/FamilyNumberDetail.lua | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) 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()