From 2419bdc9b6a6a60986d08a452c8b381fcb09e791 Mon Sep 17 00:00:00 2001 From: "DESKTOP-7R8JEQQ\\k" <1076390229@qq.com> Date: Tue, 8 Jul 2025 18:01:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E5=AE=B6=E6=97=8F=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E3=80=81=E7=94=B3=E8=AF=B7=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Game/View/Family/FamilyMyFamily.lua | 62 +++++++++++++----- .../Component/comp_auditNumberChild.xml | 24 ++++--- wb_new_ui/assets/Family/Main.xml | 8 ++- .../assets/Family/MyFamily/com_myFamily.xml | 6 ++ wb_new_ui/assets/Family/Tips/Tips.xml | 12 ++++ .../Family/Tips/component/btn_cancel.xml | 10 +++ .../Family/Tips/component/btn_comfirm.xml | 10 +++ wb_new_ui/assets/Family/Tips/image/bg.png | Bin 0 -> 171712 bytes .../assets/Family/Tips/image/bt_cancel1.png | Bin 0 -> 28505 bytes .../assets/Family/Tips/image/queren_btn1.png | Bin 0 -> 28321 bytes wb_new_ui/assets/Family/package.xml | 6 ++ .../ART/base/Family/ui/Family_atlas0.png | Bin 4508770 -> 4867687 bytes .../ART/base/Family/ui/Family_atlas0_1.png | Bin 2195894 -> 2147686 bytes .../ART/base/Family/ui/Family_fui.bytes | Bin 114746 -> 116483 bytes 14 files changed, 109 insertions(+), 29 deletions(-) create mode 100644 wb_new_ui/assets/Family/Tips/Tips.xml create mode 100644 wb_new_ui/assets/Family/Tips/component/btn_cancel.xml create mode 100644 wb_new_ui/assets/Family/Tips/component/btn_comfirm.xml create mode 100644 wb_new_ui/assets/Family/Tips/image/bg.png create mode 100644 wb_new_ui/assets/Family/Tips/image/bt_cancel1.png create mode 100644 wb_new_ui/assets/Family/Tips/image/queren_btn1.png diff --git a/lua_probject/base_project/Game/View/Family/FamilyMyFamily.lua b/lua_probject/base_project/Game/View/Family/FamilyMyFamily.lua index 21f0765b..75a9cc5f 100644 --- a/lua_probject/base_project/Game/View/Family/FamilyMyFamily.lua +++ b/lua_probject/base_project/Game/View/Family/FamilyMyFamily.lua @@ -131,6 +131,12 @@ function FamilyMyFamily:Init() self.cStyle = self._view:GetController("cStyle") self.cWindow = self._view:GetController("cWindow") self.cDisplayNumber = self._view:GetController("cDisplayNumber") + self.cTips = self._view:GetController("cTips") + + self.com_tips = self._view:GetChild("com_tips") + self.tips_btn_comfirm = self.com_tips:GetChild("btn_comfirm") + self.tips_btn_cencel = self.com_tips:GetChild("btn_cencel") + self.tips_btn_bg = self.com_tips:GetChild("btn_bg") self.input_text.emojies = EmojiDitc.EmojiesDitc self.tex_fName.emojies = EmojiDitc.EmojiesDitc @@ -196,16 +202,7 @@ function FamilyMyFamily:Init() end) self.btn_quitFamily.onClick:Set(function() - local fgCtr = ControllerManager.GetController(NewGroupController) - print("发送了退出协议 familyid = ", self.family.id) - fgCtr:FG_ExitGroup(self.family.id, function(res) - if res.ReturnCode ~= 0 then - return - end - self:Close() - ControllerManager.ChangeController(NewGroupController) - ViewManager.ChangeView(ViewManager.View_Family) - end) + self.cTips.selectedIndex = 1 end) self.btn_quitNotice.onClick:Set(function() @@ -258,17 +255,17 @@ function FamilyMyFamily:Init() end) self.btn_hideNumber.onClick:Set(function() - if self.isShowContenting == true then - ViewUtil.ShowBannerOnScreenCenter("设置中,请稍后再试。。") + if self.networkSending == true then + ViewUtil.ShowBannerOnScreenCenter("设置中,请稍后。。") return end local fgCtr = ControllerManager.GetController(NewGroupController) - self.isShowContenting = true + self.networkSending = true fgCtr:FG_SetGroupShow(0, self.family.id, function(res) print("收到协议M:FG_SetGroupShow") pt(res) - self.isShowContenting = false + self.networkSending = false if res.ReturnCode ~= 0 then ViewUtil.ErrorTip(res.ReturnCode) return @@ -280,19 +277,19 @@ function FamilyMyFamily:Init() end) self.btn_showNumber.onClick:Set(function() - if self.isShowContenting == true then - ViewUtil.ShowBannerOnScreenCenter("设置中,请稍后再试。。") + if self.networkSending == true then + ViewUtil.ShowBannerOnScreenCenter("设置中,请稍后。。") return end print("点击了") local fgCtr = ControllerManager.GetController(NewGroupController) - self.isShowContenting = true + self.networkSending = true fgCtr:FG_SetGroupShow(1, self.family.id, function(res) print("收到协议M:FG_SetGroupShow") pt(res) - self.isShowContenting = false + self.networkSending = false if res.ReturnCode ~= 0 then ViewUtil.ErrorTip(res.ReturnCode) return @@ -303,6 +300,35 @@ function FamilyMyFamily:Init() end) end) + self.tips_btn_comfirm.onClick:Set(function() + if self.networkSending then + ViewUtil.ShowBannerOnScreenCenter("操作中,请稍后。。") + return + end + + self.networkSending = true + local fgCtr = ControllerManager.GetController(NewGroupController) + print("发送了退出协议 familyid = ", self.family.id) + fgCtr:FG_ExitGroup(self.family.id, function(res) + if res.ReturnCode ~= 0 then + return + end + self.networkSending = false + self.cTips.selectedIndex = 1 + self:Close() + ControllerManager.ChangeController(NewGroupController) + ViewManager.ChangeView(ViewManager.View_Family) + end) + end) + + self.tips_btn_cencel.onClick:Set(function() + self.cTips.selectedIndex = 0 + end) + + self.tips_btn_bg.onClick:Set(function() + self.cTips.selectedIndex = 0 + end) + return self end diff --git a/wb_new_ui/assets/Family/AuditNumber/Component/comp_auditNumberChild.xml b/wb_new_ui/assets/Family/AuditNumber/Component/comp_auditNumberChild.xml index 67f4eaac..863310d9 100644 --- a/wb_new_ui/assets/Family/AuditNumber/Component/comp_auditNumberChild.xml +++ b/wb_new_ui/assets/Family/AuditNumber/Component/comp_auditNumberChild.xml @@ -1,17 +1,25 @@ - - - + + + + + - + - - - - + + + + + + + + + + \ No newline at end of file diff --git a/wb_new_ui/assets/Family/Main.xml b/wb_new_ui/assets/Family/Main.xml index 7df17575..d04e9594 100644 --- a/wb_new_ui/assets/Family/Main.xml +++ b/wb_new_ui/assets/Family/Main.xml @@ -1,6 +1,6 @@ - + @@ -31,7 +31,9 @@ - + + + @@ -184,7 +186,7 @@ - + diff --git a/wb_new_ui/assets/Family/MyFamily/com_myFamily.xml b/wb_new_ui/assets/Family/MyFamily/com_myFamily.xml index ce745987..ed34ac45 100644 --- a/wb_new_ui/assets/Family/MyFamily/com_myFamily.xml +++ b/wb_new_ui/assets/Family/MyFamily/com_myFamily.xml @@ -12,6 +12,9 @@ + + + @@ -97,5 +100,8 @@ + + + \ No newline at end of file diff --git a/wb_new_ui/assets/Family/Tips/Tips.xml b/wb_new_ui/assets/Family/Tips/Tips.xml new file mode 100644 index 00000000..3c3116e4 --- /dev/null +++ b/wb_new_ui/assets/Family/Tips/Tips.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/wb_new_ui/assets/Family/Tips/component/btn_cancel.xml b/wb_new_ui/assets/Family/Tips/component/btn_cancel.xml new file mode 100644 index 00000000..16360712 --- /dev/null +++ b/wb_new_ui/assets/Family/Tips/component/btn_cancel.xml @@ -0,0 +1,10 @@ + + +