Commit 04e0f8c7 authored by liujiangnan's avatar liujiangnan

feat: 弹出提示

parent 06fa9905
...@@ -237,6 +237,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -237,6 +237,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
const avatar_border = cc.find('Canvas/avatar_border'); const avatar_border = cc.find('Canvas/avatar_border');
buttonOnClick(avatar_border, async () => { buttonOnClick(avatar_border, async () => {
if (middleLayerComponent.isLogin == false) { if (middleLayerComponent.isLogin == false) {
// 游客
// 提示先登录后购买
middleLayerComponent.showConfirm("需要登录后才能使用,去登录吗?", ()=>{
middleLayerComponent.loadOnlineBundle('NJ_login');
});
return; return;
} }
cc.find('Canvas/userInfo').active = true; cc.find('Canvas/userInfo').active = true;
......
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