netsale-edit.js 857 Bytes
'use strict';
var $ = require('jquery'),
	common = require('../common/common');
require('../util/custom.js');
/*
 *	获取业务数据
 */
window.NETSALEDATA = require('./partials/data.js');

console.log(NETSALEDATA);

/*加载其他模块*/
// require('./partials/basic-info');
require('./partials/editor_recommend');

require('./partials/model');
require('./partials/search-key.js');
require('./partials/size-info.js');
require('./partials/goods-sort.js')
require('./partials/video.js')



// var e = new common.edit('#basicForm');
// e.init();

// common.edit.ajaxfileupload('.goods-img', {
// 	action: '/ajax/upload',
// 	onComplete: function() {

// 	}
// })

if ($('.contentpanel').data('type') == 'info') {
	console.log($('.contentpanel').data('type'));
	$('form').find('input').prop('disabled', true);
	$('form').find('.btn').addClass('disabled');
}