Pbootcms异常指南

问:后台正常,前台异常(404)

答:域名没有授权。

 

问:nginx伪静态

location / {
    #//...省略部分代码
    if (!-e $request_filename){
        rewrite  ^(.*)$  /index.php?s=$1  last;   break;
    }
}

 

2:轮播图不会轮播

<!-- 幻灯片 -->
<div class="swiper-container">
    <div class="swiper-wrapper">
        {pboot:slide num=5 gid=1}
            <div class="swiper-slide">
                <a href="[slide:link]">
                    <img src="[slide:src]" class="d-block w-100" >
                </a>
                <div class="container">
                    <div class="position-absolute text-light" style="top:30%;">
                    </div>
                </div>
            </div>
        {/pboot:slide} 
    </div>
    <div class="swiper-button-prev d-none d-md-block"></div><!--左箭头-->
    <div class="swiper-button-next d-none d-md-block"></div><!--右箭头-->
    <div class="swiper-pagination"></div>
</div>
如果不会动,就吧下面这个加上
<script src="{pboot:sitetplpath}/swiper-4.3.5/js/swiper.min.js"></script> <script> var mySwiper = new Swiper ('.swiper-container', { direction: 'horizontal', loop: true, speed: 1500, autoplay : { delay:3500, disableOnInteraction: false }, // 如果需要分页器 pagination: { el: '.swiper-pagination', clickable :true, }, // 如果需要前进后退按钮 navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }) </script>

 

posted @ 2022-06-16 16:20  大da脸  阅读(550)  评论(0编辑  收藏  举报