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

//获取skn
$('#productSkn').val(NETSALEDATA.baseProductInfo.baseProduct.productSkn);

console.log(NETSALEDATA);

/*加载其他模块*/
require('./partials/basic-info');
require('./partials/editor_recommend');
require('./partials/model');
require('./partials/search-key.js');
require('./partials/video.js');
require('./partials/brand-relation');
require('./partials/add-info');

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