Update index.html

This commit is contained in:
Anyon 2022-04-18 11:09:46 +08:00
parent c0c5f3e36e
commit 710264fd8c

View File

@ -34,7 +34,7 @@
{field: 'id', title: 'ID', align: "center", width: 80},
{field: 'name', title: '折扣名称', align: 'left', minWidth: 140},
{
field: 'items', title: '折扣方案', align: 'left', minWidth: 200, templet: function (d) {
field: 'items', title: '折扣方案', align: 'left', width: '30%', templet: function (d) {
return (d.html = ''), d.items.forEach(function (item) {
d.html += laytpl('<span class="layui-badge layui-bg-gray">VIP{{d.level}} 折扣 {{d.discount}}%</span>').render(item);
}), d.html;