{template 'public/header'} {template 'public/comhead'} {if $operation == 'display'}
新用户满减: 老顾客满减:
提示:
1.代金券适用于当用户下单满足指定条件时,商家给予订单指定额度的减免优惠。例如订单总额满100元,优惠5元。
2.商品赠送适用于当用户下单满足指定条件时,商家给予订单指定的商品赠送。例如订单总额满100元,赠送xx商品。
{loop $coupons $coupon} {/loop}
显示顺序 (ID)名称 类型 状态 时间
({$coupon['id']}){$coupon['title']} {$coupon_type[$coupon['type']]} {if TIMESTAMP<$coupon['starttime']} 未开始 {elseif TIMESTAMP>$coupon['starttime'] && TIMESTAMP<$coupon['endtime']} 进行中 {else} 已结束 {/if} 开始时间:{php echo date('Y-m-d H:i:s', $coupon[starttime]);}
结束时间:{php echo date('Y-m-d H:i:s', $coupon[endtime]);}
{if $coupon['type']==1 || $coupon['type']==2} 记录 赠送 {/if}
访问链接:{php echo $_W['siteroot'] . 'app/index.php?i=' . $coupon['weid'] . '&c=entry&id=' . $coupon['id'] . '&do=coupon&m=weisrc_dish'}
{$pager}
{else if $operation == 'post'}
{if !empty($reply['id'])}
{/if}
{$title}
{php echo tpl_form_field_daterange('datelimit', array('starttime'=>$starttime,'endtime' =>$endtime), true)}
消费时使用条件,0表示没限制
比如下单减10元,则填写:10。
不填写则没有名额数量限制
不填写则没有数量限制
{if empty($thumb)} {php echo tpl_form_field_image('thumb','../addons/weisrc_dish/template/images/coupon.jpg')} {else} {php echo tpl_form_field_image('thumb', $reply['thumb'])} {/if}
大图片建议尺寸:720像素 * 400像素
在此说明券的使用方式,如最低消费金额,优惠券打折信息,不与其他优惠同时使用、节假日不可使用等。
{else if $operation == 'send'}
{if !empty($reply['id'])} {/if}
优惠券发放
{php echo tpl_form_field_date('date', $time, true)}
{loop $fanslist $item} {/loop}
编号 会员昵称 姓名 电话 消费金额 发送状态
{$item['id']}
{if $item['status']==0} 禁止 {/if} {$item['nickname']}
{if empty($item['username'])}-------{else}{$item['username']}{/if} {if empty($item['mobile'])}-------{else}{$item['mobile']}{/if} {if empty($item['totalprice'])}-------{else}{$item['totalprice']}{/if} {if $item['lastsendtime'] > $nowtime} 今日已发送 {else} {if $item['lastsendtime']>0} {php echo date('Y-m-d H:i:s', $item[lastsendtime]);}
{/if} 今日未发送 {/if}
加入:{php echo date('Y-m-d H:i:s',$item[dateline]);}
{if $item['lastsendtime'] > $nowtime} 访问:{php echo date('Y-m-d H:i:s',$item[lasttime]);} {else} 访问:{php echo date('Y-m-d H:i:s',$item[lasttime]);} {/if}
{$pager}
{/if} {if $_W['isfounder']} {template 'common/footer'} {else} {template 'public/footer'} {/if}