Commit f674ef43 authored by huoshizhe's avatar huoshizhe

fix: 报错问题

parent d4883190
...@@ -5,6 +5,12 @@ ...@@ -5,6 +5,12 @@
/publish/publish/play /publish/publish/play
/publish/publish/form /publish/publish/form
/publish/publish/android /publish/publish/android
/publish/publish/web_desktop
/publish/publish/ios /publish/publish/ios
/publish/publish/*.zip /publish/publish/*.zip
/publish/publish/config.json
/publish/publish/Release*
/node_modules /node_modules
/play/build_android
/play/build_ios
/play/build_web_desktop
\ No newline at end of file
...@@ -115,17 +115,17 @@ cc.Class({ ...@@ -115,17 +115,17 @@ cc.Class({
getData(func) { getData(func) {
// if (window && window.courseware) { if (window && window.courseware) {
// window.courseware.getData(func, 'ww03'); window.courseware.getData(func, 'ww03');
// return; return;
// } }
// const middleLayer = cc.find('middleLayer'); const middleLayer = cc.find('middleLayer');
// if (middleLayer) { if (middleLayer) {
// const middleLayerComponent = middleLayer.getComponent('middleLayer'); const middleLayerComponent = middleLayer.getComponent('middleLayer');
// middleLayerComponent.getData(func); middleLayerComponent.getData(func);
// return; return;
// } }
func(this.getDefaultData()); func(this.getDefaultData());
}, },
...@@ -292,6 +292,7 @@ cc.Class({ ...@@ -292,6 +292,7 @@ cc.Class({
}, },
/** 左移动 */ /** 左移动 */
leftMove() { leftMove() {
this.stopAll();
this.stopAudio() this.stopAudio()
this._cantouch = false; this._cantouch = false;
let width = cc.winSize.width + 64 let width = cc.winSize.width + 64
...@@ -315,6 +316,7 @@ cc.Class({ ...@@ -315,6 +316,7 @@ cc.Class({
/** 右移动 */ /** 右移动 */
rightMove() { rightMove() {
this.stopAll();
this.stopAudio() this.stopAudio()
this._cantouch = false; this._cantouch = false;
let width = cc.winSize.width + 64 let width = cc.winSize.width + 64
...@@ -359,7 +361,9 @@ cc.Class({ ...@@ -359,7 +361,9 @@ cc.Class({
// ------------------------------------------ // ------------------------------------------
update() { update() {
if (this.data) {
this.pageNumNode.getChildByName("text").getComponent(cc.Label).string = (this.curPage % this.data.length + 1) + "/" + this.data.length this.pageNumNode.getChildByName("text").getComponent(cc.Label).string = (this.curPage % this.data.length + 1) + "/" + this.data.length
} }
}
}); });
//3.自动连读 //3.自动连读
\ No newline at end of file
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
}, },
"android": { "android": {
"sceneName": "Book_Read", "sceneName": "Book_Read",
"version": "c8307" "version": "45c64"
} }
} }
\ No newline at end of file
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