fix: bug修复
This commit is contained in:
@@ -37,8 +37,6 @@
|
||||
<li><a href="#navthird" data-toggle="tab">图片信息</a></li>
|
||||
<li><a href="#navsecond" data-toggle="tab">详细内容</a></li>
|
||||
<li><a href="#navseventh" data-toggle="tab">相关信息及下载</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
<div class="tab-content" style="background: #f3f3f3;">
|
||||
|
||||
@@ -357,7 +355,6 @@
|
||||
foreach ($selectColorObj as $c=>$v) {
|
||||
$sltclrOption .= $c==$product_image['image_color']?'<option value="'.$c .'" selected="">' .$v.'</option>':'<option value="'.$c .'">' .$v.'</option>';
|
||||
}
|
||||
echo $product_row;
|
||||
?>
|
||||
<tr id="product_row<?php echo $product_row; ?>">
|
||||
<td class="text-left"><a href="" id="thumb-two-image<?php echo $product_row; ?>" data-toggle="image" data-folder="<?php echo $filepath;?>" class="img-thumbnail"><img class="img-responsive" src="<?php echo $product_image['image_url'];?>"></a><input name="product_product[<?php echo $product_row; ?>][image_url]" value="<?php echo $product_image['image_url'];?>" id="input-two-image<?php echo $product_row; ?>" type="hidden"></td>
|
||||
@@ -367,18 +364,14 @@
|
||||
if(strlen($product_image["image_color"]) ==2 || $product_image["image_color"] == ''){
|
||||
echo '<select class="form-control" name="product_product['.$product_row.'][image_color]"><option value="">请选择</option>';
|
||||
foreach($productColor as $clroption => $proColor) {
|
||||
|
||||
echo '<option value="'.$clroption .'"'.($clroption==$product_image['image_color'] ? "selected": "").'>'.$proColor . '</option>';
|
||||
echo '<option value="'.$clroption.'"'.($clroption==$product_image['image_color'] ? "selected": "").'>'.$proColor.'</option>';
|
||||
}
|
||||
echo '</select>';
|
||||
echo '</select>';
|
||||
}
|
||||
else{
|
||||
echo '<input name="product_product['.$product_row.'][image_color]" value="'. $product_image["image_color"].'" placeholder="背景颜色" class="form-control" size="2" type="text">';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</td>
|
||||
<!--td class="text-center"><input name="product_product[<?php echo $product_row; ?>][image_bk_color]" value="<?php echo $product_image['image_bk_color'];?>" class="form-control" id="input-two-color-image<?php echo $product_row; ?>" type="text"></td-->
|
||||
|
||||
@@ -1272,22 +1265,21 @@ function changeAlbumImagesSort(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*二级列表主图*/
|
||||
var product_row = "<?php echo '0';?>";
|
||||
function addProduct() {
|
||||
var sltclrOption = '<select class="form-control" name="product_image[' + product_row + '][image_color]"><option value="">请选择</option>';
|
||||
for (clroption in selectColorObj) {
|
||||
var sltclrOption = '<select class="form-control" name="product_product[' + product_row + '][image_color]"><option value="">请选择</option>';
|
||||
for (clroption in selectColorObj) {
|
||||
sltclrOption += '<option value="' + clroption + '">' + selectColorObj[clroption] + '</option>';
|
||||
}
|
||||
sltclrOption += '</select>';
|
||||
|
||||
var html = '<tr id="product_row' + product_row + '">';
|
||||
html += ' <td class="text-left"><a href="" id="thumb-two-image' + product_row + '"data-toggle="image" data-folder="' + filePath + '" class="img-thumbnail"><img class="img-responsive" src="/uploads/nopic.jpg"/></a><input type="hidden" name="product_product[' + product_row + '][image_url]" value="" id="input-two-image' + product_row + '"/></td>';
|
||||
html += ' <td class="text-right">' + sltclrOption + '</td>';
|
||||
html += ' <td class="text-right">' + sltclrOption + '</td>';
|
||||
//html += ' <td class="text-right"><input type="hidden" name="product_product[' + product_row + '][image_color]" value="" id="input-two-color-image' + product_row + '"/></td>';
|
||||
//html += ' <td class="text-right"><input type="text" name="product_product[' + product_row + '][image_bkcolor]" value="" placeholder="颜色" class="form-control" size="2"/></td>';
|
||||
html += ' <td class="text-right"><input type="text" name="product_product[' + product_row + '][image_desc]" value="" placeholder="描述" class="form-control" size="2"/></td>';
|
||||
html += ' <td class="text-right"><input type="text" name="product_product[' + product_row + '][image_desc]" value="" placeholder="描述" class="form-control" size="2"/></td>';
|
||||
html += ' <td class="text-left"><button type="button" onclick="$(\'#product_row' + product_row + '\').remove();" title="删除" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>';
|
||||
html += '</tr>';
|
||||
$('#product tbody').append(html);
|
||||
@@ -1795,16 +1787,16 @@ function delAlbumAttributeColumn (object){
|
||||
}
|
||||
|
||||
</script>
|
||||
<script>
|
||||
$(function() {
|
||||
$('.business-button,.busniess-joinus-btn').click(function() {
|
||||
$(".marsk-container").show();
|
||||
});
|
||||
});
|
||||
/*弹出框关闭*/
|
||||
$(function() {
|
||||
$('.business-close').click(function() {
|
||||
$(".marsk-container").hide();
|
||||
});
|
||||
});
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('.business-button,.busniess-joinus-btn').click(function() {
|
||||
$(".marsk-container").show();
|
||||
});
|
||||
});
|
||||
// 弹出框关闭
|
||||
$(function() {
|
||||
$('.business-close').click(function() {
|
||||
$(".marsk-container").hide();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user