协议提交
parent
23bf422189
commit
81e28ee578
|
|
@ -375,15 +375,6 @@ function M:FG_Get_Offline_Member(groupId, callback)
|
|||
end)
|
||||
end
|
||||
|
||||
-- 获取申请列表的数量
|
||||
function M:FG_Get_Apply_Count(groupId, callback)
|
||||
local _data = {}
|
||||
_data.id = groupId
|
||||
self._mgr_client:send(Protocol.WEB_FG_APPLYCOUNT, _data, function(res)
|
||||
callback(res)
|
||||
end)
|
||||
end
|
||||
|
||||
-- 回复邀请
|
||||
-- function M:FG_ResponseInvited(id, refuse)
|
||||
-- local _data = {}
|
||||
|
|
|
|||
|
|
@ -1678,24 +1678,11 @@ function M:FG_Recharge_Diamo(groupId, diamo, callback)
|
|||
end)
|
||||
end
|
||||
|
||||
--[[
|
||||
-- 进入亲友圈
|
||||
function M:FG_Get_Online_Member(groupId, callback)
|
||||
-- 获取申请列表的数量
|
||||
function M:FG_Get_Apply_Count(callback)
|
||||
local _data = {}
|
||||
_data.id = groupId
|
||||
local _client = ControllerManager.GroupClient
|
||||
_client:send(Protocol.WEB_FG_GET_ONLINE_MEMBER, _data, function(res)
|
||||
_client:send(Protocol.WEB_FG_APPLYCOUNT, _data, function(res)
|
||||
callback(res)
|
||||
end)
|
||||
end
|
||||
|
||||
-- 退出亲友圈
|
||||
function M:FG_Get_Offline_Member(groupId, callback)
|
||||
local _data = {}
|
||||
_data.id = groupId
|
||||
local _client = ControllerManager.GroupClient
|
||||
_client:send(Protocol.WEB_FG_GET_OFFLINE_MEMBER, _data, function(res)
|
||||
callback(res)
|
||||
end)
|
||||
end
|
||||
]]
|
||||
|
|
|
|||
|
|
@ -22,6 +22,6 @@ function GroupUpdataHelper:Updata()
|
|||
end
|
||||
end
|
||||
|
||||
UpdateBeat:Add(GroupUpdataHelper.Updata, GroupUpdataHelper)
|
||||
--UpdateBeat:Add(GroupUpdataHelper.Updata, GroupUpdataHelper)
|
||||
|
||||
return GroupUpdataHelper
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ function M:FillList(numbers)
|
|||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
if self._viewList_allNumbers.numItems == #numbers then
|
||||
self._viewList_allNumbers:RefreshVirtualList()
|
||||
else
|
||||
|
|
|
|||
|
|
@ -104,6 +104,12 @@ function M:_evtOnNewApply(...)
|
|||
print("_evtOnNewApply")
|
||||
local arg = { ... }
|
||||
pt(arg)
|
||||
|
||||
local view = ViewManager.GetCurrenView()
|
||||
if view.class ~= "FamilyMainView" then
|
||||
return
|
||||
end
|
||||
view:RefalshMoreBtn()
|
||||
self._child_familyAuditNumber:OnNewApply(arg)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -390,12 +390,22 @@ end
|
|||
|
||||
function M:OnEnterGroupCallBack()
|
||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||
self._mgr_ctr:FG_Get_Apply_Count(self._group.id, function(res)
|
||||
fgCtr:FG_Get_Apply_Count(function(res)
|
||||
print("收到获得申请列表的数量")
|
||||
pt(res)
|
||||
if res.ReturnCode ~= 0 then
|
||||
return
|
||||
end
|
||||
|
||||
local ApplyRp = {}
|
||||
|
||||
--[[
|
||||
for _,rp in pairs(ApplyRp) do
|
||||
local group = DataManager.groups:get()
|
||||
group.ApplyRedPoint = ApplyRp.
|
||||
end
|
||||
]]
|
||||
|
||||
end)
|
||||
self._view:GetController('familyBan').selectedIndex = self._group.ban and 1 or 0
|
||||
|
||||
|
|
@ -409,7 +419,6 @@ function M:OnEnterGroupCallBack()
|
|||
|
||||
ViewUtil.ShowModalWait(self._root_view, "正在加载亲友圈权限中......")
|
||||
self:ChangeOther(tonumber(self._group.lev) + 1)
|
||||
allLoad = 1
|
||||
|
||||
ViewUtil.ShowModalWait(self._root_view, "正在加载成员列表中......")
|
||||
self:ChangeNumber(fgCtr, self._group.id, 0, self._group.total_member_num, false, 1)
|
||||
|
|
@ -740,26 +749,18 @@ function M:OnUpdate()
|
|||
-- -- print("====================================UpdateFamilyRoom", fgCtr, self._group.id)
|
||||
self:UpdateFamilyRoom(fgCtr, self._group.id)
|
||||
end
|
||||
|
||||
--[[
|
||||
local HeartbeatTime = 3
|
||||
if newTime - self.lastTime > HeartbeatTime then
|
||||
fgCtr:FG_SetFamilyHeartbeat(self._group.id, DataManager.SelfUser.account_id, function(res)
|
||||
print(res)
|
||||
end)
|
||||
--[[
|
||||
fgCtr:FG_SetFamilyHeartbeat(self._group.id, DataManager.SelfUser.account_id, function(res)
|
||||
self:ChangeNumber(fgCtr, self._group.id, 0, self._group.total_member_num, false,
|
||||
1)
|
||||
pt(res)
|
||||
end)
|
||||
]]
|
||||
self.lastTime = newTime
|
||||
--self._view:GetChild('list_familyNumber').numItems = 0
|
||||
|
||||
if self._view:GetChild('list_familyNumber').itemRenderer then
|
||||
self._view:GetChild('list_familyNumber').numItems = #self._group.members
|
||||
end
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
local IDENTITY_LIST = {
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@
|
|||
<relation target="" sidePair="width-width,height-height"/>
|
||||
</image>
|
||||
<component id="n3_86ct" name="btn_head" src="86ct7cwk" fileName="Main/Component/btn_head.xml" xy="15,15" size="132,132" group="n15_q3uh"/>
|
||||
<text id="n4_86ct" name="name" xy="178,33" size="355,49" group="n15_q3uh" font="ui://27vd145bh35o7ilb" fontSize="36" autoSize="none" text="用户名称1">
|
||||
<richtext id="n4_86ct" name="name" xy="178,33" size="355,49" group="n15_q3uh" font="ui://27vd145bh35o7ilb" fontSize="36" autoSize="none" text="用户名称1">
|
||||
<gearColor controller="ban" pages="0,1" values="#000000,#000000|#ffffff,#000000"/>
|
||||
<relation target="" sidePair="left-left"/>
|
||||
</text>
|
||||
</richtext>
|
||||
<text id="n5_86ct" name="id" xy="13,147" size="146,38" group="n15_q3uh" alpha="0.3" font="ui://27vd145bh35o7ik0" fontSize="27" color="#8e0305" align="center" vAlign="middle" bold="true" strokeColor="#8e0305" text="ID:12312311">
|
||||
<gearLook controller="ban" pages="1" values="1,0,0,0" default="0.3,0,0,0"/>
|
||||
<gearColor controller="ban" pages="0,1" values="#8e0305,#8e0305|#ffffff,#000000"/>
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue