Example #1
0
" class="tab-but tab-but-1<?php 
echo $showtype == 2 ? ' tab-active' : '';
?>
">实物礼品</a>
        <a href="<?php 
echo Url::toRoute('/member/account/coupon') . '?type=3';
?>
" class="tab-but tab-but-1<?php 
echo $showtype == 3 ? ' tab-active' : '';
?>
">优惠券礼品</a>     
    </div>     
</div>
<?php 
$data = ['user_id' => $user_id, 'limit' => 10, 'get' => $get];
$accountlogs = AccountService::findGift($data);
?>
<div class="one-half-responsive last-column">
    <?php 
if ($accountlogs['models']) {
    ?>
        <?php 
    Pjax::begin(['id' => 'loadpajax']);
    $begin = $accountlogs['pages']->getPage() * $accountlogs['pages']->pageSize + 1;
    $end = $begin + $accountlogs['pages']->getPageSize() - 1;
    if ($begin > $end) {
        $begin = $end;
    }
    ?>
        <div class="summary">第<b><?php 
    echo $begin . '-' . $end;
Example #2
0
</div>
<div class="container">
    <div class="tabs">
        <a href="<?php 
echo Url::toRoute('/member/account/tixian');
?>
" class="tab-but tab-but-1">申请提现</a>
        <a href="<?php 
echo Url::toRoute('/member/account/tixianlog');
?>
" class="tab-but tab-but-2 tab-active">提现记录</a>     
    </div>     
</div>
<?php 
$data = ['user_id' => $user_id, 'limit' => 10];
$accountlogs = AccountService::findCashlog($data);
?>
<div class="one-half-responsive last-column">
    <?php 
if ($accountlogs['models']) {
    ?>
        <?php 
    Pjax::begin(['id' => 'loadpajax']);
    $begin = $accountlogs['pages']->getPage() * $accountlogs['pages']->pageSize + 1;
    $end = $begin + $accountlogs['pages']->getPageSize() - 1;
    if ($begin > $end) {
        $begin = $end;
    }
    ?>
        <div class="summary">第<b><?php 
    echo $begin . '-' . $end;