...
|
...
|
@@ -159,9 +159,15 @@ g.init('/netSale/selectCollocationListBySkn'); |
|
|
var Bll = {
|
|
|
posData: [],
|
|
|
toast: function(title, item, url) {
|
|
|
console.log();
|
|
|
var e = new common.edit("#dapei-form", BUCKET);
|
|
|
this.posData = [];
|
|
|
|
|
|
if(item.info){
|
|
|
item.info.forEach(function(d){
|
|
|
Bll.posData.push(d);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
var d = new common.dialog({
|
|
|
title: title,
|
|
|
width: '70%',
|
...
|
...
|
@@ -174,7 +180,7 @@ var Bll = { |
|
|
option.data.id = item.id;
|
|
|
option.data.productSkn = productSkn;
|
|
|
option.data.infoStr = JSON.stringify(Bll.posData);
|
|
|
console.log(option.data);
|
|
|
console.log("保存",Bll.posData);
|
|
|
option.success = function(res) {
|
|
|
res = res.data;
|
|
|
if (res.code == +"200") {
|
...
|
...
|
@@ -244,10 +250,6 @@ $(document).on("click", "#dapeiadd", function() { |
|
|
Bll.toast("添加搭配", {}, "/netSale/insertCollocation");
|
|
|
return false;
|
|
|
});
|
|
|
//保存
|
|
|
$(document).on("click", "#dapeisave", function() {
|
|
|
//添加的时候已经保存
|
|
|
});
|
|
|
//删除
|
|
|
$(document).on("click", "#dapeiTable .delete", function() {
|
|
|
var item = g.rows[$(this).data("index")];
|
...
|
...
|
@@ -269,11 +271,9 @@ $(document).on("click", "#dapeiTable .edit", function() { |
|
|
param: item.id
|
|
|
}
|
|
|
}, function(data) {
|
|
|
console.log(data.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"}];
|
|
|
// Bll.toast("添加搭配",item,"/netSale/updateCollocation");
|
|
|
});
|
|
|
|
|
|
|
...
|
...
|
|