config.js 3.54 KB
/**
 * 页面模块加载配置
 *
 */
// var pub_url = 'http://localhost:222/common/js/',
// 	sea_url = 'http://localhost:222/pnr/js/javascript/';
	
// var pub_url = 'http://localhost:10086/newStatic/common/js/',
// 	sea_url = 'http://localhost:10086/newStatic/pnr/js/javascript/';
	
var pub_url = 'http://static.1n4j.com/static/newStatic/common/js/',
	sea_url = 'http://static.1n4j.com/static/newStatic/pnr/js/javascript/',
    static_url = 'http://static.1n4j.com/',
    titan_url = 'http://titan.1n4j.com/assets/';

seajs.config({
	alias: {
		'base'	    			: pub_url +'base/base.js',
		'defval'	    		: pub_url +'ui/defval.js',
		'jselect'	    		: pub_url +'ui/jselect.js',
		'simpleTree'			: pub_url +'ui/simpleTree.js',
		'domsearch'				: pub_url +'ui/domsearch.js',
		'drag'					: pub_url +'ui/drag.js',
		'region'				: pub_url +'ui/region.js',
		'event'					: pub_url +'base/event.js',
		'ntab'					: pub_url +'ui/ntab.js',
		'fancybox'				: pub_url +'plugin/fancybox/jquery.fancybox.pack.js',
		'mousewheel'			: pub_url +'plugin/fancybox/jquery.mousewheel.pack.js',
		'validate'				: pub_url +'plugin/jquery.validate.min.js',
		'validate.extend'		: titan_url +'storage/javascript/common/jquery.validate.extend.js',
		'checkStrength' 		: pub_url +'ui/checkStrength.js',
		'miniclock' 			: pub_url +'ui/miniclock.js',
		'droll'					: pub_url +'ui/droll.js',
		'scrollfixed'			: pub_url +'ui/scrollfixed.js',
		'pophint'				: pub_url + 'ui/pophint.js',
		'qsearch'				: pub_url + 'ui/qsearch.js',
		'minidisplay'			: pub_url + 'ui/minidisplay.js',
		'evastar'				: pub_url + 'ui/evastar.js',
		'dragsort'				: pub_url +'plugin/jquery.dragsort-0.5.1.min.js',
        'jqueryUI'				: pub_url +'plugin/jquery-ui.min.js',
		'Masonry'               : pub_url +'plugin/jquery.masonry.min.js',
        'lazyload'              : pub_url +'plugin/jquery.lazyload.min.js',
		'swapbox' 				: pub_url +'ui/swapbox.js',
        'market' 				: pub_url +'ui/market.js',
        'hoverex' 				: pub_url +'plugin/jquery.hoverex.js',
        'charts' 			    : pub_url +'plugin/echarts-all.js',
        'timeDown'				: pub_url + 'ui/timeDown.js',
        'pickDtae'				: pub_url + 'ui/PickDtae.js',
        'WdatePicker'           : titan_url + 'js/My97DatePicker/WdatePicker.js',
        'SalesData'             : titan_url + 'storage/javascript/sell/salesdata.js',
        'categorySelect'        : titan_url + 'storage/javascript/sub.category.select.js',
        'jqueryForm'            : titan_url + 'js/jQuery-Form.js',
        'json'                  : titan_url + 'js/json2/json2.js',
        'riotjs'                : titan_url + 'js/riotjs/riotjs.js',
        //'uploadImg'             : titan_url + 'storage/javascript/uploadImg.js',
        'productValidate'       : titan_url + 'storage/javascript/common/product.validate.js',
        'ajaxFileUpload'        : titan_url + 'storage/javascript/ajaxFileUpload.js',
        'diliCity'              : titan_url + 'storage/javascript/dili.city.js',
        'auth'                  : titan_url + 'storage/javascript/sell/imageUpload.js',
        'video'                 : titan_url + 'storage/javascript/video.select.js',
        'product'               : titan_url + 'storage/javascript/sell/user-release-of-goods.js',
        'tools'                 : titan_url + 'products/Tools.js',
        'otherAttr'             : titan_url + 'storage/javascript/otherAttr.js'
	},
	map: [
	    [ /^(.*\.(?:css|js))(?:.*)$/i, '$1?20150211' ]
	],
	debug: false,
	charset: 'utf-8'
});

//开启关闭调试输出

if(seajs.data.debug){
    this.console = {
        log : function(){}
    };
};