config.js
1.41 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* 页面模块加载配置
*
*/
// var pub_url = 'http://10.28.2.144:222/common/js/',
// sea_url = 'http://10.28.2.144:777/js/javascript/';
// var pub_url = 'http://static.nong12.com/static/newStatic/common/js/',
// sea_url = 'http://10.28.2.89:10086/pnrWap/js/javascript/';
var pub_url = 'http://static.nong12.com/static/newStatic/common/js/',
sea_url = 'http://static.nong12.com/static/newStatic/pnrWap/js/javascript/';
var _version = window.GLOBAL && window.GLOBAL.version ? window.GLOBAL.version : '?'+( new Date() ).getTime(); //版本号
seajs.config({
alias: {
'base' : pub_url +'base/base.js',
'domsearch' : pub_url +'ui/domsearch.js',
'underscore' : pub_url +'plugin/underscore/underscore-min.js',
'swipe' : sea_url +'common/swipe.js',
'tools' : sea_url +'common/Tools.js',
'alert' : sea_url +'common/Alert.js',
'validate' : sea_url +'common/Validate.js',
'datepicker' : sea_url +'common/datepicker.js',
'mcity' : sea_url +'common/mcity.js',
'highcharts' : pub_url +'plugin/highcharts.js',
'imguploader' : pub_url +'ui/imguploader.js'
},
map: [
[ /^(.*\.(?:css|js))(?:.*)$/i, '$1'+_version ]
],
debug: false,
charset: 'utf-8'
});
//开启关闭调试输出
if(seajs.data.debug){
this.console = {
log : function(){}
};
};