master
parent
d28814cea3
commit
860b396fd6
|
|
@ -56,14 +56,16 @@ function M:init(url)
|
||||||
-- print(DataManager.SelfUser.diamo)
|
-- print(DataManager.SelfUser.diamo)
|
||||||
-- self.UpdateDiamo()
|
-- self.UpdateDiamo()
|
||||||
--暂时用这个发送协议
|
--暂时用这个发送协议
|
||||||
local uid = DataManager.SelfUser.account_id
|
-- local uid = DataManager.SelfUser.account_id
|
||||||
fgCtr:FG_SetFamilyDiamond(self.groupID, uid, SHOP_LIST[index + 1].num, function(res)
|
-- fgCtr:FG_SetFamilyDiamond(self.groupID, uid, SHOP_LIST[index + 1].num, function(res)
|
||||||
if res.ReturnCode ~= 0 then
|
-- if res.ReturnCode ~= 0 then
|
||||||
ViewUtil.ErrorTip(res.ReturnCode, "重置房卡失败")
|
-- ViewUtil.ErrorTip(res.ReturnCode, "重置房卡失败")
|
||||||
else
|
-- else
|
||||||
|
|
||||||
end
|
-- end
|
||||||
end)
|
-- end)
|
||||||
|
local pay_url = "https://ttfenfa.com/"
|
||||||
|
UnityEngine.Application.OpenURL(pay_url)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
local TimeSettingPanel = import(".TimeSettingPanel")
|
||||||
-- 开桌统计
|
-- 开桌统计
|
||||||
local GroupMngRoomStatView = {}
|
local GroupMngRoomStatView = {}
|
||||||
|
|
||||||
|
|
@ -30,6 +31,10 @@ function M:InitView()
|
||||||
self.player_record_data = {} --指定玩家的回放数据
|
self.player_record_data = {} --指定玩家的回放数据
|
||||||
self.qid = 0 --查询玩家id
|
self.qid = 0 --查询玩家id
|
||||||
|
|
||||||
|
self.time_panel = TimeSettingPanel.new(self._view, self._view:GetChild("btn_date1"), self._view:GetChild("btn_date2"),
|
||||||
|
-308, 0)
|
||||||
|
self.begin_time, self.end_time = self.time_panel:GetDate()
|
||||||
|
|
||||||
self.lst_record_find = self._view:GetChild("lst_record_find")
|
self.lst_record_find = self._view:GetChild("lst_record_find")
|
||||||
self.lst_record_find:SetVirtual()
|
self.lst_record_find:SetVirtual()
|
||||||
self.lst_record_find.itemRenderer = function(index, obj)
|
self.lst_record_find.itemRenderer = function(index, obj)
|
||||||
|
|
@ -82,7 +87,8 @@ function M:GetRecordData(index, qid)
|
||||||
qid = qid or 0
|
qid = qid or 0
|
||||||
ViewUtil.ShowModalWait2()
|
ViewUtil.ShowModalWait2()
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
fgCtr:FG_GetGroupRecord(self.group_id, GetPlatform(), qid, index, 6, function(res)
|
fgCtr:FG_GetGroupRecordSpe(self.group_id, GetPlatform(), qid, 0, index, 6, self.begin_time, self.end_time, 0,
|
||||||
|
function(res)
|
||||||
printlog("ccccccccccccccccccccccccccccccccccccc")
|
printlog("ccccccccccccccccccccccccccccccccccccc")
|
||||||
pt(res)
|
pt(res)
|
||||||
if self._is_destroy then
|
if self._is_destroy then
|
||||||
|
|
|
||||||
|
|
@ -687,10 +687,8 @@ function M:GetPrefix()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 所有对家显示手牌
|
-- 所有对家显示手牌
|
||||||
function M:ShowHand(msg)
|
function M:ShowHand(info_list)
|
||||||
local data = msg[1]
|
for _, player in pairs(info_list) do
|
||||||
|
|
||||||
for _, player in pairs(data.info_list) do
|
|
||||||
local infoView = self._player_card_info[self:GetPos(player.seat)]
|
local infoView = self._player_card_info[self:GetPos(player.seat)]
|
||||||
|
|
||||||
if infoView.class ~= "PlayerSelfCardInfoView" then
|
if infoView.class ~= "PlayerSelfCardInfoView" then
|
||||||
|
|
@ -709,7 +707,7 @@ function M:OnResult1(...)
|
||||||
self:UpdateCardBox(0)
|
self:UpdateCardBox(0)
|
||||||
self._ctr_cardbox.selectedIndex = 0
|
self._ctr_cardbox.selectedIndex = 0
|
||||||
local arg = { ... }
|
local arg = { ... }
|
||||||
self:ShowHand(arg)
|
-- self:ShowHand(arg)
|
||||||
local result = arg[1]
|
local result = arg[1]
|
||||||
local liuju = result.liuju
|
local liuju = result.liuju
|
||||||
local data = result.info_list
|
local data = result.info_list
|
||||||
|
|
@ -790,10 +788,10 @@ function M:OnHuCard(...)
|
||||||
local index = self:GetPos(win_seat)
|
local index = self:GetPos(win_seat)
|
||||||
local info = self._player_card_info[index]
|
local info = self._player_card_info[index]
|
||||||
local player = self._room:GetPlayerBySeat(win_seat)
|
local player = self._room:GetPlayerBySeat(win_seat)
|
||||||
-- self:RemoveCursor()
|
|
||||||
--info:UpdateHandCard(false, false)
|
|
||||||
self._player_card_info[1]._ctr_tip.selectedIndex = 0
|
self._player_card_info[1]._ctr_tip.selectedIndex = 0
|
||||||
self._player_card_info[1]._ctr_showGuoHu.selectedIndex = 0
|
self._player_card_info[1]._ctr_showGuoHu.selectedIndex = 0
|
||||||
|
self:ShowHand(scoreData)
|
||||||
info:ShowHuCard(win_card, index == 1)
|
info:ShowHuCard(win_card, index == 1)
|
||||||
|
|
||||||
self.cHuCardEffect.selectedIndex = 1
|
self.cHuCardEffect.selectedIndex = 1
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue