mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-08-06 22:09:45 +08:00
[更新]修改产品表单
This commit is contained in:
parent
9038ed91d8
commit
ca69ea07f5
@ -280,9 +280,9 @@
|
|||||||
var specTitle = (specName === 'default:default') ? '默认规格' : specName.replace(/,/ig, ';').replace(/:/ig, ':');
|
var specTitle = (specName === 'default:default') ? '默认规格' : specName.replace(/,/ig, ';').replace(/:/ig, ':');
|
||||||
var specAttrs = [], lines = specTitle.split(';');
|
var specAttrs = [], lines = specTitle.split(';');
|
||||||
for (var j in lines) {
|
for (var j in lines) {
|
||||||
var line = lines[].split(':');
|
var line = lines[j].split(':');
|
||||||
specAttrs.push({name: line[0], value: (line[1] || '').split(',')});
|
specAttrs.push({name: line[0], value: (line[1] || '').split(',')});
|
||||||
}j
|
}
|
||||||
list.push({
|
list.push({
|
||||||
spec_name: specName, spec_title: specTitle, spec_attrs: specAttrs,
|
spec_name: specName, spec_title: specTitle, spec_attrs: specAttrs,
|
||||||
market_price: parseFloat(this.getData(specs[i], 'market_price') || '0').toFixed(2),
|
market_price: parseFloat(this.getData(specs[i], 'market_price') || '0').toFixed(2),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user