| | |
| | | this.memMerchantInfoData[key] = ser.join() |
| | | } |
| | | }else if(key =='goodsIds') { |
| | | debugger |
| | | var trList = document.getElementById("product_tbody").getElementsByTagName("tr"); |
| | | var product = []; |
| | | for(var ti = 0;ti < trList.length;ti++){ |
| | | var productInfo = {}; |
| | | var childrenList = trList[ti].getElementsByTagName("td")[9].getElementsByTagName("div")[0].children; |
| | | var childrenList = trList[ti].getElementsByTagName("td")[11].getElementsByTagName("div")[0].children; |
| | | if($(childrenList[0]).is(":hidden")){ |
| | | productInfo.state = $(childrenList[0]).val(); |
| | | } |
| | | if($(childrenList[childrenList.length-1]).is(":hidden")){ |
| | | productInfo.goodsSkuId = $(childrenList[childrenList.length-1]).val(); |
| | | productInfo.goodsSkuId = $( |
| | | childrenList[childrenList.length - 1]).val(); |
| | | } else { |
| | | productInfo.specIds = trList[ti].getElementsByTagName("td")[4].innerHTML; |
| | | } |
| | | productInfo.goodsId = trList[ti].getElementsByTagName("td")[0].innerHTML; |
| | | var price1 = trList[ti].getElementsByTagName("td")[6].innerHTML; |
| | | var price = trList[ti].getElementsByTagName("td")[8].getElementsByTagName("input"); |
| | | var price1 = trList[ti].getElementsByTagName("td")[8].innerHTML; |
| | | var price = trList[ti].getElementsByTagName("td")[10].getElementsByTagName("input"); |
| | | productInfo.price = $(price[0]).val()?$(price[0]).val():price1; |
| | | product[ti] = productInfo; |
| | | } |