From e9f2d737ae63dd8dffa7626239ef37abba571268 Mon Sep 17 00:00:00 2001 From: Junling Bu Date: Sat, 7 Apr 2018 00:20:34 +0800 Subject: [PATCH] =?UTF-8?q?fix[litemall-wx]:=20=E7=9B=AE=E5=89=8D=E5=95=86?= =?UTF-8?q?=E5=93=81=E6=B2=A1=E6=9C=89=E5=95=86=E5=93=81=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=EF=BC=8C=E5=8F=96=E6=B6=88=E5=AF=B9=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E7=9A=84=E6=B5=8B=E8=AF=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-wx/pages/goods/goods.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/litemall-wx/pages/goods/goods.js b/litemall-wx/pages/goods/goods.js index ed5edd35..b5362fc2 100644 --- a/litemall-wx/pages/goods/goods.js +++ b/litemall-wx/pages/goods/goods.js @@ -37,13 +37,11 @@ Page({ if (_specificationList[0].valueList.length == 1) { _specificationList[0].valueList[0].checked = true - // 如果仅仅存在一种货品,那么商品价格应该和货品价格一致,商品数量应该和货品数量一致 + // 如果仅仅存在一种货品,那么商品价格应该和货品价格一致 // 这里检测一下 - let _producePrice = _specificationList[0].valueList[0].retailPrice; + let _productPrice = res.data.productList[0].retailPrice; let _goodsPrice = res.data.info.retailPrice; - let _produceNumber = _specificationList[0].valueList[0].goodsNumber; - let _goodsNumber = res.data.info.number; - if (_producePrice != _goodsPrice || _produceNumber != _goodsNumber){ + if (_productPrice != _goodsPrice){ console.error('商品数量价格和货品不一致'); }