|
@@ -99,7 +99,7 @@ bool IAPCtlShopUI::create(Node* pNode, IAPConf* cfg, iap::ShopRequirement& requi
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
-void IAPCtlShopUI::displayFailureCardIn(cocos2d::Node *pNode){
|
|
|
+void IAPCtlShopUI::displayFailureCardIn(cocos2d::Node *pNode, int stillNeedCoins){
|
|
|
clear();
|
|
|
|
|
|
IAPCardView::sDotCfg cfg;
|
|
@@ -125,6 +125,7 @@ void IAPCtlShopUI::displayFailureCardIn(cocos2d::Node *pNode){
|
|
|
cardView->setDelegate(cardViewDelegate);
|
|
|
|
|
|
for (const auto& goodInfo : _goodsInfo) {
|
|
|
+ if(goodInfo.getCoinNumber() < stillNeedCoins)continue;
|
|
|
auto item = IAPCtlShopItem::create(goodInfo, 1);
|
|
|
_failItems.push_back(item);
|
|
|
cardView->addCard(item);
|