From ca69ea07f502d71f32623595aca226279dbc905a Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 3 May 2018 17:25:25 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/goods/view/product/form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/goods/view/product/form.html b/application/goods/view/product/form.html index 48a72db9c..382da7be2 100644 --- a/application/goods/view/product/form.html +++ b/application/goods/view/product/form.html @@ -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),