Commit 7f168320 by 陶光胜

导航ext过滤关闭tabbar

parent 574dcdcd
......@@ -130,21 +130,23 @@ public class CustomGuideApiServiceImpl implements CustomGuideApiService {
String unIconPath = "/images/footbar/black-blue/line/foot-icon-01.png";
for (int i = 0; i < guideList.size(); i++) {
TabCustomGuide guide = guideList.get(i);
String title = guide.getTitle();
Map<String, Object> listMap = new HashMap<String, Object>();
if(StringUtils.isNotBlank(guide.getIcon()) && !"{}".equals(guide.getIcon())){
JSONObject jsonObject = JSON.parseObject(guide.getIcon());
if(jsonObject != null){
selectIconPath = iconPath + jsonObject.getString("type")+ "/"+jsonObject.getString("name")+"-active.png";
unIconPath = iconPath + jsonObject.getString("type")+ "/"+jsonObject.getString("name")+".png";
if(guide.getStatus().intValue() == 1){
String title = guide.getTitle();
Map<String, Object> listMap = new HashMap<String, Object>();
if(StringUtils.isNotBlank(guide.getIcon()) && !"{}".equals(guide.getIcon())){
JSONObject jsonObject = JSON.parseObject(guide.getIcon());
if(jsonObject != null){
selectIconPath = iconPath + jsonObject.getString("type")+ "/"+jsonObject.getString("name")+"-active.png";
unIconPath = iconPath + jsonObject.getString("type")+ "/"+jsonObject.getString("name")+".png";
}
}
listMap.put("selectedIconPath", selectIconPath);
listMap.put("iconPath", unIconPath);
listMap.put("pagePath", guide.getCustomPage());
pathSet.add(guide.getCustomPage()) ;
listMap.put("text", title);
tabBarList.add(listMap);
}
listMap.put("selectedIconPath", selectIconPath);
listMap.put("iconPath", unIconPath);
listMap.put("pagePath", guide.getCustomPage());
pathSet.add(guide.getCustomPage()) ;
listMap.put("text", title);
tabBarList.add(listMap);
}
if(pathSet.size() != guideList.size()) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "存在相同的路径");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment