{foreach($shop_list["list"] as $item)} {set $arr_opentime=tab_meal_shop::get_opentime($item['shop_id'])} {set $isclose=0} {if($item['shop_state']==-1 || $arr_opentime['nowindex']<1 || (!empty($item['extend']['weekday']) && !in_array($weekday,$item['extend']['weekday'])) || ($item['shop_day_limit']>0 && $item['shop_day_sold']>=$item['shop_day_limit']))} {set $isclose=1} {/if} {$item['shop_name']}{if(!empty($item['len']))}{$item['len']}km{/if} 销量{$item['shop_sold']}单 {if(empty($item['shop_addprice']))}免费配送{else}配送费{$item['shop_addprice']}元{/if} | {$item['shop_dispatch_price']}元起送 | {$item['extend']['arrivedelay']}分钟送达 {if(isset($act_info['method']['id_'.$item['shop_id']]))} {foreach($act_info['method']['id_'.$item['shop_id']] as $act_item=>$act)} {if($act['id']==1)} {else if($act['id']==2)} {else if($act['id']==3 || $act['id']==4)} {else if($act['id']==5 || $act['id']==6)} {/if} {/foreach} {/if} {if($isclose==1)} {if($item['shop_day_limit']>0 && $item['shop_day_sold']>=$item['shop_day_limit'])}今日售完{else if($item['shop_state']==-1)}休息中{else if($arr_opentime['havenext']==1)}即将开始{else}明天继续{/if} {/if} {if(cls_obj::get("cls_user")->is_login())} {if($item['iscollect'])}{else}{/if}{/if} {/foreach}