<commit_before><?php 
use app\core\helpers\Html;
use app\core\helpers\Url;

\app\assets\VueAsset::register($this);
?>
<div class="content">
    <div class="swiper-container" style="height: 200px;">
      <div class="swiper-wrapper">
        <div class="swiper-slide"><img src="/theme/site/static/images/s1.png" /></div>
        <div class="swiper-slide"><img src="/theme/site/static/images/s1.png" /></div>
        <div class="swiper-slide"><img src="/theme/site/static/images/s1.png" /></div>
      </div>
      <div class="swiper-pagination"></div>
    </div>

    <div class="weui-grids whitebg" style="margin-top:5px; padding-top:0px;">
        <a href="<?=Url::toRoute(['/grave/m/default/index'])?>" class="weui-grid js_grid" data-id="button">
            <div class="weui-grid__icon">
                <img src="/static/images/icons/realition.png" alt="业务办理">
            </div>
            <p class="weui-grid__label">业务办理</p>
        </a>
<!--        <a href="--><?//=Url::toRoute(['/memorial/m/default/view'])?><!--" class="weui-grid js_grid" data-id="button">-->
<!--            <div class="weui-grid__icon">-->
<!--                <img src="/theme/m2/static/mobile/images/icons/memorial.png" alt="纪念馆">-->
<!--            </div>-->
<!--            <p class="weui-grid__label">纪念馆</p>-->
<!--        </a>-->
        <a href="<?=Url::toRoute(['/shop/m/default/index'])?>" class="weui-grid js_grid" data-id="button">
            <div class="weui-grid__icon">
                <img src="/theme/m2/static/mobile/images/icons/flower.png" alt="祭祀">
            </div>
            <p class="weui-grid__label">祭祀</p>
        </a>
        <a href="<?=Url::toRoute(['/m/default/route'])?>" class="weui-grid js_grid" data-id="button">
            <div class="weui-grid__icon">
                <img src="/theme/m2/static/mobile/images/icons/nav.png" alt="一键导航">
            </div>
            <p class="weui-grid__label">一键导航</p>
        </a>

<!--        <a href="#" class="weui-grid js_grid" data-id="button">-->
<!--            <div class="weui-grid__icon">-->
<!--                <img src="/theme/m2/static/mobile/images/icons/album.png" alt="相册">-->
<!--            </div>-->
<!--            <p class="weui-grid__label">相册</p>-->
<!--        </a>-->
<!--        <a href="#" class="weui-grid js_grid" data-id="button">-->
<!--            <div class="weui-grid__icon">-->
<!--                <img src="/theme/m2/static/mobile/images/icons/article.png" alt="投诉建议">-->
<!--            </div>-->
<!--            <p class="weui-grid__label">投诉建议</p>-->
<!--        </a>-->
<!--        <a href="--><?//=Url::toRoute(['/order/m/default/index'])?><!--" class="weui-grid js_grid" data-id="button">-->
<!--            <div class="weui-grid__icon">-->
<!--                <img src="/theme/m2/static/mobile/images/icons/order_list.png" alt="在线起名">-->
<!--            </div>-->
<!--            <p class="weui-grid__label">订单记录</p>-->
<!--        </a>-->
<!--        <a href="--><?//=Url::toRoute(['/user/m/default/index'])?><!--" class="weui-grid js_grid" data-id="button">-->
<!--            <div class="weui-grid__icon">-->
<!--                <img src="/theme/m2/static/mobile/images/icons/user.png" alt="个人资料">-->
<!--            </div>-->
<!--            <p class="weui-grid__label">个人资料</p>-->
<!--        </a>-->
    </div>
    <!--banner 结束-->
    <div class="page__bd">
        <div class="weui-panel weui-panel_access">
            <div class="weui-panel__hd">纪念馆</div>
            <?php foreach ($memorial as $v):?>
            <div class="weui-panel__bd">
                <a href="<?=Url::toRoute(['/memorial/m/default/view', 'id'=>$v->id])?>" class="weui-media-box weui-media-box_appmsg weui-cell weui-cell_access">
                    <div class="weui-media-box__hd">
                        <img class="weui-media-box__thumb" src="<?=$v->getCover('120x120')?>">
                    </div>
                    <div class="weui-media-box__bd">
                        <h4 class="weui-media-box__title"><?=$v->title?></h4>
                        <p class="weui-media-box__desc"><?=$v->intro?></p>
                    </div>
                    <div class="weui-cell__ft">
                        进入
                    </div>
                </a>
            </div>
            <?php endforeach;?>
        </div>
    </div>

    <div class="page__bd">
        <div class="weui-panel weui-panel_access">
            <div class="weui-panel__hd">新闻资讯</div>
            <div class="weui-panel__bd" id="news-box">
                <a v-bind:href="'/m/news/' + item.id +'.html'" class="weui-media-box weui-media-box_appmsg" v-for="item in nitems">
                    <div class="weui-media-box__hd">
                        <img class="weui-media-box__thumb" v-bind:src="item.cover" v-bind:alt="item.title">
                    </div>
                    <div class="weui-media-box__bd">
                        <h4 class="weui-media-box__title" v-text="item.title"></h4>
                        <p class="weui-media-box__desc" v-text="item.summary"></p>
                    </div>
                </a>
            </div>
            <div class="weui-panel__ft">
                <a href="/m/news" class="weui-cell weui-cell_access weui-cell_link">
                    <div class="weui-cell__bd">查看更多</div>
                    <span class="weui-cell__ft"></span>
                </a>    
            </div>
        </div>
    </div>
