} ?> <div class="media-body"> <?php echo emoji_unified_to_html(emoji_softbank_to_unified($vote->user->nickname)); ?> <p><?php echo $vote->create_time; ?> </p> </div> <span class="badge badge-primary" style="font-size: 12pt"> <?php echo \app\models\MQingshiVote::find()->where(['author_openid' => $vote->author_openid])->count(); //echo $vote->c; ?> </span> </a> </li> <?php } ?> </ul> <span style="color:red">榜单长度有限,得票10票以上才能上榜哟~</span>
<br> <p align="center"> <a class="btn btn-block" href="#tppm" style="width: 300px" >返回</a> </p> </div> </div> <div id='tp_friends' class='modal'> <header class="bar bar-nav"> <a class="icon icon-close pull-right" href="#tp_friends"></a> <h1 class='title'>帮忙投票的小伙伴们</h1> </header> <div class="content"> <?php $tp_friends = \app\models\MQingshiVote::find()->where(['author_openid' => $qingshi_author->author_openid])->orderBy(['vote_time' => SORT_DESC])->all(); $vote_cnt = 0; ?> <ul class="table-view"> <li class='table-view-cell'> </li> <?php foreach ($tp_friends as $tp_friend) { $vote_cnt++; if ($vote_cnt > 20) { break; } $friend = \app\models\MUser::findOne(['openid' => $tp_friend->vote_openid]); ?>