|
@@ -468,7 +468,7 @@ $(document).on("click", "#goodsSelectBtn", function () { |
|
@@ -468,7 +468,7 @@ $(document).on("click", "#goodsSelectBtn", function () { |
468
|
callback: function () {
|
468
|
callback: function () {
|
469
|
Bll.module.contentData.data = goodsgird.selected.map(function (item, index) {
|
469
|
Bll.module.contentData.data = goodsgird.selected.map(function (item, index) {
|
470
|
return {
|
470
|
return {
|
471
|
- src: item.images_url+'?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90',
|
471
|
+ src: item.images_url,//+'?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90',
|
472
|
id: item.product_skn,
|
472
|
id: item.product_skn,
|
473
|
product_skc: item.product_skc
|
473
|
product_skc: item.product_skc
|
474
|
}
|
474
|
}
|
|
@@ -485,8 +485,9 @@ $(document).on("click", "#goodsSelectBtn", function () { |
|
@@ -485,8 +485,9 @@ $(document).on("click", "#goodsSelectBtn", function () { |
485
|
});
|
485
|
});
|
486
|
//点击“添加组”按钮(添加商品组)
|
486
|
//点击“添加组”按钮(添加商品组)
|
487
|
$(document).on("click", "#goodsaddBtn", function () {
|
487
|
$(document).on("click", "#goodsaddBtn", function () {
|
|
|
488
|
+ var item=$.extend(true,{},Button[4].data[0]);
|
488
|
if(Bll.module.contentData.data[0].list.length){
|
489
|
if(Bll.module.contentData.data[0].list.length){
|
489
|
- Bll.module.contentData.data.push(Button[4].data[0]);
|
490
|
+ Bll.module.contentData.data.push(item);
|
490
|
}
|
491
|
}
|
491
|
Bll.__render("#groupsgoods", "template_dialog_remgoodsgroup", Bll.module);
|
492
|
Bll.__render("#groupsgoods", "template_dialog_remgoodsgroup", Bll.module);
|
492
|
});
|
493
|
});
|
|
@@ -502,7 +503,7 @@ $(document).on("click", ".goodsSelectBtn", function () { |
|
@@ -502,7 +503,7 @@ $(document).on("click", ".goodsSelectBtn", function () { |
502
|
callback: function () {
|
503
|
callback: function () {
|
503
|
goodsgird.selected.forEach(function (item, i) {
|
504
|
goodsgird.selected.forEach(function (item, i) {
|
504
|
Bll.module.contentData.data[index].list[i] = {
|
505
|
Bll.module.contentData.data[index].list[i] = {
|
505
|
- src: item.images_url+'?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90',
|
506
|
+ src: item.images_url,//+'?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90'
|
506
|
id: item.product_skn,
|
507
|
id: item.product_skn,
|
507
|
product_skc: item.product_skc,
|
508
|
product_skc: item.product_skc,
|
508
|
maxSortId: item.max_sort_id
|
509
|
maxSortId: item.max_sort_id
|
|
@@ -581,11 +582,11 @@ $(document).on("click", "#submit", function() { |
|
@@ -581,11 +582,11 @@ $(document).on("click", "#submit", function() { |
581
|
|
582
|
|
582
|
/*选择分类 自动切换 图片类型*/
|
583
|
/*选择分类 自动切换 图片类型*/
|
583
|
var TypeAToT={
|
584
|
var TypeAToT={
|
584
|
- "潮品":"1",
|
|
|
585
|
- "搭配":"2",
|
|
|
586
|
- "话题":"1",
|
|
|
587
|
- "潮人":"2",
|
|
|
588
|
- "小贴士":"1"
|
585
|
+ "潮品":"2",
|
|
|
586
|
+ "搭配":"1",
|
|
|
587
|
+ "话题":"2",
|
|
|
588
|
+ "潮人":"1",
|
|
|
589
|
+ "小贴士":"2"
|
589
|
};
|
590
|
};
|
590
|
|
591
|
|
591
|
$(document).on("change","#maxSortId",function(){
|
592
|
$(document).on("change","#maxSortId",function(){
|
|
@@ -629,6 +630,9 @@ $(document).on("click","#brandAutoBtn",function(){ |
|
@@ -629,6 +630,9 @@ $(document).on("click","#brandAutoBtn",function(){ |
629
|
if(res.code==200){
|
630
|
if(res.code==200){
|
630
|
var map={};
|
631
|
var map={};
|
631
|
console.log(res.data.list);
|
632
|
console.log(res.data.list);
|
|
|
633
|
+ if(res.data.list.length==0){
|
|
|
634
|
+ common.util.__tip("没有查询到符合的品牌");
|
|
|
635
|
+ }
|
632
|
res.data.list.forEach(function(item,index){
|
636
|
res.data.list.forEach(function(item,index){
|
633
|
map[item.product_skn]={
|
637
|
map[item.product_skn]={
|
634
|
id:item.brand_id,
|
638
|
id:item.brand_id,
|