</div>


<?php $this->beginBlock('news') ?>  
var demo = new Vue({
    el: '#news-box',
    data: {
        gridColumns: ['title', 'author', 'id'],
        nitems: [],
        sendData:{limit:5, thumbSize:'120x120'},
        apiUrl: 'http://api.lion.cn/v1/news/list'<commit_msg>mobile pages<commit_after><?php 
use app\core\helpers\Html;
use app\core\helpers\Url;

\app\assets\VueAsset::register($this);
?>
<div class="content">
    <div class="swiper-container" style="height: 200px;">
      <div class="swiper-wrapper">
        <div class="swiper-slide"><img src="/theme/site/static/images/s1.png" /></div>
        <div class="swiper-slide"><img src="/theme/site/static/images/s1.png" /></div>
        <div class="swiper-slide"><img src="/theme/site/static/images/s1.png" /></div>
      </div>
      <div class="swiper-pagination"></div>
    </div>

    <div class="weui-grids whitebg" style="margin-top:5px; padding-top:0px;">
        <a href="<?=Url::toRoute(['/grave/m/default/index'])?>" class="weui-grid js_grid" data-id="button">
            <div class="weui-grid__icon">
                <img src="/static/images/icons/realition.png" alt="业务办理">
            </div>
            <p class="weui-grid__label">业务办理</p>
        </a>
<!--        <a href="--><?//=Url::toRoute(['/memorial/m/default/view'])?><!--" class="weui-grid js_grid" data-id="button">-->
<!--            <div class="weui-grid__icon">-->
<!--                <img src="/theme/m2/static/mobile/images/icons/memorial.png" alt="纪念馆">-->
<!--            </div>-->
<!--            <p class="weui-grid__label">纪念馆</p>-->
<!--        </a>-->
        <a href="<?=Url::toRoute(['/shop/m/default/index'])?>" class="weui-grid js_grid" data-id="button">
            <div class="weui-grid__icon">
                <img src="/theme/m2/static/mobile/images/icons/flower.png" alt="祭祀">
            </div>
            <p class="weui-grid__label">祭祀</p>
        </a>
        <a href="<?=Url::toRoute(['/m/default/route'])?>" class="weui-grid js_grid" data-id="button">
            <div class="weui-grid__icon">
                <img src="/theme/m2/static/mobile/images/icons/nav.png" alt="一键导航">
            </div>
            <p class="weui-grid__label">一键导航</p>
        </a>

<!--        <a href="#" class="weui-grid js_grid" data-id="button">-->
<!--            <div class="weui-grid__icon">-->
<!--                <img src="/theme/m2/static/mobile/images/icons/album.png" alt="相册">-->
<!--            </div>-->
<!--            <p class="weui-grid__label">相册</p>-->
<!--        </a>-->
<!--        <a href="#" class="weui-grid js_grid" data-id="button">-->
<!--            <div class="weui-grid__icon">-->
<!--                <img src="/theme/m2/static/mobile/images/icons/article.png" alt="投诉建议">-->
<!--            </div>-->
<!--            <p class="weui-grid__label">投诉建议</p>-->
<!--        </a>-->
<!--        <a href="--><?//=Url::toRoute(['/order/m/default/index'])?><!--" class="weui-grid js_grid" data-id="button">-->
<!--            <div class="weui-grid__icon">-->
<!--                <img src="/theme/m2/static/mobile/images/icons/order_list.png" alt="在线起名">-->
<!--            </div>-->
<!--            <p class="weui-grid__label">订单记录</p>-->
<!--        </a>-->
<!--        <a href="--><?//=Url::toRoute(['/user/m/default/index'])?><!--" class="weui-grid js_grid" data-id="button">-->
<!--            <div class="weui-grid__icon">-->
<!--                <img src="/theme/m2/static/mobile/images/icons/user.png" alt="个人资料">-->
<!--            </div>-->
<!--            <p class="weui-grid__label">个人资料</p>-->
<!--        </a>-->
    </div>
    <!--banner 结束-->
    <div class="page__bd">
        <div class="weui-panel weui-panel_access">
            <div class="weui-panel__hd">纪念馆</div>
            <?php foreach ($memorial as $v):?>
            <div class="weui-panel__bd">
                <a href="<?=Url::toRoute(['/memorial/m/default/view', 'id'=>$v->id])?>" class="weui-media-box weui-media-box_appmsg weui-cell weui-cell_access">
                    <div class="weui-media-box__hd">
                        <img class="weui-media-box__thumb" src="<?=$v->getCover('120x120')?>">
                    </div>
                    <div class="weui-media-box__bd">
                        <h4 class="weui-media-box__title"><?=$v->title?></h4>
                        <p class="weui-media-box__desc"><?=$v->intro?></p>
                    </div>
                    <div class="weui-cell__ft">
                        进入
                    </div>
                </a>
            </div>
            <?php endforeach;?>
        </div>
    </div>

    <div class="page__bd">
        <div class="weui-panel weui-panel_access">
            <div class="weui-panel__hd">新闻资讯</div>
            <div class="weui-panel__bd" id="news-box">
                <a v-bind:href="'/m/news/' + item.id +'.html'" class="weui-media-box weui-media-box_appmsg" v-for="item in nitems">
                    <div class="weui-media-box__hd">
                        <img class="weui-media-box__thumb" v-bind:src="item.cover" v-bind:alt="item.title">
                    </div>
                    <div class="weui-media-box__bd">
                        <h4 class="weui-media-box__title" v-text="item.title"></h4>
                        <p class="weui-media-box__desc" v-text="item.summary"></p>
                    </div>
                </a>
            </div>
            <div class="weui-panel__ft">
                <a href="/m/news" class="weui-cell weui-cell_access weui-cell_link">
                    <div class="weui-cell__bd">查看更多</div>
                    <span class="weui-cell__ft"></span>
                </a>    
            </div>
        </div>
    </div>
</div>


<?php $this->beginBlock('news') ?>  
var demo = new Vue({
    el: '#news-box',
    data: {
        gridColumns: ['title', 'author', 'id'],
        nitems: [],
        sendData:{limit:5, thumbSize:'120x120'},
        apiUrl: 'http://api.ibagou.com/v1/news/list'
{'fraction_non_alphanumeric': 0.22962313759859773, 'fraction_numerical': 0.005784399649430325, 'mean_word_length': 1.8050639134709932, 'pattern_counts': {'":': 0, '<': 345, '<?xml version=': 0, '>': 357, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3812280', 'n_tokens_mistral': 3961, 'n_tokens_neox': 3943, 'n_words': 530}