-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathapp.js
More file actions
26 lines (22 loc) · 725 Bytes
/
app.js
File metadata and controls
26 lines (22 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
var mvcApp = require('mvcApp.js');
var Application = require('_core/Application.js');
function MvcApplication() {
Application.call(this);
this.initUrl = 'https://www.somdomain.com/api/client-config/get?key=wx_applet_wframe';
this.host = 'http://localhost:18007';
this.confgis = {
host: 'http://localhost:18007',
cdn: 'https://images.local-dev.cdn.somedomain.com'
};
this.mock = true;
this.accessToken = null;
this.useDefaultConfigsOnInitFailed = false;
};
MvcApplication.prototype = new Application();
MvcApplication.prototype.onInitialized = function (configs) {
if (configs != null && configs !== '') {
this.configs = JSON.parse(configs);
this.host = this.configs.host;
}
};
App(new MvcApplication());