浏览代码

fix[litemall-wx]: _specificationList没有specification属性,而是name属性。

Junling Bu 7 年之前
父节点
当前提交
bba0c86c7c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      litemall-wx/pages/goods/goods.js

+ 1 - 1
litemall-wx/pages/goods/goods.js

@@ -133,7 +133,7 @@ Page({
     let _specificationList = this.data.specificationList;
     let _specificationList = this.data.specificationList;
     for (let i = 0; i < _specificationList.length; i++) {
     for (let i = 0; i < _specificationList.length; i++) {
       let _checkedObj = {
       let _checkedObj = {
-        name: _specificationList[i].specification,
+        name: _specificationList[i].name,
         valueId: 0,
         valueId: 0,
         valueText: ''
         valueText: ''
       };
       };