master
罗家炜 2025-05-22 18:14:21 +08:00
parent 59c3cb9659
commit 3fc753c4fd
6 changed files with 32 additions and 31 deletions

View File

@ -178,6 +178,8 @@ function M:UpdateFamilyRoom(fgCtr, id)
} }
end end
local roomList = self._group.rooms local roomList = self._group.rooms
print("lingmengroomList")
pt(roomList)
local roomCtr = ControllerManager.GetController(RoomController) local roomCtr = ControllerManager.GetController(RoomController)
list_room.itemRenderer = function(index, obj) list_room.itemRenderer = function(index, obj)
if index < #roomList then if index < #roomList then

View File

@ -3,10 +3,10 @@
local LobbyAuthenticateView = {} local LobbyAuthenticateView = {}
local M = LobbyAuthenticateView local M = LobbyAuthenticateView
setmetatable(M, {__index = BaseWindow}) setmetatable(M, { __index = BaseWindow })
function LobbyAuthenticateView.new() function LobbyAuthenticateView.new()
local self = setmetatable({}, {__index = M}) local self = setmetatable({}, { __index = M })
self.class = 'AuthenticateView' self.class = 'AuthenticateView'
self._close_destroy = true self._close_destroy = true
--假效果 --假效果
@ -48,27 +48,22 @@ function M:init(url)
local btn_send = view:GetChild('btn_send') local btn_send = view:GetChild('btn_send')
btn_send.onClick:Set(function() btn_send.onClick:Set(function()
if false then local _data = {}
--发送身份证 _data.type = 6
_data.real_info = {}
_data.real_info.name = input_name.text
_data.real_info.ID = input_idInfo.text
local loddyctr = ControllerManager.GetController(LoddyController)
loddyctr:UpdateUserInfo(_data, function(res)
if res.ReturnCode ~= 0 then
ViewUtil.ErrorTip(res.ReturnCode, "实名认证失败")
else else
--假发送 pt(res)
ViewUtil.ShowModalWait(self._root_view,"正在验证身份证...") ViewUtil.ShowOneChooose("实名认证成功")
coroutine.start(function() self:Destroy()
coroutine.wait(3)
ViewUtil.CloseModalWait()
self.authenticate = 1
self.authenticateName=input_name.text
self.authenticateId=input_idInfo.text
input_name.grayed = true
input_name.touchable=false
input_idInfo.grayed = true
input_idInfo.touchable=false
ViewUtil.ShowBannerOnScreenCenter("验证身份证成功")
end)
end end
end) end)
end)
end end
return M return M

View File

@ -73,8 +73,7 @@ function M:init(url)
if cnt > 0 then if cnt > 0 then
ViewUtil.ShowOneChooose( ViewUtil.ShowOneChooose(
string.format("确定要修改%s%s%s吗", cnt % 2 == 1 and "昵称" or "", cnt == 3 and "" or "", string.format("确定要修改%s%s%s吗", cnt % 2 == 1 and "昵称" or "", cnt == 3 and "" or "",
cnt >= 2 and "性别" or ""), cnt >= 2 and "性别" or ""), 1, function()
1, function()
type.selectedIndex = 0 type.selectedIndex = 0
end) end)
else else

View File

