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()