[更新]修改产品表单

This commit is contained in:
Anyon 2018-05-03 17:25:25 +08:00
parent 9038ed91d8
commit ca69ea07f5

View File

@ -280,9 +280,9 @@
var specTitle = (specName === 'default:default') ? '默认规格' : specName.replace(/,/ig, ';').replace(/:/ig, ':');
var specAttrs = [], lines = specTitle.split(';');
for (var j in lines) {
var line = lines[].split(':');
var line = lines[j].split(':');
specAttrs.push({name: line[0], value: (line[1] || '').split(',')});
}j
}
list.push({
spec_name: specName, spec_title: specTitle, spec_attrs: specAttrs,
market_price: parseFloat(this.getData(specs[i], 'market_price') || '0').toFixed(2),