Authored by liuyue

编辑页校验bug fix

... ... @@ -94,6 +94,8 @@ if ($('.contentpanel').data('type') == 'info') {
$('#rejectBtn').hide();
}
//保存完整网销信息
var e = new common.edit('#netsaleAllInfo');
$(document).on("click", "#saveAllInfo", function() {
var data = {};
... ...
... ... @@ -314,7 +314,7 @@ function shelveModal(title, html) {
});
shelveLayer = common.dialog.open({
title: '上架',
title: title,
content: html
});
... ... @@ -475,7 +475,8 @@ $('#basicTable').on('click', '.shelve-btn', function() {
data: param
}, function(res) {
if (res.code == 200) {
shelveLayer.close();
shelveTable.reload();
//shelveLayer.close();
}
})
})
... ...
... ... @@ -54,10 +54,23 @@ $(document).on("click", "#btn-recommand", function() {
});
GOLABDATA.on("bianjiqi", function() {
/*if (UMdescriptioner.getContent() != '') {
return {
recommend: UMrecommender.getContent(),
productDesc: UMdescriptioner.getContent()
}
} else {
common.util.__tip('商品描述不可为空', 'warning');
return;
}
*/
$('#productDesc').val(UMdescriptioner.getContent());
return {
recommend: UMrecommender.getContent(),
productDesc: UMdescriptioner.getContent()
productDesc: $('#productDesc').val()
}
});
if (editType == 'info') {
... ... @@ -236,6 +249,7 @@ $(document).on("click", "#dapeiTable .edit", function() {
param: item.id
}
}, function(data) {
console.log(data.data);
Bll.toast("添加搭配", data.data, "/netSale/updateCollocation");
});
// item.infoStr=[{"top":223,"left":380,"id":"ffffff"},{"top":454,"left":309,"id":"ggggg"}];
... ...
... ... @@ -53,7 +53,7 @@
<div class="col-sm-12">
<label>商品名称<i class="red">*</i>:</label>
[[if renderType=='edit']]
<input id="productName" style="width: 280px;display:inline-block;" class="form-control" placeholder="基础商品名称" type="text" value="[[productName]]" required>
<input id="productName" style="width: 280px;display:inline-block;" class="form-control" placeholder="基础商品名称" type="text" value="[[productName]]" required maxlength="100">
[[else]]
<span>[[productName]]</span>
[[/if]]
... ...
... ... @@ -26,9 +26,9 @@
[[if imageUrl]]
<img src="[[imageUrl]]">
[[/if]]
[[each infoStr as item __index]]
[[each info as item __index]]
<div class="pos form-control" style="left:[[item.left]]px;top:[[item.top]]px;">
<input type="text" class="pos-text" data-index='[[__index]]' value="[[item.id]]" />
<input type="text" maxlength="8" class="pos-text" data-index='[[__index]]' value="[[item.id]]" onkeyup="this.value=this.value.replace(/\D/gi,'')"/>
<span class="close" data-index='[[__index]]'>×</span>
</div>
[[/each]]
... ... @@ -62,7 +62,7 @@
<script type="text/template" id="kapian">
<div class="pos form-control">
<input type="text" class="pos-text" data-index='[[__index]]' value="[[id]]" />
<input type="text" maxlength="8" class="pos-text" data-index='[[__index]]' value="[[id]]" onkeyup="this.value=this.value.replace(/\D/gi,'')" />
<span class="close" data-index='[[__index]]'>×</span>
</div>
</script>
\ No newline at end of file
... ...
... ... @@ -11,6 +11,7 @@
<script id="edit-descriptioner" type="text/plain" style="width:100%;height:500px;"></script>
</div>
<div class="panel-footer">
<input type="hidden" id="productDesc" required placeholder="商品描述">
<button class="btn btn-primary" id="btn-descriptioner">保存描述</button>
</div>
</form>
... ...
... ... @@ -11,15 +11,15 @@
<div class="form-group">
<label class="col-sm-1 control-label" for="sort0">品牌</label>
<div class="col-sm-2">
<input type="text" class="form-control" id="sort0" value="0" required="required" />
<input type="text" class="form-control" id="sort0" value="0" required />
</div>
<label class="col-sm-1 control-label" for="sort1">奥莱</label>
<div class="col-sm-2">
<input type="text" class="form-control" id="sort1" value="0" required="required" />
<input type="text" class="form-control" id="sort1" value="0" required />
</div>
<label class="col-sm-1 control-label" for="sort2">搜索</label>
<div class="col-sm-2">
<input type="text" class="form-control" id="sort2" value="0" required="required" />
<input type="text" class="form-control" id="sort2" value="0" required />
</div>
</div>
<div class="col-sm-12" style="color: red;"><div class="col-sm-1"></div>提示:商品在品牌商品列表中的排序,数字越大越靠前</div>
... ...