data.js
345 Bytes
'use strict';
var $ = require('jquery'),
common = require('../../common/common');
var ENUM = null;
var param = location.href.match(/(edit|info)\/(\d+)/)[2];
console.log(param);
common.util.__ajax({
url: '/goods/netsale/getdata',
async: false,
data: {
param: param
}
}, function(res) {
ENUM = res.data;
}, true);
module.exports = ENUM;