Commit 6cc70f6d by 陶光胜

二维码

parent fd2762dc
......@@ -119,17 +119,19 @@ public class CustomGuideApiServiceImpl implements CustomGuideApiService {
// tabBar
List<Map<String, Object>> tabBarList = new ArrayList<>();
Set<String> pathSet = new HashSet<String>() ;
String iconPath = "/images/footbar/"+themeStr;
String iconPath = "/images/footbar/"+themeStr+"/";
String selectIconPath = "/images/footbar/black-blue/line/foot-icon-01-active.png";
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>();
JSONObject jsonObject = JSON.parseObject(guide.getIcon());
String selectIconPath = "";
String unIconPath = "";
if(jsonObject != null){
selectIconPath = iconPath + jsonObject.getString("type")+ jsonObject.getString("name")+"-active.png";
unIconPath = iconPath + jsonObject.getString("type")+ jsonObject.getString("name")+".png";
if(StringUtils.isBlank(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);
......
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