Commit f674ef43 authored by huoshizhe's avatar huoshizhe

fix: 报错问题

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