{include file="public/layout" /}
{include file="shop/left" /}

### 优惠券

#####

#### 提示

- 注意：该功能仅限于【可视化微信小程序（商城版）】插件

{eq name="$Think.const.CONTROLLER_NAME.'@add'|is_check_access" value="1"}
新增优惠券
{/eq}
{$searchform.hidden|default=''}

| 优惠券名称 | 优惠券类型 | 优惠规则 | 库存数量 | 已领取数量 | 有效期 | 启用 | 操作 | 排序
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---

{empty name="list"}
{else/} {foreach name="list" item="vo" key="k" }
| {$vo.coupon_name} | {if condition='1 == $vo.coupon_type'} 全站通用 {elseif condition='2 == $vo.coupon_type' /} 指定商品 {elseif condition='3 == $vo.coupon_type' /} 指定分类 {elseif condition='4 == $vo.coupon_type' /} 指定分类 {/if} | 满{$vo.conditions_use}减{$vo.coupon_price} | {$vo.coupon_stock} | {$vo.geted|default=0} | {$vo.start_date|MyDate='Y-m-d H:i:s',###} 至 {$vo.end_date|MyDate='Y-m-d H:i:s',###} | {eq name="$vo['status']" value='1'} 是 {else /} 否 {/eq} | {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"} 编辑 {/eq} {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"} 删除 {else /} 删除 {/eq} | {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"} {else /} {$vo.sort_order} {/eq}
{/foreach} {/empty}

{include file="public/footer" /}