Commit 58705505 authored by liujiangnan's avatar liujiangnan

feat: 完成后的提示框

parent e1aeff76
......@@ -150,6 +150,37 @@ export default class NewClass extends middleLayerBase {
});
}
async showCourseEndConfirm() {
if (this.IS_BUNDLE_LOADING) {
return;
}
const tipsLayer = cc.find('middleLayer/courseEndConfirm');
tipsLayer.active = true;
const yesBtn = cc.find('middleLayer/courseEndConfirm/confirm_bg/btn_yes');
buttonOnceClick(yesBtn, (evt) => {
yesBtn.off("click");
noBtn.off("click");
closeBtn.off("click");
tipsLayer.active = false;
});
const noBtn = cc.find('middleLayer/courseEndConfirm/confirm_bg/btn_no');
buttonOnceClick(noBtn, (evt) => {
yesBtn.off("click");
noBtn.off("click");
closeBtn.off("click");
tipsLayer.active = false;
});
const closeBtn = cc.find('middleLayer/courseEndConfirm/confirm_bg/close');
buttonOnceClick(closeBtn, (evt) => {
yesBtn.off("click");
noBtn.off("click");
closeBtn.off("click");
tipsLayer.active = false;
});
}
hideBuyLoading() {
cc.find(`middleLayer/iosActiveLayer/buyloading`).active = false;
cc.find(`middleLayer/iosActiveLayer/buy_status_win`).active = false;
......
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