动效以及多级查询
parent
c033a810fa
commit
cd276c222d
|
|
@ -245,15 +245,38 @@ function M:FG_GroupMembers12(group_id, limit, num, type, online, callback)
|
||||||
|
|
||||||
if #members > 0 then
|
if #members > 0 then
|
||||||
for i = 1, #members do
|
for i = 1, #members do
|
||||||
|
|
||||||
local m = members[i]
|
local m = members[i]
|
||||||
|
|
||||||
group:addMember(m)
|
group:addMember(m)
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
callback(res)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
|
function M:FG_GroupSubMembers(group_id, limit, num, tagId, callback)
|
||||||
|
local _client = ControllerManager.GroupClient
|
||||||
|
local data = {}
|
||||||
|
data.id = group_id
|
||||||
|
data.limit = limit
|
||||||
|
data.num = num
|
||||||
|
data.tagId = tagId
|
||||||
|
self.currentGroupMembersData = data
|
||||||
|
self.currentGroupMembersCallBack = callback
|
||||||
|
_client:send(Protocol.WEB_FG_GROUP_SubMEMBERS, data, function(res)
|
||||||
|
print("查询圈子下级玩家列表222============")
|
||||||
|
--pt(res)
|
||||||
|
if res.ReturnCode == 0 then
|
||||||
|
local group = DataManager.groups:get(group_id)
|
||||||
|
local members = res.Data.members
|
||||||
|
|
||||||
|
if #members > 0 then
|
||||||
|
for i = 1, #members do
|
||||||
|
local m = members[i]
|
||||||
|
group:addMember(m)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
callback(res)
|
callback(res)
|
||||||
end)
|
end)
|
||||||
|
|
@ -287,7 +310,6 @@ function M:SendGetGroupMembersInfo()
|
||||||
if m.partnerLev ~= 0 or m.lev == 1 then
|
if m.partnerLev ~= 0 or m.lev == 1 then
|
||||||
group:addMember(m)
|
group:addMember(m)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
self.currentGroupMembersCallBack(res)
|
self.currentGroupMembersCallBack(res)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
Protocol = {
|
Protocol = {
|
||||||
-------------------- Web --------------------------
|
-------------------- Web --------------------------
|
||||||
-------------- acc -----------
|
-------------- acc -----------
|
||||||
|
|
@ -92,6 +91,8 @@ Protocol = {
|
||||||
WEB_FG_GROUP_MEMBERS = "group/get_group_members",
|
WEB_FG_GROUP_MEMBERS = "group/get_group_members",
|
||||||
--牌友圈玩家列表1
|
--牌友圈玩家列表1
|
||||||
WEB_FG_GROUP_MEMBERS1 = "group/get_my_members",
|
WEB_FG_GROUP_MEMBERS1 = "group/get_my_members",
|
||||||
|
--牌友圈下级列表
|
||||||
|
WEB_FG_GROUP_SubMEMBERS = "group/get_child_members",
|
||||||
--踢出玩家列表
|
--踢出玩家列表
|
||||||
WEB_FG_GROUP_TICHU = "group/get_kick_log",
|
WEB_FG_GROUP_TICHU = "group/get_kick_log",
|
||||||
--牌友圈删除玩家
|
--牌友圈删除玩家
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ function GroupMngMemberHpListView.new(group_id, blur_view)
|
||||||
self.curGroup = DataManager.groups:get(self.group_id)
|
self.curGroup = DataManager.groups:get(self.group_id)
|
||||||
self.member_data = {}
|
self.member_data = {}
|
||||||
self.online = 2
|
self.online = 2
|
||||||
self.stype = 2
|
self.stype = 1
|
||||||
self:FillView()
|
self:FillView()
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
@ -231,8 +231,8 @@ end
|
||||||
function M:RecursionGetMenberData(fgCtr, index)
|
function M:RecursionGetMenberData(fgCtr, index)
|
||||||
fgCtr:FG_GroupMembers12(
|
fgCtr:FG_GroupMembers12(
|
||||||
self.group_id,
|
self.group_id,
|
||||||
index * 67,
|
index * 166,
|
||||||
67,
|
166,
|
||||||
self.stype,
|
self.stype,
|
||||||
self.online,
|
self.online,
|
||||||
function(res)
|
function(res)
|
||||||
|
|
@ -511,7 +511,6 @@ function M:FillItem(obj, member, refresh, index)
|
||||||
end
|
end
|
||||||
self._view:GetChild('tex_id').text = ''
|
self._view:GetChild('tex_id').text = ''
|
||||||
self._view:GetController('search').selectedIndex = 1
|
self._view:GetController('search').selectedIndex = 1
|
||||||
|
|
||||||
ViewUtil.CloseModalWait()
|
ViewUtil.CloseModalWait()
|
||||||
table.insert(self.backTable, { 2, text })
|
table.insert(self.backTable, { 2, text })
|
||||||
self.lst_member_find.numItems = #tempNumberList
|
self.lst_member_find.numItems = #tempNumberList
|
||||||
|
|
@ -521,23 +520,8 @@ function M:FillItem(obj, member, refresh, index)
|
||||||
function()
|
function()
|
||||||
ViewUtil.ShowModalWait(nil)
|
ViewUtil.ShowModalWait(nil)
|
||||||
local text = member.uid
|
local text = member.uid
|
||||||
local tempNumberList = self.numberMap[1][text]
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
if tempNumberList == nil then
|
self:RecursionGetSubNumber(fgCtr, 0, text, {})
|
||||||
tempNumberList = {}
|
|
||||||
for j = 1, #self.all_member_data do
|
|
||||||
local number = self.all_member_data[j]
|
|
||||||
if number.parentId == text then
|
|
||||||
table.insert(tempNumberList, number)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
self.numberMap[1][text] = tempNumberList
|
|
||||||
end
|
|
||||||
self._view:GetChild('tex_id').text = ''
|
|
||||||
self._view:GetController('search').selectedIndex = 1
|
|
||||||
|
|
||||||
ViewUtil.CloseModalWait()
|
|
||||||
table.insert(self.backTable, { 1, text })
|
|
||||||
self.lst_member_find.numItems = #tempNumberList
|
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
obj:GetController('all').selectedIndex = 0
|
obj:GetController('all').selectedIndex = 0
|
||||||
|
|
@ -559,6 +543,33 @@ function M:FillItem(obj, member, refresh, index)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function M:RecursionGetSubNumber(fgCtr, index, uid, tempTable)
|
||||||
|
fgCtr:FG_GroupSubMembers(self.group_id, index * 166, 166, uid,
|
||||||
|
function(res)
|
||||||
|
if res.ReturnCode ~= 0 then
|
||||||
|
ViewUtil.CloseModalWait()
|
||||||
|
ViewUtil.ErrorTip(res.ReturnCod, "获取下级成员失败")
|
||||||
|
return
|
||||||
|
else
|
||||||
|
local munbers = res.Data.members
|
||||||
|
if munbers and #munbers > 0 then
|
||||||
|
for i = 1, #munbers do
|
||||||
|
table.insert(tempTable, munbers[i])
|
||||||
|
end
|
||||||
|
self:RecursionGetSubNumber(fgCtr, index + 1, uid, tempTable)
|
||||||
|
else
|
||||||
|
ViewUtil.CloseModalWait()
|
||||||
|
self.numberMap[1][uid] = tempTable
|
||||||
|
self._view:GetChild('tex_id').text = ''
|
||||||
|
self._view:GetController('search').selectedIndex = 1
|
||||||
|
|
||||||
|
table.insert(self.backTable, { 1, uid })
|
||||||
|
self.lst_member_find.numItems = #tempTable
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
function M:OnRenderItem(index, obj)
|
function M:OnRenderItem(index, obj)
|
||||||
--printlog("aaaaaaaaaawwwwwwwwwwwwwwwwwwwwwwwwwwww ",index)
|
--printlog("aaaaaaaaaawwwwwwwwwwwwwwwwwwwwwwwwwwww ",index)
|
||||||
local i = (self.start - 1) * self.pageNum + index + 1
|
local i = (self.start - 1) * self.pageNum + index + 1
|
||||||
|
|
|
||||||
|
|
@ -543,8 +543,8 @@ function M:RecursionGetNumberRecordForLev1(index, id, tempTable)
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
fgCtr:FG_GroupMembers12(
|
fgCtr:FG_GroupMembers12(
|
||||||
self.group_id,
|
self.group_id,
|
||||||
index * 10,
|
index * 67,
|
||||||
10,
|
67,
|
||||||
1,
|
1,
|
||||||
2,
|
2,
|
||||||
function(res)
|
function(res)
|
||||||
|
|
@ -554,7 +554,6 @@ function M:RecursionGetNumberRecordForLev1(index, id, tempTable)
|
||||||
local numbers = res.Data.members
|
local numbers = res.Data.members
|
||||||
|
|
||||||
if #numbers == 0 then
|
if #numbers == 0 then
|
||||||
|
|
||||||
local one = {}
|
local one = {}
|
||||||
if #tempTable > 0 then
|
if #tempTable > 0 then
|
||||||
one = table.remove(tempTable)
|
one = table.remove(tempTable)
|
||||||
|
|
@ -575,7 +574,6 @@ function M:RecursionGetNumberRecordForLev1(index, id, tempTable)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function M:RecursionGetNumberRecordByLev1(tempTable, id, root_id)
|
function M:RecursionGetNumberRecordByLev1(tempTable, id, root_id)
|
||||||
|
|
@ -638,7 +636,7 @@ end
|
||||||
|
|
||||||
function M:RecursionGetPropLog(members, index)
|
function M:RecursionGetPropLog(members, index)
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
fgCtr:FG_GetPropLog(self.group_id, index * 20, 20, self.begin_time, self.end_time, function(res)
|
fgCtr:FG_GetPropLog(self.group_id, index * 67, 67, self.begin_time, self.end_time, function(res)
|
||||||
if res.ReturnCode ~= 0 then
|
if res.ReturnCode ~= 0 then
|
||||||
ViewUtil.CloseModalWait()
|
ViewUtil.CloseModalWait()
|
||||||
ViewUtil.ErrorTip(res.ReturnCode, "获取排名信息失败")
|
ViewUtil.ErrorTip(res.ReturnCode, "获取排名信息失败")
|
||||||
|
|
|
||||||
|
|
@ -7,38 +7,29 @@
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"libview.iconScale": 0,
|
"libview.iconScale": 0,
|
||||||
"doc.openedDocs": [],
|
"doc.openedDocs": [
|
||||||
|
"ui://2d9xdj6zfn7fao",
|
||||||
|
"ui://m7iejg46kwi0hma",
|
||||||
|
"ui://2d9xdj6zm16m7dqt",
|
||||||
|
"ui://ppu1wv76j4mf9j",
|
||||||
|
"ui://ppu1wv76j4mf9k",
|
||||||
|
"ui://ppu1wv7699wej",
|
||||||
|
"ui://ppu1wv76j4mf9d",
|
||||||
|
"ui://ppu1wv76j4mf9e",
|
||||||
|
"ui://2d9xdj6zoviicm0"
|
||||||
|
],
|
||||||
"test.device": "720p Phone",
|
"test.device": "720p Phone",
|
||||||
"canvasColor": 10066329,
|
"canvasColor": 10066329,
|
||||||
"auxline2": true,
|
"auxline2": true,
|
||||||
|
"doc.activeDoc": "ui://m7iejg46kwi0hma",
|
||||||
"libview.twoColumn": false,
|
"libview.twoColumn": false,
|
||||||
"libview.expandedNodes": [
|
"libview.expandedNodes": [
|
||||||
"s63l0suw",
|
|
||||||
"/",
|
|
||||||
"ppu1wv76",
|
|
||||||
"/",
|
|
||||||
"ppu1wv76",
|
|
||||||
"/component/",
|
|
||||||
"ppu1wv76",
|
|
||||||
"/component/Main/",
|
|
||||||
"ppu1wv76",
|
|
||||||
"/component/clearing/",
|
|
||||||
"v6yvqp7w",
|
|
||||||
"/",
|
|
||||||
"v6yvqp7w",
|
|
||||||
"/component/",
|
|
||||||
"v6yvqp7w",
|
|
||||||
"/component/Main/",
|
|
||||||
"v6yvqp7w",
|
|
||||||
"/component/Main/component/",
|
|
||||||
"m7iejg46",
|
"m7iejg46",
|
||||||
"/",
|
"/",
|
||||||
"m7iejg46",
|
"m7iejg46",
|
||||||
"/mgr/",
|
"/mgr/",
|
||||||
"m7iejg46",
|
"m7iejg46",
|
||||||
"/mgr/component/",
|
"/mgr/component/"
|
||||||
"m7iejg46",
|
|
||||||
"/mgr/component/play_set/"
|
|
||||||
],
|
],
|
||||||
"auxline1": true,
|
"auxline1": true,
|
||||||
"snapToGrid": true,
|
"snapToGrid": true,
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<controller name="chupai" pages="0,,1," selected="0"/>
|
<controller name="chupai" pages="0,,1," selected="0"/>
|
||||||
<controller name="piao" pages="0,,1,,3,,4," selected="0"/>
|
<controller name="piao" pages="0,,1,,3,,4," selected="0"/>
|
||||||
<controller name="piaovalue" pages="0,0,1,1,2,2,3,3,4,5,5,8" selected="0"/>
|
<controller name="piaovalue" pages="0,0,1,1,2,2,3,3,4,5,5,8" selected="0"/>
|
||||||
<controller name="niao" pages="0,,1," selected="1"/>
|
<controller name="niao" pages="0,,1," selected="0"/>
|
||||||
<displayList>
|
<displayList>
|
||||||
<list id="n36_lr5d" name="windcard_list" xy="1331,215" size="283,81" rotation="180" layout="flow_hz" lineGap="1" colGap="1" defaultItem="ui://v6yvqp7wlr5d31">
|
<list id="n36_lr5d" name="windcard_list" xy="1331,215" size="283,81" rotation="180" layout="flow_hz" lineGap="1" colGap="1" defaultItem="ui://v6yvqp7wlr5d31">
|
||||||
<relation target="" sidePair="right-right"/>
|
<relation target="" sidePair="right-right"/>
|
||||||
|
|
|
||||||
|
|
@ -5,34 +5,34 @@
|
||||||
<loader id="n1_wyal" name="icon" xy="0,0" size="82,243" url="ui://v6yvqp7wotnwp5" fill="scale" shrinkOnly="true" clearOnPublish="true"/>
|
<loader id="n1_wyal" name="icon" xy="0,0" size="82,243" url="ui://v6yvqp7wotnwp5" fill="scale" shrinkOnly="true" clearOnPublish="true"/>
|
||||||
</displayList>
|
</displayList>
|
||||||
<transition name="mopai1">
|
<transition name="mopai1">
|
||||||
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="4"/>
|
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="7"/>
|
||||||
<item time="0" type="Size" target="n2_ddb9" tween="true" startValue="31.7,60.2" endValue="136,312" duration="4"/>
|
<item time="0" type="Size" target="n2_ddb9" tween="true" startValue="31.7,60.2" endValue="136,312" duration="7"/>
|
||||||
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="35,-40" endValue="0,0" duration="4"/>
|
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="-365,-40" endValue="0,-1" duration="7"/>
|
||||||
<item time="0" type="XY" target="n2_ddb9" tween="true" startValue="27,-47" endValue="-31,-29" duration="4"/>
|
<item time="0" type="XY" target="n2_ddb9" tween="true" startValue="-372,-47" endValue="-27,-29" duration="7"/>
|
||||||
</transition>
|
</transition>
|
||||||
<transition name="mopai2">
|
<transition name="mopai2">
|
||||||
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="5"/>
|
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="7"/>
|
||||||
<item time="0" type="Size" target="n2_ddb9" tween="true" startValue="31.7,60.2" endValue="136,312" duration="5"/>
|
<item time="0" type="Size" target="n2_ddb9" tween="true" startValue="31.7,60.2" endValue="136,312" duration="7"/>
|
||||||
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="300,50" endValue="0,0" duration="5"/>
|
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="300,50" endValue="0,0" duration="7"/>
|
||||||
<item time="0" type="XY" target="n2_ddb9" tween="true" startValue="291,42" endValue="-30,-31" duration="5"/>
|
<item time="0" type="XY" target="n2_ddb9" tween="true" startValue="291,42" endValue="-30,-31" duration="7"/>
|
||||||
</transition>
|
</transition>
|
||||||
<transition name="mopai3">
|
<transition name="mopai3">
|
||||||
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="5"/>
|
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="7"/>
|
||||||
<item time="0" type="Size" target="n2_ddb9" tween="true" startValue="31.2,56.19" endValue="136,312" duration="5"/>
|
<item time="0" type="Size" target="n2_ddb9" tween="true" startValue="31.2,56.19" endValue="136,312" duration="7"/>
|
||||||
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="-250,0" endValue="0,0" duration="5"/>
|
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="300,0" endValue="0,0" duration="7"/>
|
||||||
<item time="0" type="XY" target="n2_ddb9" tween="true" startValue="-258,-5" endValue="-30,-31" duration="5"/>
|
<item time="0" type="XY" target="n2_ddb9" tween="true" startValue="292,-5" endValue="-30,-31" duration="7"/>
|
||||||
</transition>
|
</transition>
|
||||||
<transition name="cpai1">
|
<transition name="cpai1">
|
||||||
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="4"/>
|
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="7"/>
|
||||||
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="240,100" endValue="0,0" duration="4"/>
|
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="240,100" endValue="0,0" duration="7"/>
|
||||||
</transition>
|
</transition>
|
||||||
<transition name="cpai2">
|
<transition name="cpai2">
|
||||||
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="3"/>
|
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="7"/>
|
||||||
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="-180,280" endValue="0,0" duration="3"/>
|
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="-180,280" endValue="0,0" duration="7"/>
|
||||||
</transition>
|
</transition>
|
||||||
<transition name="cpai3">
|
<transition name="cpai3">
|
||||||
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="4"/>
|
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="7"/>
|
||||||
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="295,252" endValue="0,0" duration="4"/>
|
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="-189,149" endValue="0,0" duration="7"/>
|
||||||
</transition>
|
</transition>
|
||||||
<transition name="mopai4">
|
<transition name="mopai4">
|
||||||
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="5"/>
|
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="5"/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue