Authored by ZhongW

编辑页修改

... ... @@ -19,8 +19,8 @@
<%include './__partail/goods_description'%>
<%include './__partail/goods_params'%>
<%include './__partail/size_info'%>
<%include './__partail/goods_sort'%>
<!--<include './__partail/size_info'>-->
<!--<include './__partail/goods_sort'>-->
</div>
</div>
... ... @@ -30,12 +30,12 @@
<div class="panel-heading">
<a class="netsale-position" href="javascript:;" name="position8"></a>
<div class="panel-btns" style="display: none;">
<a href="" class="panel-minimize tooltips" data-toggle="tooltip" title=""><i class="fa fa-minus"></i></a>
<a href="" class="panel-minimize tooltips maximize" data-toggle="tooltip" title=""><i class="fa fa-plus"></i></a>
</div>
<h2 class="panel-title">搜索关键词</h2>
</div>
<div class="panel-body">
<div class="panel-body" style="display: none;">
<div class="form-group">
<label class="col-sm-1 control-label height40" for="searchKeys">商品关键词</label>
<div class="col-sm-6">
... ... @@ -51,7 +51,7 @@
</div>
</div>
</div>
<div class="panel-footer">
<div class="panel-footer" style="display: none;">
<button class="btn btn-primary" id="save-searchKey">保存</button>
</div>
</div>
... ... @@ -61,12 +61,12 @@
<a class="netsale-position" href="javascript:;" name="position9"></a>
<a id="editProductName" class="btn btn-default" href="javascript:;" style="position: absolute;left: 40%;top: 20%;">去编辑商品名称</a>
<div class="panel-btns" style="display: none;">
<a href="" class="panel-minimize tooltips" data-toggle="tooltip" title=""><i class="fa fa-minus"></i></a>
<a href="" class="panel-minimize tooltips maximize" data-toggle="tooltip" title=""><i class="fa fa-plus"></i></a>
</div>
<h2 class="panel-title">上架后补全信息</h2>
</div>
<div class="panel-body">
<div class="panel-body" style="display: none;">
<%include './__partail/add_info'%>
<%include './__partail/editor_recommend'%>
<%include './__partail/model'%>
... ... @@ -94,8 +94,8 @@
<li name="position3"><a href="javascript:;"><i class="required-icon"></i>封面设置</a></li>
<li name="position4"><a href="javascript:;"><i class="required-icon"></i>商品描述</a></li>
<li name="position6"><a href="javascript:;"><i class="required-icon"></i>商品参数</a></li>
<li name="position5" data-pos="尺码信息"><a href="javascript:;"><i class="required-icon"></i>尺码信息</a></li>
<li name="position7"><a href="javascript:;"><i class="required-icon"></i>商品排序</a></li>
<!-- <li name="position5" data-pos="尺码信息"><a href="javascript:;"><i class="required-icon"></i>尺码信息</a></li> -->
<!-- <li name="position7"><a href="javascript:;"><i class="required-icon"></i>商品排序</a></li> -->
</ul>
</li>
<li name="position8" data-pos="搜索/标签">
... ...
... ... @@ -109,7 +109,7 @@ if ($('.contentpanel').data('type') == 'info') {
window.saveAllInfoCondition=function(){
if(window.EXECUTRCNT==10){
if(window.EXECUTRCNT==8){
window.IS_OVER=true;
if(window.WARNMSG == ""){
common.util.__tip("商品保存成功", 'success');
... ... @@ -138,9 +138,9 @@ $(document).on("click", "#saveAllInfo", function() {
$("#saveBasicInfo").click();
$("#fenMainSave").click();
$("#btn-descriptioner").click();
$("#add-saveBtn").click();
/*$("#add-saveBtn").click();*/
$("#propertySave").click();
$("#sort-save").click();
/*$("#sort-save").click();*/
$("#save-searchKey").click();
$("#saveAddInfo").click();
$("#btn-recommand").click();
... ...
... ... @@ -383,10 +383,31 @@ $(document).on('click', '.btn-use-img', function() {
var data = res.data;
var imgHtml = '';
if (res.code == 200 && data.list instanceof Array && data.list[0].pictureBoList instanceof Array) {
$.each(data.list[0].pictureBoList, function(i, value) {
var picArray = data.list[0].pictureBoList;
var skuArray = [];
$.each(picArray, function(i, value) {
if(skuArray.indexOf(value.productSku) == -1 ){
skuArray.push(value.productSku);
}
/*imgHtml += '<div style="float:left; border:1px solid gray; height:123px; width:125px;margin:5px;text-align: center;line-height:120px" ><a style="display:inline-block"><img class="use-img" src="' + value.fileName +'?imageView2/0/w/120/q/75'+ '" alt="" data-i="'+i+'" data-index="' + index + '" style="cursor:pointer;" /></a></div>';*/
});
var indexTag = 0;
$.each(skuArray, function(i, skuItem) {
var skuHtml = "<div class = 'skuList' style='border-top:solid black 1px;border-bottom:solid black 1px;padding:8px;'><table><tr>";
skuHtml += "<td><div style='display:inline;height:100%'>"+skuItem+"&nbsp;&nbsp;&nbsp;&nbsp;</div></td><td>";
$.each(picArray, function(j, picItem) {
if(skuItem == picItem.productSku){
skuHtml += '<div style="display:inline; height:123px; width:125px;margin:5px;text-align: center;line-height:128px" ><a style="display:inline-block"><img class="use-img" src="' + picItem.fileName +'?imageView2/0/w/120/q/75'+ '" alt="" data-i="'+indexTag+'" data-index="' + index + '" style="cursor:pointer;" /></a></div>';
indexTag = indexTag + 1;
}
});
skuHtml += "</td></tr></table></div>";
imgHtml += skuHtml;
})
imgHtml += '<div style="float:left; border:1px solid gray; height:123px; width:125px;margin:5px;text-align: center;line-height:120px" ><a style="display:inline-block"><img class="use-img" src="' + value.fileName +'?imageView2/0/w/120/q/75'+ '" alt="" data-i="'+i+'" data-index="' + index + '" style="cursor:pointer;" /></a></div>';
});
uesImgDialog = common.dialog.confirm("调用图片",imgHtml,function(){
for(var i in uesImgMap){
addFengmian(uesImgIndex, uesImgMap[i]);
... ...