<a class="btn btn-block" href="#mzj">返回</a> </div> </div> </div> <!-- 获奖名单 页面 --> <div id='hjmd' class='modal'> <header class="bar bar-nav"> <a class="icon icon-close pull-right" href="#hjmd"></a> <h1 class='title'>获奖名单</h1> </header> <div class="content"> <?php $total_rewards_count = \app\models\MDisk::find()->where(['>', 'win', 0])->count(); //if (20 > $total_rewards_count) { $total_rewards = \app\models\MDisk::find()->where(['>', 'win', 0])->orderBy(['win_time' => SORT_DESC])->all(); //} else { // $total_rewards = \app\models\MDisk::find()->where(['>', 'win', 0])->orderBy(['win_time' => SORT_DESC])->limit(20)->all(); //} ?> <ul class="table-view"> <li class='table-view-cell'> <?php if ($total_rewards_count < 400) { ?> 月末抽奖已有<?php echo $total_rewards_count; ?> 位中奖 <?php