@ -19,7 +19,14 @@ function M:init(url)
local view = self._view local view = self._view
local LbC = ControllerManager.GetCurrenController() local loddyCtr1 = ControllerManager.GetController(LoddyController)
loddyCtr1:RequestRecordList(function(res)
if res ~= 0 then
ViewUtil.ErrorTip(res.ReturnCode, "获取战绩失败")
else
pt(loddyCtr1.recordList)
end
end)
end end
return M return M

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="1500,876" bgColor="#f8f4ea"> <component size="1500,876" bgColor="#f8f4ea">
<controller name="type" pages="0,show,1,change" selected="1"/> <controller name="type" pages="0,show,1,change" selected="0"/>
<controller name="group_sex" pages="0,women,1,men" selected="0"/> <controller name="group_sex" pages="0,women,1,men" selected="0"/>
<controller name="bind" pages="0,no,1,yes" selected="0"/> <controller name="bind" pages="0,no,1,yes" selected="0"/>
<displayList> <displayList>
@ -13,7 +13,7 @@
<graph id="n10_in3i" name="n10" xy="171,237" size="438,438" group="n14_in3i" type="rect" lineColor="#ff804b2e" fillColor="#ffe0a94f" corner="42"/> <graph id="n10_in3i" name="n10" xy="171,237" size="438,438" group="n14_in3i" type="rect" lineColor="#ff804b2e" fillColor="#ffe0a94f" corner="42"/>
<graph id="n12_in3i" name="n12" xy="189,255" size="402,402" group="n14_in3i" type="rect" lineColor="#ff804b2e" fillColor="#00ffffff" corner="42"/> <graph id="n12_in3i" name="n12" xy="189,255" size="402,402" group="n14_in3i" type="rect" lineColor="#ff804b2e" fillColor="#00ffffff" corner="42"/>
<component id="n51_in3i" name="btn_PlayerHead" src="in3i7ctv" fileName="component/PlayerInfo/Component/btn_PlayerHead.xml" xy="189,255" group="n14_in3i"/> <component id="n51_in3i" name="btn_PlayerHead" src="in3i7ctv" fileName="component/PlayerInfo/Component/btn_PlayerHead.xml" xy="189,255" group="n14_in3i"/>
<component id="n15_in3i" name="btn_headChange" src="in3i7ctq" fileName="component/PlayerInfo/Component/btn_headChange.xml" xy="489,558" group="n14_in3i"> <component id="n15_in3i" name="btn_headChange" src="in3i7ctq" fileName="component/PlayerInfo/Component/btn_headChange.xml" xy="489,558" group="n14_in3i" touchable="false">
<gearDisplay controller="type" pages="1"/> <gearDisplay controller="type" pages="1"/>
<gearLook controller="type" pages="0,1" values="1,0,0,0|1,0,0,1"/> <gearLook controller="type" pages="0,1" values="1,0,0,0|1,0,0,1"/>
</component> </component>
@ -22,10 +22,8 @@
<text id="n18_in3i" name="n18" xy="750,322" size="130,64" group="n27_in3i" font="SimHei" fontSize="48" color="#61270f" letterSpacing="3" text="性别:"/> <text id="n18_in3i" name="n18" xy="750,322" size="130,64" group="n27_in3i" font="SimHei" fontSize="48" color="#61270f" letterSpacing="3" text="性别:"/>
<text id="n19_in3i" name="sex" xy="889,322" size="52,64" group="n27_in3i" font="SimHei" fontSize="48" color="#61270f" letterSpacing="3" text="男"/> <text id="n19_in3i" name="sex" xy="889,322" size="52,64" group="n27_in3i" font="SimHei" fontSize="48" color="#61270f" letterSpacing="3" text="男"/>
<text id="n24_in3i" name="n24" xy="750,592" size="130,64" group="n27_in3i" font="SimHei" fontSize="48" color="#61270f" letterSpacing="3" text="手机:"/> <text id="n24_in3i" name="n24" xy="750,592" size="130,64" group="n27_in3i" font="SimHei" fontSize="48" color="#61270f" letterSpacing="3" text="手机:"/>
<text id="n25_in3i" name="phone" xy="896,596" size="263,56" group="n27_in3i" font="SimHei" fontSize="42" color="#61270f" align="center" letterSpacing="3" text="12345678945"/> <text id="n25_in3i" name="phone" xy="896,596" size="265,56" group="n27_in3i" font="SimHei" fontSize="42" color="#61270f" align="center" letterSpacing="3" text="12345678945"/>
<component id="n26_in3i" name="btn_changeInfo" src="in3i7ctf" fileName="component/PlayerInfo/Component/btn_changeInfo.xml" xy="750,687" group="n27_in3i"> <component id="n26_in3i" name="btn_changeInfo" src="in3i7ctf" fileName="component/PlayerInfo/Component/btn_changeInfo.xml" xy="750,687" group="n27_in3i"/>
<Button controller="type" page="1"/>
</component>
<text id="n20_in3i" name="n20" xy="750,412" size="130,64" group="n27_in3i" font="SimHei" fontSize="48" color="#61270f" letterSpacing="3" text="编号:"/> <text id="n20_in3i" name="n20" xy="750,412" size="130,64" group="n27_in3i" font="SimHei" fontSize="48" color="#61270f" letterSpacing="3" text="编号:"/>
<text id="n21_in3i" name="id" xy="891,412" size="163,64" group="n27_in3i" font="SimHei" fontSize="48" color="#61270f" align="center" letterSpacing="3" text="123123"/> <text id="n21_in3i" name="id" xy="891,412" size="163,64" group="n27_in3i" font="SimHei" fontSize="48" color="#61270f" align="center" letterSpacing="3" text="123123"/>
<text id="n22_in3i" name="n22" xy="750,502" size="130,64" group="n27_in3i" font="SimHei" fontSize="48" color="#61270f" letterSpacing="3" text="房卡:"/> <text id="n22_in3i" name="n22" xy="750,502" size="130,64" group="n27_in3i" font="SimHei" fontSize="48" color="#61270f" letterSpacing="3" text="房卡:"/>