config.js
1.81 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
44
45
46
47
48
49
50
51
52
53
54
/**
* 页面模块加载配置
*
*/
//var pub_url = 'http://10.28.2.35:222/common/js/',
// sea_url = 'http://10.28.2.35:777/js/javascript/';
// var pub_url = 'http://static.nong12.com/static/newStatic/common/js/',
// sea_url = 'http://10.28.2.204:10086/pnrwap/js/javascript/';
var pub_url = 'http://static.nong12.com/static/source/components/js/',
sea_url = 'http://static.nong12.com/static/source/static-wappnr/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',
'http' : sea_url +'common/Httpclient.js'
},
map: [
[ /^(.*\.(?:css|js))(?:.*)$/i, '$1'+_version ]
],
debug: false,
charset: 'utf-8'
});
//开启关闭调试输出
if(seajs.data.debug){
this.console = {
log : function(){}
};
};
window.confirm = function(message){ //去除IOS UIAlertView 弹出框链接地址
var iframe = document.createElement("IFRAME");
iframe.setAttribute("src", 'data:text/plain,');
document.documentElement.appendChild(iframe);
var rtn = window.frames[0].window.confirm(message);
iframe.parentNode.removeChild(iframe);
return rtn;
};