手机端推荐文章调用问题

2018-05-11 19:39发布

想在手机端问题的下方调用后台博客管理里面的手机首页显示文章,电脑端显示正常,手机端却不行;调用代码为<!--{loop $topiclist $index $topic}--><!--{/loop}-->在手机端无用,然后尝试使用手机端的精选文章代码跟上述的一样。


友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
2条回答

相关文章和问题都是通过相同的分类id关联:



   <div class="recommend">
   <div class="title">
    <i class="fa fa-wenti"></i>
   <span  class="title_text">相关文章</span>
      <span class="morelink">
     <a href="{url topic/catlist/$question['cid']}"><i class="fa fa-ellipsis-h" ></i></a>
    </span>
   </div>
   <ul class="list">

  <!--{loop $topiclist $topic}-->
   <li>


   <a target="_self" class="li-a-title" title=" {$topic['title']}" href="{url topic/getone/$topic['id']}" >
   {$topic['title']}
   </a>
</li>
  <!--{/loop}-->
      </ul>
</div>


作者追问:2018-05-12 09:02

    <!--{eval $topiclist=$this->fromcache('topiclistinphone');}-->
<div class="au_side_box_content">
            <!--列表部分-->
                    <div class="au_resultitems">
                        <!--{loop $topiclist $index $topic}-->
                        <div class="au_item"  {if $topic['image']!=null} style="height:2.2rem" {/if}>
                          <div class="au_question_title">    <a   href="{url topic/getone/$topic['id']}"  >{$topic['title']}</a></div>
                          <div class="au_question_user_info">
                               <a class="" href="{url user/space/$topic['authorid']}">
                    <img class="au_question_user_info_avatar" src="{$topic['avatar']}" >
                </a>  <span>      <a class="blue-link" target="_blank" href="{url user/space/$topic['authorid']}">
                {$topic['author']}
               {if $topic['author_has_vertify']!=false}<i class="fa fa-vimeo {if $topic['author_has_vertify'][0]=='0'}v_person {else}v_company {/if}  " data-toggle="tooltip" data-placement="right" title="" {if $topic['author_has_vertify'][0]=='0'}data-original-title="个人认证" {else}data-original-title="企业认证" {/if} ></i>{/if}
                </a></span><span><i class="fa fa-clock-o"></i>{$topic['format_time']} </span>

                              <span><i class="fa fa-twitch"></i>{$topic['articles']} </span>


                          </div>
                           <div class="au_question_info_content">

   {if $topic['image']!=null}

          <div class="thumbnail_img">
                                   <a  href="{url topic/getone/$topic['id']}" >
            <img src="{$topic['image']}">
        </a>
                                  </div>
            {/if}
                                  {if $topic['price']!=0}
                         <div class="box_toukan ">


           <a  class="thiefbox font-12" ><i class="icon icon-lock font-12"></i>  阅读需支付 $topic['price']  积分……</a>



          </div>
                   {else}
                   {eval echo clearhtml($topic['description']);}

                    {/if}
                           </div>

                        </div>

    <!--{/loop}-->
                    </div>
            </div>


 精彩回答 0.1  元偷偷看……2人看过

一周热门 更多>