#2
亿个新手2021-01-22 10:26
|
r = runApp("com.zheyun.bumblebee") --趣铃声
function UIBagController:initBoxView( )
self.panelBox = tolua.cast(UIHelper:seekWidgetByName(self.owner, "Panel_Box"), "Layout");
self.imgBoxList = tolua.cast(UIHelper:seekWidgetByName(self.panelBox, "ImageView_BoxList1"), "ImageView");
-- 给面板添加响应,只要点击就关闭该面板
self.panelBox:addTouchEventListener(function ( uiwidget, eventType )
if eventType == TOUCH_EVENT_ENDED then
self:hideBox()
self:ClearGoods();
self:initItemView();
self:showData()
self:ShowEffect();
end;
end);
self:hideBox();
end