{ife 'creditshop.goods' $item} {else}
{$item['displayorder']}
{/if}
{ife 'creditshop.goods' $item} {if com('coupon')} {/if}
保存后商品类型不可更改
设置为优惠券类型,则无需进行领取,兑换或抽中直接发送到优惠券账户(保存后商品类型不可更改)
设置为余额类型,则无需进行领取,兑换或抽中直接发送到用户账户(保存后商品类型不可更改)
设置为红包类型,则无需进行领取,兑换或抽中直接发送微信红包(保存后商品类型不可更改)
{else}
{if empty($item['goodstype'])}商品{elseif $item['goodstype']==1}优惠券{elseif $item['goodstype']==2}余额{elseif $item['goodstype']==3}红包{/if}
{/if}
{if com('coupon')}
{ife 'creditshop.goods' $item} {php echo tpl_selector('couponid',array('required'=>false, 'preview'=>true,'url'=>webUrl('sale/coupon/query'),'text'=>'couponname','items'=>$coupon,'readonly'=>true,'buttontext'=>'选择优惠券','placeholder'=>'请选择优惠券','callback'=>'select_coupon'))} {else}
{$coupon['title']}
{/if}
{/if}
{ife 'creditshop.goods' $item}
余额
{else}
余额:{$coupon['grant1']}元
{/if}
{ife 'creditshop.goods' $item}
总额 元 剩余
{else}
总额:{$coupon['packetmoney']}元,剩余{$coupon['surplusmoney']}元
{/if}
{ife 'creditshop.goods' $item}
剩余金额小于 元,停止兑换
{else}
剩余金额小于{$coupon['packetlimit']}元,停止兑换
{/if} 剩余金额小于X时,停止兑换。如果为空,剩余金额为0时停止兑换。
0}style="display:none"{/if}>
{ife 'creditshop.goods' $item}
红包 个 剩余
{else}
红包{$coupon['packettotal']}个,剩余{$coupon['packetsurplus']}个
{/if}
{ife 'creditshop.goods' $item}
每个红包最低
{else}
{if $item['packettype'] == 1}随机金额:每个红包最低{$item['minpacketmoney']}元{/if}
{/if}
{ife 'creditshop.goods' $item}
{else}
{if $item['packettype'] == 1}固定金额:{$item['grant2']}元{/if}
{/if}
{ife 'creditshop.goods' $item} {else}
{$item['title']}
{/if}
{ife 'creditshop.goods' $item} {else}
{$item['displayorder']}
{/if}
{ife 'creditshop.goods' $item} {php echo tpl_form_field_image('thumb',$item['thumb'])} {else} {if !empty($item['thumb'])} {/if} {/if}
{ife 'creditshop.goods' $item}
{else}
现价:{$item['price']} 元 原价:{$item['productprice']} 元/div> {/if}
{ife 'creditshop.goods' $item}
每人共 次,每天提供
空为不限制 {else}
每人{if $item['chance']==0}无限{else}{$item['chance']}{/if}次机会,每天{if $item['totalday']==0}无限{else}{$item['totalday']}{/if}次机会
{/if}
{ife 'creditshop.goods' $item}
消耗 积分 + 金额 元  
可任意组合,可以单独积分兑换,或者积分+现金形式兑换(积分必须大于0) {else}
消耗 {$item['credit']} 积分 花费 {$item['money']} 元现金
{/if}
{ife 'creditshop.goods' $item}
{else}
{if empty($item['dispatchtype'])}运费模板 {if $item['dispatchid'] == 0}默认模板{else}{loop $dispatch_data $dispatch_item}{if $item['dispatchid'] == $dispatch_item['id']}{$dispatch_item['dispatchname']}{/if}{/loop}{/if}{else}统一邮费{/if}
{/if}
{ife 'creditshop.goods' $item}
{else}
{$item['dispatch']} 元
{/if}
{ife 'creditshop.goods' $item} {else}
{if $item['istop']==1}置顶; {/if} {if $item['isrecommand']==1}推荐; {/if} {if $item['istime']==1}限时购买; {/if}
{/if}
{ife 'creditshop.goods' $item}
{php echo tpl_form_field_date('timestart', !empty($item['timestart']) ? date('Y-m-d H:i',$item['timestart']) : date('Y-m-d H:i'), 1)}
{php echo tpl_form_field_date('timeend', !empty($item['timeend']) ? date('Y-m-d H:i',$item['timeend']) : date('Y-m-d H:i'), 1)}
{else}
{if $item['istime']==1} {php echo date('Y-m-d H:i',$item['timestart'])} - {php echo date('Y-m-d H:i',$item['timeend'])} {/if}
{/if}
{ife 'creditshop.goods' $item} {else}
{if empty($item['type'])}暂停{else}开启{/if}
{/if}