diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_EquipSingleSell.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_EquipSingleSell.lua index 8775026c4c..75fd095edc 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_EquipSingleSell.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_EquipSingleSell.lua @@ -79,10 +79,18 @@ function this:BindEvent() end end) Util.AddClick(this.addBtn,function() - this:SetCount(count + 1) + if count < selectEquipTreasureData.num then + this:SetCount(count + 1) + else + PopupTipPanel.ShowTip("已到达最大数量!") + end end) Util.AddClick(this.reduceBtn,function() - this:SetCount(count - 1) + if count > 1 then + this:SetCount(count - 1) + else + PopupTipPanel.ShowTip("已到达最小数量!") + end end) end