|
@@ -10,7 +10,7 @@ color.html = '<tr class="color_list">'
|
|
|
+ '<td style="text-align: center;" width="10"><input type="text" class="input-text input-number item-num" value="0" name="colorPrice" id="" style="width: 100%;text-align: center;" placeholder="原价" onkeyup="keyFun($(this),9999,1)" onpaste="keyFun($(this),9999,1)"></td>'
|
|
|
+ '<td style="text-align: center;" width="10"><input type="text" class="input-text input-number item-num" value="" name="colorBar" id="" placeholder="69码" datatype="*1-20" errormsg="69码格式不正确!"></td>'
|
|
|
+ '<td style="text-align: center;" width="10"><input type="text" class="input-text input-number item-num" value="0" name="colorIsWeight" id="" style="width: 100%;text-align: center;" placeholder="重量" onkeyup="keyFun($(this),9999,1)" onpaste="keyFun($(this),9999,1)"></td>'
|
|
|
- + '<td style="text-align: center;" width="10"><select class="select" id="" name="colorIsMachine" > <option value="1" >是</option><option value="1" >否</option></select></td>'
|
|
|
+ + '<td style="text-align: center;" width="10"><select class="select" id="" name="colorIsMachine" ><option value="2" >否</option><option value="1" >是</option></select></td>'
|
|
|
+ '<td style="text-align: center;" width="10"><input type="file" class="color_file" name="file" id="fileId_'+ colorNum +'" style="display: none">'
|
|
|
+ '<a href="javascript:void(0)" class="del_product all_down" onclick="fileOnclick(this)">上传图片</a>'
|
|
|
+ '<input name="colorPicture" style="display: none;"></td>'
|
|
@@ -73,6 +73,12 @@ $(function(){
|
|
|
var inputName = $(this).attr("name");
|
|
|
color[inputName] = $(this).val()
|
|
|
})
|
|
|
+
|
|
|
+ $(this).find("select").each(function(){
|
|
|
+ var inputName = $(this).attr("name");
|
|
|
+ color[inputName] = $(this).val()
|
|
|
+ })
|
|
|
+
|
|
|
colorList.push(color);
|
|
|
})
|
|
|
|
|
@@ -117,8 +123,7 @@ function fileUpload(nodo) {
|
|
|
dataType: 'json', //json
|
|
|
success: function (data) {
|
|
|
if(data.returnCode == 200){
|
|
|
- $("#"+nodo)
|
|
|
- $("#fileDiv").prepend('<input type="file" name="file" id="fileid" style="opacity: 0; position: absolute; width: 90px;height: 80px;" onchange="fileUpload()">');
|
|
|
+
|
|
|
}else{
|
|
|
layer.msg('上传失败,请重试!',{icon: 5,time:2000});
|
|
|
}
|