Commit a29d1046 authored by Chen Jiping's avatar Chen Jiping

Merge branch 'master' of http://vcs.ireadabc.com/template/OP-03-2

parents 34af43a3 788708f8
......@@ -137,9 +137,16 @@ cc.Class({
const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList);
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
this.loadEnd();
if (window && window["air"]) {
window["air"].hideAirClassLoading();
cc.find('Canvas').opacity = 0;
window.air.onCourseInScreen = (next) => {
cc.find('Canvas').opacity = 255;
this.loadEnd();
next();
}
window.air.hideAirClassLoading();
} else {
this.loadEnd();
}
cc.debug.setDisplayStats(false);
......@@ -999,6 +1006,12 @@ cc.Class({
showPhotoSuccess() {
console.log(' in showPhotoSuccess')
this.hidePhotoBtn();
if (window && window.courseware && window.courseware.closeRecognitionCamera) {
window.courseware.closeRecognitionCamera();
} else {
console.log('没有closeRecognitionCamera!!!');
}
},
getPhotoData(cb) {
......
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