Commit 11878fbb authored by liujiangnan's avatar liujiangnan

debug

parent b2460c41
...@@ -5546,7 +5546,7 @@ ...@@ -5546,7 +5546,7 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
129.145, 129.722,
-124.817, -124.817,
0, 0,
0, 0,
......
...@@ -555,11 +555,24 @@ export default class NewClass extends middleLayerBase { ...@@ -555,11 +555,24 @@ export default class NewClass extends middleLayerBase {
// "book_id": "opw1" // "book_id": "opw1"
// }); // });
const courseIdNode = cc.find('middleLayer/ui/courseId');
const str = courseIdNode.getComponent(cc.EditBox).string;
const arr = str.split(",");
const pms = {};
if (arr[0]!=undefined&&arr[0]!=null) {
pms["x"] = arr[0]
}
if (arr[1]!=undefined&&arr[1]!=null) {
pms["y"] = arr[1]
}
if (arr[2]!=undefined&&arr[2]!=null) {
pms["width"] = arr[2]
}
if (arr[3]!=undefined&&arr[3]!=null) {
pms["height"] = arr[3]
}
this.hideUI(); this.hideUI();
(<any>window).courseware.openRecognitionCamera({ (<any>window).courseware.openRecognitionCamera(pms, ()=>{
x: 0, y: 0,
// height: 8, width: 8
}, ()=>{
}); });
}); });
......
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