Esempio n. 1
0
<?php

/* @var $this yii\web\View */
$this->title = '商品列表';
use frontend\services\ProductService;
use yii\helpers\Url;
use frontend\extensions\scrollpager\ScrollPager;
use yii\widgets\ListView;
echo $this->render('@app/views/layouts/main_header.php', ['icons' => ['product-content' => Url::toRoute('/product/addproduct'), 'twitter-content' => Url::toRoute('/index')]]);
echo $this->render('@app/views/layouts/servicesMenu.php');
?>
<div class="content">
    <?php 
$data = ['limit' => 5];
$productlists = ProductService::findProducts($data, true);
if ($productlists) {
    echo ListView::widget(['dataProvider' => $productlists, 'itemOptions' => ['class' => 'item'], 'emptyText' => '您所在的地区没有商品数据', 'itemView' => '_item_product_view', 'pager' => ['class' => ScrollPager::className()]]);
} else {
    ?>

        <div class="container" style="min-height: 350px;">
            <p>还没有发布商品</p>
        </div>
    <?php 
}
?>
    <?php 
echo $this->render('@app/views/layouts/main_footer.php');
?>
</div>
Esempio n. 2
0
">发货中</a>
        <a href="<?php 
echo Url::toRoute('/member/product/buyed');
?>
?status=3" class="tab-but tab-but-3<?php 
echo $status == 3 ? ' tab-active' : '';
?>
">成功购买</a>
        <a href="<?php 
echo Url::toRoute('/member/product/buyed');
?>
?status=2" class="tab-but tab-but-4<?php 
echo $status == 2 ? ' tab-active' : '';
?>
">商家取消</a>     
    </div>     
</div>
<div class="container no-bottom" style="padding:0px 10px;">
    <?php 
if ($productorders) {
    echo ListView::widget(['dataProvider' => $productorders, 'itemOptions' => ['class' => 'item'], 'itemView' => '_item_product_buyed_view', 'pager' => ['class' => ScrollPager::className()]]);
} else {
    ?>
        <div class="container" style="min-height: 350px;">
            <p>暂时没有资金记录</p>
        </div>
<?php 
}
?>
</div>
<div class="decoration"></div>
Esempio n. 3
0
    <ul class="icon-list qys_icon_list" style="margin:5px 0px;">
        <li class="letter-list pull-right">私信:<a style="display: inline-table;cursor: pointer;" href="<?php 
echo Url::toRoute('/say/private');
?>
"><?php 
echo $priviteUserComent;
?>
</a></li>
    </ul>
    <div style="clear: both;"></div>
</div>
<div class="content">
    <?php 
$data = ['limit' => 5, 'is_public' => 1];
$logisticsLists = CommentService::findComments($data);
if ($logisticsLists) {
    echo ListView::widget(['dataProvider' => $logisticsLists, 'itemOptions' => ['class' => 'item qys-item'], 'itemView' => '_item_comment_view', 'pager' => ['class' => ScrollPager::className()]]);
} else {
    ?>

        <div class="container" style="min-height: 350px;">
            <p>没有人吐槽呢</p>
        </div>
    <?php 
}
?>
    <?php 
echo $this->render('@app/views/layouts/main_footer.php');
?>
</div>
Esempio n. 4
0
/* @var $this yii\web\View */
$this->title = '我的好友';
use frontend\services\FriendService;
use yii\widgets\ListView;
use frontend\extensions\scrollpager\ScrollPager;
use yii\helpers\Url;
?>
<div class="container no-bottom">
    <img class="responsive-image" src="/images/lanmu/bannar_friend.jpg" alt="img">
</div>
<?php 
echo $this->render('@app/modules/member/views/layouts/l_member_header.php', ['icons' => ['product-content' => Url::toRoute('/member/friend/addfriend'), 'twitter-content' => Url::toRoute('/index')]]);
?>
<div class="container no-bottom" style="padding:0px 10px;">
    <?php 
$user_id = Yii::$app->user->getId();
$data = ['user_id' => $user_id, 'limit' => 10];
$productlists = FriendService::findFriends($data);
if ($productlists) {
    echo ListView::widget(['dataProvider' => $productlists, 'itemOptions' => ['class' => 'item'], 'itemView' => '_item_friend_index_view', 'pager' => ['class' => ScrollPager::className()]]);
} else {
    ?>
        <div class="container" style="min-height: 350px;">
            <p>暂时没有好友记录</p>
        </div>
    <?php 
}
?>
</div>
<div class="decoration"></div>