config.js 1.41 KB
/**
 * 页面模块加载配置
 *
 */
// 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(){}
    };
};