From d8504b8a135d52a15369a0196630841d0815b98d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=AE=B6=E7=82=9C?= <2029049582@qq.com> Date: Thu, 22 May 2025 11:34:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=8A=A0=E5=85=A5=E5=9C=88?= =?UTF-8?q?=E5=AD=90=E5=92=8C=E5=88=9B=E5=BB=BA=E5=9C=88=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base_project/Game/View/FamilyView.lua | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lua_probject/base_project/Game/View/FamilyView.lua b/lua_probject/base_project/Game/View/FamilyView.lua index fc31c8c6..57c87bcc 100644 --- a/lua_probject/base_project/Game/View/FamilyView.lua +++ b/lua_probject/base_project/Game/View/FamilyView.lua @@ -43,7 +43,7 @@ function M:init(url) self.familyType.selectedIndex = 1 self:ConnetFamily(1, groups, true) else - self:JoinFamily() + self:JoinFamily(true) end end) -------绑定成员战绩按钮 @@ -72,17 +72,22 @@ function M:ShareWx() familyInviteFamilyView:Show() end -function M:CreateFamily() +function M:CreateFamily(frist) self.familyType.selectedIndex = 3 - self.lastType = 1 + if not frist then + self.lastType = 1 + end self._view:GetController('createOrJoin').selectedIndex = 0 self._child_familyJoinAndCreate = FamilyJoinAndCreate.new(self) end -function M:JoinFamily() +function M:JoinFamily(frist) self.familyType.selectedIndex = 3 - self.lastType = 1 + if not frist then + self.lastType = 1 + end self._view:GetController('createOrJoin').selectedIndex = 1 + self._child_familyJoinAndCreate = FamilyJoinAndCreate.new(self) end function M:PlayEdit()