From be8a9f18fa7b92fa6b0d34bf4288843b3789f8d3 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 3 May 2018 17:24:01 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/goods/view/product/form.html b/application/goods/view/product/form.html index f67ceae8f..48a72db9c 100644 --- a/application/goods/view/product/form.html +++ b/application/goods/view/product/form.html @@ -279,10 +279,10 @@ var specName = specs[i]; var specTitle = (specName === 'default:default') ? '默认规格' : specName.replace(/,/ig, ';').replace(/:/ig, ':'); var specAttrs = [], lines = specTitle.split(';'); - for (var i in lines) { - var line = lines[i].split(':'); + for (var j in lines) { + var line = lines[].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),