动效以及多级查询
parent
c033a810fa
commit
cd276c222d
|
|
@ -243,17 +243,40 @@ function M:FG_GroupMembers12(group_id, limit, num, type, online, callback)
|
|||
local group = DataManager.groups:get(group_id)
|
||||
local members = res.Data.members
|
||||
|
||||
if #members>0 then
|
||||
if #members > 0 then
|
||||
for i = 1, #members do
|
||||
|
||||
local m = members[i]
|
||||
|
||||
group:addMember(m)
|
||||
|
||||
|
||||
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
|
||||
callback(res)
|
||||
end)
|
||||
|
|
@ -284,10 +307,9 @@ function M:SendGetGroupMembersInfo()
|
|||
local members = res.Data.members
|
||||
for i = 1, #members do
|
||||
local m = members[i]
|
||||
if m.partnerLev~=0 or m.lev==1 then
|
||||
if m.partnerLev ~= 0 or m.lev == 1 then
|
||||
group:addMember(m)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
self.currentGroupMembersCallBack(res)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
Protocol = {
|
||||
-------------------- Web --------------------------
|
||||
-------------- acc -----------
|
||||
|
|
@ -13,11 +12,11 @@ Protocol = {
|
|||
-- ID密码
|
||||
WEB_ID_PASSWORD_LOGIN = "acc/id_login",
|
||||
-- 获取手机验证码
|
||||
WEB_GET_VERIFCATION_CODE="acc/get_verification_code",
|
||||
WEB_GET_VERIFCATION_CODE = "acc/get_verification_code",
|
||||
--绑定手机号码
|
||||
WEB_BINDING_PHONE="acc/binding_phone",
|
||||
WEB_BINDING_PHONE = "acc/binding_phone",
|
||||
--更换微信
|
||||
WEB_change_weChat="acc/change_weChat",
|
||||
WEB_change_weChat = "acc/change_weChat",
|
||||
-- 更新用户信息
|
||||
WEB_UPDATE_USER_INFO = "acc/update_user_info",
|
||||
-- 获取用户信息
|
||||
|
|
@ -92,6 +91,8 @@ Protocol = {
|
|||
WEB_FG_GROUP_MEMBERS = "group/get_group_members",
|
||||
--牌友圈玩家列表1
|
||||
WEB_FG_GROUP_MEMBERS1 = "group/get_my_members",
|
||||
--牌友圈下级列表
|
||||
WEB_FG_GROUP_SubMEMBERS = "group/get_child_members",
|
||||
--踢出玩家列表
|
||||
WEB_FG_GROUP_TICHU = "group/get_kick_log",
|
||||
--牌友圈删除玩家
|
||||
|
|
@ -117,7 +118,7 @@ Protocol = {
|
|||
-- 禁止娱乐
|
||||
WEB_FG_BAN_MEMBER = "group/ban_member",
|
||||
--获取heibai
|
||||
GROUP_GET_BLACK_MEMBER= "group/get_black_member",
|
||||
GROUP_GET_BLACK_MEMBER = "group/get_black_member",
|
||||
--heibai调动
|
||||
GROUP_BLACK_MEMBER = "group/black_member",
|
||||
-- 设置vip
|
||||
|
|
@ -137,15 +138,15 @@ Protocol = {
|
|||
-- 克隆牌友圈
|
||||
WEB_FG_CLONE_GROUP = "group/clone_group",
|
||||
-- 改变体力值
|
||||
WEB_FG_CHANGE_FAG ="group/update_member_hp",
|
||||
WEB_FG_CHANGE_FAG = "group/update_member_hp",
|
||||
-- 体力值详情
|
||||
WEB_FG_FAG_LOG ="group/get_hp_log",
|
||||
WEB_FG_FAG_LOG = "group/get_hp_log",
|
||||
-- 体力值记录
|
||||
WEB_FG_FAG_UPDATE_LOG ="group/get_hpUpdate_log",
|
||||
WEB_FG_FAG_UPDATE_LOG = "group/get_hpUpdate_log",
|
||||
-- 体力值设置
|
||||
WEB_FG_FAG_HPDATA ="group/set_group_hpData",
|
||||
WEB_FG_FAG_HPDATA = "group/set_group_hpData",
|
||||
-- 设置体力值权限
|
||||
WEB_FG_SHOW_FAG ="group/show_hp",
|
||||
WEB_FG_SHOW_FAG = "group/show_hp",
|
||||
-- 查看整线体力值
|
||||
GET_HP_TOTAL = "group/get_hp_total",
|
||||
-- 添加层
|
||||
|
|
@ -153,7 +154,7 @@ Protocol = {
|
|||
-- 删除层
|
||||
WEB_FG_DEL_SUB_GROUP = "group/del_subGroup",
|
||||
-- 置顶
|
||||
WEB_FG_GROUP_TOP ="group/stick_group",
|
||||
WEB_FG_GROUP_TOP = "group/stick_group",
|
||||
-- 查看预览
|
||||
WEB_FG_GROUP_PREVIEW = "group/group_preview",
|
||||
-- 获取排名列表
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ function GroupMngMemberHpListView.new(group_id, blur_view)
|
|||
self.curGroup = DataManager.groups:get(self.group_id)
|
||||
self.member_data = {}
|
||||
self.online = 2
|
||||
self.stype = 2
|
||||
self.stype = 1
|
||||
self:FillView()
|
||||
return self
|
||||
end
|
||||
|
|
@ -231,8 +231,8 @@ end
|
|||
function M:RecursionGetMenberData(fgCtr, index)
|
||||
fgCtr:FG_GroupMembers12(
|
||||
self.group_id,
|
||||
index * 67,
|
||||
67,
|
||||
index * 166,
|
||||
166,
|
||||
self.stype,
|
||||
self.online,
|
||||
function(res)
|
||||
|
|
@ -511,7 +511,6 @@ function M:FillItem(obj, member, refresh, index)
|
|||
end
|
||||
self._view:GetChild('tex_id').text = ''
|
||||
self._view:GetController('search').selectedIndex = 1
|
||||
|
||||
ViewUtil.CloseModalWait()
|
||||
table.insert(self.backTable, { 2, text })
|
||||
self.lst_member_find.numItems = #tempNumberList
|
||||
|
|
@ -521,23 +520,8 @@ function M:FillItem(obj, member, refresh, index)
|
|||
function()
|
||||
ViewUtil.ShowModalWait(nil)
|
||||
local text = member.uid
|
||||
local tempNumberList = self.numberMap[1][text]
|
||||
if tempNumberList == nil then
|
||||
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
|
||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||
self:RecursionGetSubNumber(fgCtr, 0, text, {})
|
||||
end
|
||||
)
|
||||
obj:GetController('all').selectedIndex = 0
|
||||
|
|
@ -559,6 +543,33 @@ function M:FillItem(obj, member, refresh, index)
|
|||
)
|
||||
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)
|
||||
--printlog("aaaaaaaaaawwwwwwwwwwwwwwwwwwwwwwwwwwww ",index)
|
||||
local i = (self.start - 1) * self.pageNum + index + 1
|
||||
|
|
|
|||
|
|
@ -543,8 +543,8 @@ function M:RecursionGetNumberRecordForLev1(index, id, tempTable)
|
|||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||
fgCtr:FG_GroupMembers12(
|
||||
self.group_id,
|
||||
index * 10,
|
||||
10,
|
||||
index * 67,
|
||||
67,
|
||||
1,
|
||||
2,
|
||||
function(res)
|
||||
|
|
@ -554,12 +554,11 @@ function M:RecursionGetNumberRecordForLev1(index, id, tempTable)
|
|||
local numbers = res.Data.members
|
||||
|
||||
if #numbers == 0 then
|
||||
|
||||
local one = {}
|
||||
if #tempTable>0 then
|
||||
if #tempTable > 0 then
|
||||
one = table.remove(tempTable)
|
||||
end
|
||||
if one~=nil then
|
||||
if one ~= nil then
|
||||
self:RecursionGetNumberRecordByLev1(tempTable, one.uid, id)
|
||||
else
|
||||
ViewUtil.ShowModalWait("没有下级成员")
|
||||
|
|
@ -575,7 +574,6 @@ function M:RecursionGetNumberRecordForLev1(index, id, tempTable)
|
|||
end
|
||||
end
|
||||
)
|
||||
|
||||
end
|
||||
|
||||
function M:RecursionGetNumberRecordByLev1(tempTable, id, root_id)
|
||||
|
|
@ -638,7 +636,7 @@ end
|
|||
|
||||
function M:RecursionGetPropLog(members, index)
|
||||
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
|
||||
ViewUtil.CloseModalWait()
|
||||
ViewUtil.ErrorTip(res.ReturnCode, "获取排名信息失败")
|
||||
|
|
|
|||
|
|
@ -7,38 +7,29 @@
|
|||
"/"
|
||||
],
|
||||
"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",
|
||||
"canvasColor": 10066329,
|
||||
"auxline2": true,
|
||||
"doc.activeDoc": "ui://m7iejg46kwi0hma",
|
||||
"libview.twoColumn": false,
|
||||
"libview.expandedNodes": [
|
||||
"s63l0suw",
|
||||
"/",
|
||||
"ppu1wv76",
|
||||
"/",
|
||||
"ppu1wv76",
|
||||
"/component/",
|
||||
"ppu1wv76",
|
||||
"/component/Main/",
|
||||
"ppu1wv76",
|
||||
"/component/clearing/",
|
||||
"v6yvqp7w",
|
||||
"/",
|
||||
"v6yvqp7w",
|
||||
"/component/",
|
||||
"v6yvqp7w",
|
||||
"/component/Main/",
|
||||
"v6yvqp7w",
|
||||
"/component/Main/component/",
|
||||
"m7iejg46",
|
||||
"/",
|
||||
"m7iejg46",
|
||||
"/mgr/",
|
||||
"m7iejg46",
|
||||
"/mgr/component/",
|
||||
"m7iejg46",
|
||||
"/mgr/component/play_set/"
|
||||
"/mgr/component/"
|
||||
],
|
||||
"auxline1": true,
|
||||
"snapToGrid": true,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<controller name="chupai" pages="0,,1," 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="niao" pages="0,,1," selected="1"/>
|
||||
<controller name="niao" pages="0,,1," selected="0"/>
|
||||
<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">
|
||||
<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"/>
|
||||
</displayList>
|
||||
<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="n2_ddb9" tween="true" startValue="31.7,60.2" endValue="136,312" duration="4"/>
|
||||
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="35,-40" endValue="0,0" duration="4"/>
|
||||
<item time="0" type="XY" target="n2_ddb9" tween="true" startValue="27,-47" endValue="-31,-29" 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="7"/>
|
||||
<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="-372,-47" endValue="-27,-29" duration="7"/>
|
||||
</transition>
|
||||
<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="n2_ddb9" tween="true" startValue="31.7,60.2" endValue="136,312" duration="5"/>
|
||||
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="300,50" endValue="0,0" duration="5"/>
|
||||
<item time="0" type="XY" target="n2_ddb9" tween="true" startValue="291,42" endValue="-30,-31" 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="7"/>
|
||||
<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="7"/>
|
||||
</transition>
|
||||
<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="n2_ddb9" tween="true" startValue="31.2,56.19" endValue="136,312" duration="5"/>
|
||||
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="-250,0" endValue="0,0" duration="5"/>
|
||||
<item time="0" type="XY" target="n2_ddb9" tween="true" startValue="-258,-5" endValue="-30,-31" 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="7"/>
|
||||
<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="292,-5" endValue="-30,-31" duration="7"/>
|
||||
</transition>
|
||||
<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="XY" target="n1_wyal" tween="true" startValue="240,100" endValue="0,0" 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="7"/>
|
||||
</transition>
|
||||
<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="XY" target="n1_wyal" tween="true" startValue="-180,280" endValue="0,0" 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="7"/>
|
||||
</transition>
|
||||
<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="XY" target="n1_wyal" tween="true" startValue="295,252" endValue="0,0" 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="-189,149" endValue="0,0" duration="7"/>
|
||||
</transition>
|
||||
<transition name="mopai4">
|
||||
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="82,243" duration="5"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue