开始商店 脚本和ui
This commit is contained in:
@@ -36,15 +36,13 @@ export class MissionHomeComp extends CCComp {
|
||||
oops.message.dispatchEvent(GameEvent.UpdateHero, {})
|
||||
}
|
||||
uodate_data(){
|
||||
smc.syncData()
|
||||
|
||||
}
|
||||
isWxClient(){
|
||||
return typeof wx !== 'undefined' && typeof (wx as any).getSystemInfoSync === 'function';
|
||||
}
|
||||
btn_func(e:string,data:any){
|
||||
if(!this.isWxClient()){
|
||||
smc.syncDataFromLocal() //调试用,正式环境去掉
|
||||
}
|
||||
|
||||
// console.log("[MissionHomeComp]:btn_func",e,data)
|
||||
let page_heros=this.node.getChildByName("heros_page")
|
||||
let page_shop=this.node.getChildByName("shop_page")
|
||||
|
||||
Reference in New Issue
Block a user