...
|
...
|
@@ -284,7 +284,7 @@ var Bll = { |
|
|
"id": Brands2[i].id,
|
|
|
"title": Brands2[i].brand_name
|
|
|
};
|
|
|
} else if(Bll.module.contentData.template_name == "appHotBrands"){
|
|
|
} else if(Bll.module.contentData.template_name == "appHotBrands"||Bll.module.contentData.template_name == "customBrands"){
|
|
|
pic = {
|
|
|
"src": Brands2[i].brandIco,
|
|
|
"id": Brands2[i].id,
|
...
|
...
|
@@ -461,17 +461,17 @@ $(document).on("change", ".observe", function () { |
|
|
var urlName = $this.attr("placeholder");
|
|
|
//如果属性不存在,会报错
|
|
|
if(typeof (urlName) !='undefined'){
|
|
|
if(platformName.toLocaleLowerCase().indexOf("web")==-1&&httpsEnable=='true'){
|
|
|
console.log("限制https")
|
|
|
if(urlName.indexOf("url")!=-1||urlName.indexOf("链接")!=-1||urlName.indexOf("地址")!=-1){
|
|
|
var urlVal = $this.val();
|
|
|
if(urlVal.toLowerCase().indexOf("https")!=0){
|
|
|
common.util.__tip("url必须以https开头!", "warning");
|
|
|
$this.val('');
|
|
|
if(platformName.toLocaleLowerCase().indexOf("web")==-1&&httpsEnable=='true'){
|
|
|
console.log("限制https")
|
|
|
if(urlName.indexOf("url")!=-1||urlName.indexOf("链接")!=-1||urlName.indexOf("地址")!=-1){
|
|
|
var urlVal = $this.val();
|
|
|
if(urlVal.toLowerCase().indexOf("https")!=0){
|
|
|
common.util.__tip("url必须以https开头!", "warning");
|
|
|
$this.val('');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
var name = $this.data("field");
|
|
|
// 以 .. 开头的,赋值到 contentData
|
|
|
if (name.indexOf("..") == 0) {
|
...
|
...
|
@@ -505,11 +505,11 @@ $(document).on("change", ".observe", function () { |
|
|
window.onbeforeunload = function(){
|
|
|
if(lock_type==1){
|
|
|
common.util.__ajax({
|
|
|
url: "/resources/updateLock",
|
|
|
data: {id: param,
|
|
|
status:0}
|
|
|
}, function () {
|
|
|
});
|
|
|
url: "/resources/updateLock",
|
|
|
data: {id: param,
|
|
|
status:0}
|
|
|
}, function () {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/*删除*/
|
...
|
...
|
@@ -539,23 +539,23 @@ $(document).on("click", ".edit", function () { |
|
|
if(item.contentData.template_name=='shopRecommend'){
|
|
|
var list = item.contentData.data.list;
|
|
|
for(var i = 0; i < list.length; i++) {
|
|
|
if(typeof(list[i].goods2) == 'undefined'){
|
|
|
var goods2 = {
|
|
|
"src":"",
|
|
|
"url":{
|
|
|
"url":"",
|
|
|
"action":""
|
|
|
}
|
|
|
};
|
|
|
list[i].goods2 = goods2;
|
|
|
}
|
|
|
if(typeof(list[i].goods2) == 'undefined'){
|
|
|
var goods2 = {
|
|
|
"src":"",
|
|
|
"url":{
|
|
|
"url":"",
|
|
|
"action":""
|
|
|
}
|
|
|
};
|
|
|
list[i].goods2 = goods2;
|
|
|
}
|
|
|
}
|
|
|
Bll.module = $.extend(true, {}, item);
|
|
|
Bll.renderDialog("shopRecommend-template");
|
|
|
Bll.toast(index, Bll.module);
|
|
|
var _shopRecommendFlag = item.contentData.isShopRecommend==''?"N":item.contentData.isShopRecommend;
|
|
|
changeShopRecommendDivShow(_shopRecommendFlag);
|
|
|
}else if(item.contentData.template_name=='appHotBrands'){
|
|
|
}else if(item.contentData.template_name=='appHotBrands'||item.contentData.template_name=='customBrands'){
|
|
|
//热门品牌兼容老版本,url设置空值
|
|
|
var list = item.contentData.data.list;
|
|
|
for(var i=0;i<list.length;i++){
|
...
|
...
|
@@ -754,7 +754,7 @@ $(document).on("click", '.isShopRecommend', function () { |
|
|
Bll.module.contentData.isShopRecommend = _isShopRecommend;
|
|
|
//Bll.renderDialog("shopRecommend-template");
|
|
|
//切换到推荐
|
|
|
changeShopRecommendDivShow(_isShopRecommend)
|
|
|
changeShopRecommendDivShow(_isShopRecommend)
|
|
|
});
|
|
|
$(document).on("change", '.shopChannelId', function () {
|
|
|
Bll.module.contentData.shopChannelId = $(this).val();
|
...
|
...
|
@@ -1155,7 +1155,7 @@ $(document).on("click", "#goodsSelectBtn", function () { |
|
|
// 线上bug修改,商品个数不超过150个
|
|
|
var datas = Bll.module.contentData.data.concat(gs);
|
|
|
if (datas.length > 150) {
|
|
|
common.util.__tip('选择商品失败,您选择的商品总数超过150个。', 'warning');
|
|
|
common.util.__tip('选择商品失败,您选择的商品总数超过150个。', 'warning');
|
|
|
return;
|
|
|
}
|
|
|
|
...
|
...
|
|