急!发现一个严重问题

2016-07-07 15:37 来源:www.chinab4c.com 作者:ecshop专家



3.jpg
没有图片但是还能显示放大图片后的效果,与实际不相符的图片放大效果,还有,在放大镜中显示的标题也不是显示相对应图片的标题,还有,怎样才能过滤掉标题中的html字符呢……哪位老大帮个忙,看看怎么解决?
还有
怎样才能让商品小类页和商品详页的分类树能与首页和大类页上的分类树一样,应该怎样改模板?
小类和详页分类树:
2.jpg
首页和大类页分类树:
1.jpg

回答:
在goods.dwt处加:
  1. <!-- {if $pictures}-->

  2. <a href="{$pictures.0.img_url}" id="zoom1" class="MagicZoom MagicThumb" title="{$goods.goods_style_name}">

  3. <img src="{$goods.goods_img}" alt="{$goods.goods_name|escape:html}" width="230px;"/>

  4. </a>

  5. <!-- {else} -->

  6. <a href="{$pictures.0.img_url}" id="zoom1" class="MagicZoom MagicThumb" title="{$goods.goods_style_name}">

  7. <img src="{$goods.goods_img}" alt="{$goods.goods_name|escape:html}" width="230px;"/>

  8. </a>

  9. <!-- {/if}-->
复制代码
找到 库文件 goods_gallery.lbi
改为如下
  1. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  2. <!-- {if $pictures}-->

  3. <div class="clearfix">

  4. <span onmouseover="moveLeft()" onmousedown="clickLeft()" onmouseup="moveLeft()" onmouseout="scrollStop()"></span>

  5. <div class="gallery">

  6. <div id="demo">

  7. <div id="demo1" style="float:left">

  8. <ul>

  9. <!-- {foreach from=$pictures item=picture}-->

  10. <li>

  11. <ahref="{$picture.img_url}"

  12. rel="zoom1"

  13. rev="{$picture.img_url}"

  14. title="{$picture.img_desc|escape:html}">

  15. <img src="{if $picture.thumb_url}{$picture.thumb_url}{else}{$picture.img_url}{/if}" alt="{$goods.goods_name}" class="B_blue" /></a>



  16. </li>

  17. <!--{/foreach}-->

  18. </ul>

  19. </div>

  20. <div id="demo2" style="display:inline; overflow:visible;"></div>

  21. </div>

  22. </div>
复制代码
但是出来的效果是:
  1. <table width="300" height="300" cellpadding="0" cellspacing="0" align="center" class="propic">
  2. <tr>
  3. <td width="300">

  4. <a href="images/200909/goods_img/129_P_1253070332707.jpg" id="zoom1" class="MagicZoom MagicThumb" title="联想 IdeaPad Y550A-TSI(H)(白)">
  5. <img src="images/200909/goods_img/129_G_1253063993679.jpg" alt="联想 IdeaPad Y550A-TSI(H)(白)" width="300"/>
  6. </a>
  7. </td></tr></table>

  8. <div class="clearfix .galleryBox">
  9. <span onmouseover="moveLeft()" onmousedown="clickLeft()" onmouseup="moveLeft()" onmouseout="scrollStop()" class="galleryL" ></span>
  10. <div class="gallery">
  11. <div id="demo">
  12. <div id="demo1" style="float:left">
  13. <ul>

  14. <li>
  15. <ahref="images/200909/goods_img/129_P_1253070332707.jpg" rel="zoom1" rev="images/200909/goods_img/129_P_1253070332707.jpg" title="">
  16. <img src="images/200909/thumb_img/129_thumb_P_1253070332598.jpg" alt="联想 IdeaPad Y550A-TSI(H)(白)" /></a>

  17. </li>

  18. <li>
  19. <ahref="images/200909/goods_img/129_P_1253065257457.jpg" rel="zoom1" rev="images/200909/goods_img/129_P_1253065257457.jpg" title="ccc">
  20. <img src="images/200909/thumb_img/129_thumb_P_1253065257979.jpg" alt="联想 IdeaPad Y550A-TSI(H)(白)" /></a>

  21. </li>

  22. <li>
  23. <ahref="images/200909/goods_img/129_P_1253065368414.jpg" rel="zoom1" rev="images/200909/goods_img/129_P_1253065368414.jpg" title="">
  24. <img src="images/200909/thumb_img/129_thumb_P_1253065368514.jpg" alt="联想 IdeaPad Y550A-TSI(H)(白)" /></a>

  25. </li>

  26. </ul>
  27. </div>
  28. <div id="demo2" style="display:inline; overflow:visible;"></div>
  29. </div>
  30. </div>
复制代码
认真看一下,发现<a>标签中的图片地址明显不一样,怎样修改才能让图片地址一致呢:

谁能帮一下忙呀……

估计是有原图,但没商品图。放大显示的图片一般是原图