|
@@ -27,8 +27,11 @@ export class play_page_list_item extends Component {
|
|
|
console.log(config.get_play_type_name(this.m_data.id))
|
|
|
if (this.m_data.id === config.PLAY_TYPE.JI_YI_LI || this.m_data.id === config.PLAY_TYPE.DOU_DI_ZHU) {
|
|
|
if (gameManager.get_user_coin() >= this.m_data.consume_coin) {
|
|
|
- gameManager.sub_coin(this.m_data.consume_coin)
|
|
|
+ let string = `使用${this.m_data.consume_coin}金币\n解锁${this.m_data.name}游戏`
|
|
|
+ tools.showDialog(string, ()=> {
|
|
|
+ gameManager.sub_coin(this.m_data.consume_coin)
|
|
|
this.m_call_back(this.m_data);
|
|
|
+ }, null)
|
|
|
} else {
|
|
|
this.showViewLack()
|
|
|
}
|