联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
轮播图后台添加了四张图片,但是前端只显示一张
类型:迅睿CMS 更新时间:2021-10-09 16:07:54

{xunruicms_img_title}

轮播图后台添加了四张图片,但是前端只显示一张,调用代码如下:
{xunruicms_img_title}


请求大佬帮忙看下

回帖
  • 迅睿框架技术-刘怀远
    #1楼    迅睿框架技术-刘怀远
    2021-10-09 15:51:53
    Chrome 0
    以后代码不要截图,不方便二次修改参考文档:《Loop循环语句》
    满意答案
  • 豆浆哎油条
    #2楼    豆浆哎油条
    2021-10-09 16:01:24
    Chrome 0
    迅睿框架技术-刘怀远 不好意思,下次记得了 {php $mysite=dr_site_value('hdtp');} {loop $mysite $tt} <div class="swiper-slide" style="background-image:url({dr_get_file($tt[1])});"> <div class="m_mn ads1"> <div class="tt"> <p class="ani" swiper-animate-effect="bounceInDown" swiper-animate-duration="0.8s" swiper-animate-delay="0.2s"><img src="{HOME_THEME_PATH}images/banner1_tt1.png" alt="北京网站SEO优化公司|专业的SEO推广外包服务商|新闻稿发布|优檬科技" /></p> <p class="ani" swiper-animate-effect="bounceInLeft" swiper-animate-duration="0.5s" swiper-animate-delay="0.4s">2021年开门红-账户升级-效果升级</p> <p class="ani" swiper-animate-effect="bounceInLeft" swiper-animate-duration="0.5s" swiper-animate-delay="0.7s">我们的宗旨:拒绝暴利,只保留合理利润</p> <p class="ani f-btn" swiper-animate-effect="bounceInLeft" swiper-animate-duration="0.5s" swiper-animate-delay="0.9s"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1274252751&site=qq&menu=yes" class="btn" title="立即体验">立即体验</a></p> <!--<a href="http://wpa.qq.com/msgrd?v=1274252751&uin=&site=qq&menu=yes" target="_blank">免费体验</a>--> </div> </div> </div> {/loop}
  • 迅睿框架技术-刘怀远
    #3楼    迅睿框架技术-刘怀远
    2021-10-09 16:05:48
    Chrome 0
     {php $mysite=dr_site_value('hdtp'); }{php $mysite = array_slice($mysite , 0, 1);}
                {loop $mysite $tt}
                <div class="swiper-slide" style="background-image:url({dr_get_file($tt[1])});">
                    <div class="m_mn ads1">
                        <div class="tt">
                            <p class="ani" swiper-animate-effect="bounceInDown" swiper-animate-duration="0.8s"
                                swiper-animate-delay="0.2s"><img src="{HOME_THEME_PATH}images/banner1_tt1.png"
                                    alt="北京网站SEO优化公司|专业的SEO推广外包服务商|新闻稿发布|优檬科技" /></p>
                            <p class="ani" swiper-animate-effect="bounceInLeft" swiper-animate-duration="0.5s"
                                swiper-animate-delay="0.4s">2021年开门红-账户升级-效果升级</p>
                            <p class="ani" swiper-animate-effect="bounceInLeft" swiper-animate-duration="0.5s"
                                swiper-animate-delay="0.7s">我们的宗旨:拒绝暴利,只保留合理利润</p>
                            <p class="ani f-btn" swiper-animate-effect="bounceInLeft" swiper-animate-duration="0.5s"
                                swiper-animate-delay="0.9s"><a target="_blank"
                                    href="http://wpa.qq.com/msgrd?v=3&uin=1274252751&site=qq&menu=yes" class="btn"
                                    title="立即体验">立即体验</a></p>
                            <!--<a href="http://wpa.qq.com/msgrd?v=1274252751&uin=&site=qq&menu=yes" target="_blank">免费体验</a>-->
                        </div>
                    </div>
                </div>
                {/loop}
    参考文档:《Loop循环语句》
  • 豆浆哎油条
    #4楼    豆浆哎油条
    2021-10-09 16:07:54
    Chrome 0
    @迅睿框架技术-刘怀远:谢谢大佬,非常感谢