{eyou:sql sql='SELECT ul.product_name,um.order_amount,um.add_time,u.nickname,u.head_pic FROM __PREFIX__shop_order AS um LEFT JOIN __PREFIX__users AS u on um.users_id = u.users_id LEFT JOIN __PREFIX__shop_order_details AS ul on ul.order_id = um.order_id WHERE um.order_status = 3 ORDER BY um.moneyid DESC LIMIT 0,10' cachetime='-1'} <li> <img src="{$field.head_pic}"> <a><strong>{$field.nickname}</strong><em>¥{$field.order_amount}</em>购买了<span>{$field.product_name}</span><i>[{$field.add_time|MyDate='Y-m-d H:i:s',###}]</i></a> </li> {/eyou:sql}