netsale-edit.js
857 Bytes
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
'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');
}