<% var lineIndex, columnIndex; %> <% var allNames = ['黄油曲奇', '花生曲奇', '巧克力曲奇', '柠檬曲奇', '黄油面包', '肉松面包', '五谷面包', '牛角面包', '戚风蛋糕', '提拉米苏', '熔岩蛋糕', '红丝绒蛋糕', '单层翻糖', '双层翻糖', '三层翻糖', '多层翻糖', '香草拿破仑', '蓝莓拿破仑', '草莓拿破仑', '1842拿破仑', '柠檬曲奇', '柠檬曲奇', '柠檬曲奇', '柠檬曲奇'] %>
曲奇面包蛋糕翻糖拿破仑
    <% _.each(badge, function(item, index) { %> <% lineIndex = Math.floor(index / 4) %> <% columnIndex = Math.floor(index % 4) %> <% if(item == -1) { %>
  • <%= allNames[index] %>

  • <% } else if (item == 0) { %>
  • <%= allNames[index] %>

  • <% } else { %>
  • <%= allNames[index] %>

  • <% } %> <% }) %>