diff --git a/lua_probject/main_project/main/majiang/MJPlayerCardInfoView_jiangxi.lua b/lua_probject/main_project/main/majiang/MJPlayerCardInfoView_jiangxi.lua index dfbbfec3..f7fab35a 100644 --- a/lua_probject/main_project/main/majiang/MJPlayerCardInfoView_jiangxi.lua +++ b/lua_probject/main_project/main/majiang/MJPlayerCardInfoView_jiangxi.lua @@ -28,22 +28,16 @@ function M.new(view, mainView) end function M:init() - - - local CardInfo = self._view:GetChild('Text_CardInfo') - self._viewText_cardInfo = json.decode(CardInfo.text) - local CardInfo = self._view:GetChild('Text_CardInfo') self._viewText_cardInfo = json.decode(CardInfo.text) self._view_handCardList = self._view:GetChild('List_HandCard') self._view_FZList = self._view:GetChild('List_FZ') self._view_outCardList = self._view:GetChild('List_OutCard') - self._viewBtn_getCard = self._view:GetChild('Btn_HandCard') + self._view_getCard = self._view:GetChild('Btn_HandCard') self._ctr_getCard = self._view:GetController('getCard') self._ctr_seletedGet = self._view:GetController('seletedGetCard') - end function M:SetPlayer(p) @@ -92,7 +86,6 @@ function M:Clear() self._view_handCardList.selectedIndex = -1 self._click_index = self._view_handCardList.selectedIndex self._ctr_seletedGet.selectedIndex = 0 - end -- 获取麻将资源前缀 @@ -121,7 +114,6 @@ function M:fillCard2(obj, pos_str, card) obj:GetChild("icon").url = 'ui://Main_Majiang/' .. pos_str .. card - end function M:getBackCard(card) @@ -231,8 +223,6 @@ local function getPos(my_seat, other_seat, total) end function M:UpdateFzList(fz, index, show_card) - - local fz_list = self._mask_data['fz_list'] local FZame = self._viewText_cardInfo['FZ_Card'] index = index or 0 diff --git a/lua_probject/main_project/main/majiang/MJPlayerSelfCardInfoView_jiangxi.lua b/lua_probject/main_project/main/majiang/MJPlayerSelfCardInfoView_jiangxi.lua index 709ab8e3..23091bc5 100644 --- a/lua_probject/main_project/main/majiang/MJPlayerSelfCardInfoView_jiangxi.lua +++ b/lua_probject/main_project/main/majiang/MJPlayerSelfCardInfoView_jiangxi.lua @@ -50,7 +50,7 @@ function M:UpdateHandCard(getcard, mp) if self._view_handCardList.numItems > 0 then self._view_handCardList:RemoveChildren() end - if self._view_handCardList.numItems > 0 then + if self._view_getCard.numItems > 0 then self._view_getCard:RemoveChildren() end