Authored by zhaoqing

店铺模板

... ... @@ -217,6 +217,14 @@ var Bll = {
} else {
module.moduleData = JSON.parse(module.moduleData);
}
if(module.moduleType == 'DivideCarouselImage'){
$.each(module.moduleData.data, function(index, data) {
var _index = data.pic.indexOf("?imageView2");
if(_index != -1) {
data.pic = data.pic.substring(0, _index);
}
});
}
});
Bll.moduleDataList = moduleList;
}
... ... @@ -1311,6 +1319,10 @@ var Bll = {
Bll.moduleDataList[index].moduleData.properties.isModuleMargin = 0;
}
if(moduleType == 'DivideCarouselImage'){
if($('#divideWidth').val() == "" || $('#divideHigh').val() == "" || $('#divideRow').val() == "" || $('#divideColumn').val() == "") {
common.util.__tip('轮播图模块中宽、高、行、列不可为空!', 'warning');
return false;
}
Bll.moduleDataList[index].moduleData.properties.divideWidth = $('#divideWidth').val();
Bll.moduleDataList[index].moduleData.properties.divideHigh = $('#divideHigh').val();
Bll.moduleDataList[index].moduleData.properties.divideRow = $('#divideRow').val();
... ... @@ -1782,10 +1794,14 @@ var Bll = {
break;
case "DivideCarouselImage":
// 轮播图,限制图片尺寸为 750 * 234
var width = module.moduleData.properties.divideWidth;
var high = module.moduleData.properties.divideHigh;
$.each(module.moduleData.data, function(index, data) {
var _index = data.pic.indexOf(imageView);
if(_index != -1) {
data.pic = data.pic.substring(0, _index) + imageView + '/1/w/750/h/234';
data.pic = data.pic.substring(0, _index) + imageView + '/{mode}/w/{width}/h/{height}';
}else if(data.pic != ""){
data.pic = data.pic + imageView + '/{mode}/w/{width}/h/{height}';
}
});
break;
... ...