轮播图后台添加了四张图片,但是前端只显示一张

迅睿框架 更新 2021-10-09 16:07:54 豆浆哎油条

{xunruicms_img_title}

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


请求大佬帮忙看下

方案

  • 迅睿框架技术-刘怀远 #1 · 2021-10-09 15:51:53
    满意答案
    以后代码不要截图,不方便二次修改参考文档:《Loop循环语句》
  • 豆浆哎油条 #2 · 2021-10-09 16:01:24
    迅睿框架技术-刘怀远 不好意思,下次记得了 {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
     {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
    @迅睿框架技术-刘怀远:谢谢大佬,非常感谢

迅睿系统漏洞

站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;
CMS内容同步复制
CMS内容同步复制(2026-10-10)
增加时间是否更新的开关