Commit f8ab5040 authored by liujiangnan's avatar liujiangnan

feat: 渐进DEMO

parent 66a31001
...@@ -348,7 +348,7 @@ export function initAir(_this) { ...@@ -348,7 +348,7 @@ export function initAir(_this) {
} else { } else {
console.error(`非源生环境,网页版不支持${method}方法,将返回此方法的Mock数据以便于网页版调试使用`); console.error(`非源生环境,网页版不支持${method}方法,将返回此方法的Mock数据以便于网页版调试使用`);
if(method == 'getEngineInfo'){ if(method == 'getEngineInfo'){
window.air.getEngineInfoCallback({isDev: 0, uuid: 'debug-xxxxxx-xxxxxx'}); window.air.getEngineInfoCallback({isDev: 1, uuid: 'debug-xxxxxx-xxxxxx'});
} else if (method == 'startTest') { } else if (method == 'startTest') {
} else if (method == 'stopTest') { } else if (method == 'stopTest') {
window.air.testCallBack(testMockData); window.air.testCallBack(testMockData);
......
...@@ -481,7 +481,34 @@ export default class NewClass extends middleLayerBase { ...@@ -481,7 +481,34 @@ export default class NewClass extends middleLayerBase {
}); });
} }
jjDemo() {
cc.find('middleLayer/ui/jjdemo/goDebug').on('click', () => {
cc.find(`middleLayer/ui/jjdemo`).active = false;
});
cc.find('middleLayer/ui/jjdemo/ox').on('click', () => {
this.hideUI();
this.loadOnlineCourseWare(27333, false, null);
});
cc.find('middleLayer/ui/jjdemo/pp').on('click', () => {
cc.find('middleLayer/ui/jjdemo/web').active = true;
cc.find('middleLayer/ui/jjdemo/webBar').active = true;
});
cc.find('middleLayer/ui/jjdemo/webBar/btnLeft').on('click', () => {
cc.find('middleLayer/ui/jjdemo/web').active = false;
cc.find('middleLayer/ui/jjdemo/webBar').active = false;
});
cc.find('middleLayer/ui/jjdemo/faf').on('click', () => {
this.hideUI();
this.loadOnlineCourseWare(28089, false, null);
});
}
initListener() { initListener() {
// 剑津DEMO
this.jjDemo();
const exitBtn = cc.find('middleLayer/ExitBtn'); const exitBtn = cc.find('middleLayer/ExitBtn');
exitBtn.on('click', () => { exitBtn.on('click', () => {
cc.find('middleLayer/BtnRight').active = false; cc.find('middleLayer/BtnRight').active = false;
...@@ -611,6 +638,8 @@ export default class NewClass extends middleLayerBase { ...@@ -611,6 +638,8 @@ export default class NewClass extends middleLayerBase {
}); });
}); });
const BtnStartLocal = cc.find('middleLayer/ui/BtnStartLocal'); const BtnStartLocal = cc.find('middleLayer/ui/BtnStartLocal');
BtnStartLocal.on('click', () => { BtnStartLocal.on('click', () => {
const addressText = cc.find('middleLayer/ui/address'); const addressText = cc.find('middleLayer/ui/address');
......
{
"ver": "2.3.5",
"uuid": "10ca361e-841b-49b4-a819-32c36b6e7a5d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 365,
"height": 227,
"platformSettings": {},
"subMetas": {
"faf": {
"ver": "1.0.4",
"uuid": "1f682525-7a57-498f-b98e-9315ce72fb4c",
"rawTextureUuid": "10ca361e-841b-49b4-a819-32c36b6e7a5d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetY": 0.5,
"trimX": 28,
"trimY": 3,
"width": 307,
"height": 220,
"rawWidth": 365,
"rawHeight": 227,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5d092583-c5d9-44f6-bf85-40467c92c0ee",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 1081,
"platformSettings": {},
"subMetas": {
"jjdemo": {
"ver": "1.0.4",
"uuid": "6f468c07-6570-454d-851f-630797c114c7",
"rawTextureUuid": "5d092583-c5d9-44f6-bf85-40467c92c0ee",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 1081,
"rawWidth": 1920,
"rawHeight": 1081,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e603f4de-fbed-4642-a746-b764b020bccc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 365,
"height": 365,
"platformSettings": {},
"subMetas": {
"ox": {
"ver": "1.0.4",
"uuid": "f4b94424-9bca-4567-ab4f-6057f693bfb3",
"rawTextureUuid": "e603f4de-fbed-4642-a746-b764b020bccc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 365,
"height": 365,
"rawWidth": 365,
"rawHeight": 365,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "52c2ddd7-d911-4b08-8636-593a4eaafdcc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 365,
"height": 203,
"platformSettings": {},
"subMetas": {
"pp": {
"ver": "1.0.4",
"uuid": "949a1173-b240-4710-96e0-f03333dff7d5",
"rawTextureUuid": "52c2ddd7-d911-4b08-8636-593a4eaafdcc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 365,
"height": 203,
"rawWidth": 365,
"rawHeight": 203,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ 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