diff --git a/lua_probject/base_project/Game/View/NewGroup/MngView/GroupMngPartnerStatViewAlone.lua b/lua_probject/base_project/Game/View/NewGroup/MngView/GroupMngPartnerStatViewAlone.lua index 7576b066..19c2f61b 100644 --- a/lua_probject/base_project/Game/View/NewGroup/MngView/GroupMngPartnerStatViewAlone.lua +++ b/lua_probject/base_project/Game/View/NewGroup/MngView/GroupMngPartnerStatViewAlone.lua @@ -164,7 +164,45 @@ function M:InitView() self.lst_record = nil self.lst_record = self._view:GetChild("lst_record") self.record_data = {} - self:GetRecordData(0) + print("lingmeng search", self._view:GetController('search').selectedIndex) + if self._view:GetController('search').selectedIndex == 1 then + ViewUtil.ShowModalWait(nil) + local text = self._view:GetChild('tex_id').text + local qid, qnick + if text == "" then + ViewUtil.CloseModalWait() + ViewUtil.ErrorTip(nil, '输入不能为空') + return + end + qid = tonumber(text) or 0 + qnick = text + local time_type = self._view:GetController("type").selectedIndex + if self.begin_time ~= nil and self.end_time ~= nil then + time_type = 0 + end + local fgCtr = ControllerManager.GetController(NewGroupController) + fgCtr:FG_FindPartnerStat( + self.group_id, + qid, 0, 6, time_type, self.begin_time, self.end_time, + function(res) + -- printlog("aaaaaaaaaaaaaaaa22222222222222222222222222222") + -- pt(res) + ViewUtil.CloseModalWait() + if self._is_destroy then + return + end + if res.ReturnCode ~= 0 then + ViewUtil.ErrorTip(res.ReturnCode, '找不到成员') + else + self.item_result = self._view:GetChild('lst_member_find') + self.item_result:RemoveChildren() + self:NewRecordTableFind(res.Data.members[1]) + end + end + ) + else + self:GetRecordData(0) + end end, true) self.begin_time, self.end_time = self.time_panel:GetDate() local ctr_page = self._view:GetController("type") @@ -226,7 +264,6 @@ function M:InitView() if res.ReturnCode ~= 0 then ViewUtil.ErrorTip(res.ReturnCode, '找不到成员') else - self._view:GetChild('tex_id').text = '' ctr_search.selectedIndex = 1 self.item_result = self._view:GetChild('lst_member_find') self.item_result:RemoveChildren() @@ -237,12 +274,15 @@ function M:InitView() end ) - -- local btn_back = self._view:GetChild('btn_back') - -- btn_back.onClick:Set( - -- function() - -- self.lst_record.numItems = #self.record_data - -- end - -- ) + local btn_back = self._view:GetChild('btn_back') + btn_back.onClick:Set( + function() + self._view:GetChild('tex_id').text = "" + if #self.record_total_data == 0 then + self:GetRecordData(0) + end + end + ) end function M:GetRecordData(index) diff --git a/lua_probject/extend_project/extend/zipai/fanpaofa/EXMainView.lua b/lua_probject/extend_project/extend/zipai/fanpaofa/EXMainView.lua index 68ef6312..9286c6b5 100644 --- a/lua_probject/extend_project/extend/zipai/fanpaofa/EXMainView.lua +++ b/lua_probject/extend_project/extend/zipai/fanpaofa/EXMainView.lua @@ -748,9 +748,11 @@ function M:__FangziTip(tip, _uid, fptype) local btn_t = _lit_fanzi:AddItemFromPool(url) btn_t.icon = 'ui://Main_RunBeard/newop_' .. td.type btn_t.data = { tip, td, tip_hu } - btn_t.onClick:Set(self.__TipAction, self) + -- btn_t.onClick:Set(self.__TipAction, self) end + _lit_fanzi.onClickItem:Set(self.__TipAction, self) + if p.hand_left_count ~= 0 then local _btn_pass = _lit_fanzi:AddItemFromPool('ui://Main_RunBeard/Btn_pass_new') _btn_pass.onClick:Set( @@ -789,7 +791,8 @@ function M:__FangziTip(tip, _uid, fptype) end function M:__TipAction(context) - local data = context.sender.data + pt(context) + local data = context.data.data local _gamectr = self._gamectr local tip = data[1] local td = data[2] diff --git a/wb_new_ui/assets/Main_RunBeard/component/chi_peng_effect/Btn_pass_new.xml b/wb_new_ui/assets/Main_RunBeard/component/chi_peng_effect/Btn_pass_new.xml index 881c95c3..380f364c 100644 --- a/wb_new_ui/assets/Main_RunBeard/component/chi_peng_effect/Btn_pass_new.xml +++ b/wb_new_ui/assets/Main_RunBeard/component/chi_peng_effect/Btn_pass_new.xml @@ -1,8 +1,8 @@ - + - + -