{% extends "admin/base.html" %} {% block page_title %}积分管理{% endblock %} {% block content %}
积分流水(最近 200 条) 导出CSV
{% set tmap = {'exam':'考试','like':'集赞','exchange':'兑换','adjust':'调整'} %} {% for l in logs %} {% else %} {% endfor %}
序号店员门店变动类型备注变动后时间
{{loop.index}} {{l.staff.name if l.staff else '-'}} {{l.staff.store.name if (l.staff and l.staff.store) else '-'}} {% if l.delta>0 %}+{% endif %}{{l.delta}} {% set tb = {'exam':'bg-success','like':'bg-success','exchange':'bg-danger','adjust':'bg-brand'} %}{{tmap.get(l.type, l.type)}} {{l.remark or '-'}} {{l.balance_after}} {{l.created_at.strftime('%m-%d %H:%M') if l.created_at}}
暂无流水
{% endblock %}