Commit 88db8a28 authored by liujiangnan's avatar liujiangnan

feat: 屏蔽往回返的按钮

parent 719a7288
...@@ -322,7 +322,7 @@ cc.Class({ ...@@ -322,7 +322,7 @@ cc.Class({
if (this.courseIndex == 0) { if (this.courseIndex == 0) {
cc.find('middleLayer/BtnLeft').active = false; cc.find('middleLayer/BtnLeft').active = false;
} else { } else {
cc.find('middleLayer/BtnLeft').active = true; cc.find('middleLayer/BtnLeft').active = false;
} }
if (this.courseIndex == this.courses.length - 1) { if (this.courseIndex == this.courses.length - 1) {
cc.find('middleLayer/BtnRight').active = false; cc.find('middleLayer/BtnRight').active = false;
...@@ -384,7 +384,7 @@ cc.Class({ ...@@ -384,7 +384,7 @@ cc.Class({
cc.find('middleLayer/BtnRight').active = true; cc.find('middleLayer/BtnRight').active = true;
} }
if (this.courseIndex > 0) { if (this.courseIndex > 0) {
cc.find('middleLayer/BtnLeft').active = true; cc.find('middleLayer/BtnLeft').active = false;
} }
this.reWriteAir(); this.reWriteAir();
this.loadPageBundle(); this.loadPageBundle();
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 84, "width": 171,
"height": 64, "height": 146,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"Btn": { "Btn": {
......
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