Authored by leo

Update: 将 is_display 属性修改为 Integer

... ... @@ -125,7 +125,7 @@ var resourcesNew = {
"recommend_APP":{
"id":"",
"isUsed":"N",
"isDisplay":"Y",
"isDisplay":1,
"data": [
{"position":1, "name":"默认商品", "enName":"", "src":defaultSrc, "url":"", linkType:'1', categoryId:'-1', categoryName:''}
]
... ... @@ -252,7 +252,7 @@ function getDialogOption(title) {
return "";
}
var showInApp = "Y";
var showInApp = 1;
var data = jsonClone.resources.recommend_APP;
if(data) {
showInApp = data.isDisplay;
... ... @@ -260,12 +260,12 @@ function getDialogOption(title) {
var showRecommendOption = "";
var hideRecommendOption = "";
if("Y" === showInApp) {
showRecommendOption = "<label for='recommandradioY' class='radio-inline'><input type='radio' id='recommandradioY' name='recommandradio' value='Y' checked>显示</label>";
hideRecommendOption = "<label for='recommandradioN' class='radio-inline'><input type='radio' id='recommandradioN' name='recommandradio' value='N'>隐藏</label>";
if(1 === showInApp) {
showRecommendOption = "<label for='recommandradioY' class='radio-inline'><input type='radio' id='recommandradioY' name='recommandradio' value='1' checked>显示</label>";
hideRecommendOption = "<label for='recommandradioN' class='radio-inline'><input type='radio' id='recommandradioN' name='recommandradio' value='0'>隐藏</label>";
} else {
showRecommendOption = "<label for='recommandradioY' class='radio-inline'><input type='radio' id='recommandradioY' name='recommandradio' value='Y'>显示</label>";
hideRecommendOption = "<label for='recommandradioN' class='radio-inline'><input type='radio' id='recommandradioN' name='recommandradio' value='N' checked>隐藏</label>";
showRecommendOption = "<label for='recommandradioY' class='radio-inline'><input type='radio' id='recommandradioY' name='recommandradio' value='1'>显示</label>";
hideRecommendOption = "<label for='recommandradioN' class='radio-inline'><input type='radio' id='recommandradioN' name='recommandradio' value='0' checked>隐藏</label>";
}
return "<div><label class='radio-inline'><span>显示/隐藏热门品类: </span></label>" + showRecommendOption + hideRecommendOption;
... ...