Commit b895b8b7 authored by Tt's avatar Tt

修改异常

parent c34ddeb4
This diff is collapsed.
...@@ -145,7 +145,7 @@ cc.Class({ ...@@ -145,7 +145,7 @@ cc.Class({
//数据解析 //数据解析
CardManager.getIns().initCards(this.data); CardManager.getIns().initCards(this.data);
CardManager.getIns().resetPageNum(); CardManager.getIns().resetPageNum();
CardManager.getIns().randomPageCards(); // CardManager.getIns().randomPageCards();
this._gameCode = 0; this._gameCode = 0;
}, },
//单局游戏 //单局游戏
...@@ -543,15 +543,16 @@ cc.Class({ ...@@ -543,15 +543,16 @@ cc.Class({
catChoice() { catChoice() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.playSFX("mao_choice").then(() => { this.playSFX("mao_choice").then(() => {
this.catNormal();
});
setTimeout(() => {
let items = this._cardLayout.children; let items = this._cardLayout.children;
let item = items.filter(it => { let item = items.filter(it => { return it.data.cardId == 0 })[0];
return it.data.cardId == 0 pg.view.visible(pg.view.find(item, 'box'), true);
})[0];
this._cantouch = true; this._cantouch = true;
this.onTouchItem({ target: item }).then(() => { this._successItems.push(item);
resolve(''); resolve('');
}) }, 300);
});
}); });
}, },
catFinish() { catFinish() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment