请大神帮忙看看ecshop仿京东组合购买问题

2016-07-07 16:02 来源:www.chinab4c.com 作者:ecshop专家



安装了本论坛的ecshop仿京东组合购买插件,插件发布地址为:http://bbs.ecshop.com/viewthread.php?tid=181673&from=favorites,安装成功后显示的图示如下: 01.jpg
求指导如何将此修改成横排形式,如 1.jpg 。非常感谢。此插件代码如下:

  1. <!-- {if $fittings} -->
  2. <script type="text/javascript">
  3. function check(){
  4. var result='{$goods.goods_id},';
  5. var fid = document.getElementById('boxOne');
  6. var box = fid.getElementsByTagName('input');
  7. for(var i = 0; i < box.length; i++){
  8. if(box.type == 'checkbox' && box.checked){
  9. result = result + box.value + ',';
  10. }
  11. }
  12. //alert(result);
  13. //return false;
  14. //在Common.js文件中添加了addToCartNums方法
  15. addToCartNums(result);
  16. document.documentElement.scrollTop=0;
  17. }
  18. /*
  19. 计算合计金额,by 517ld.com Joe
  20. */
  21. function totalPrice(){
  22. //var result=Math.round({$goods.shop_price});
  23. var re = /[¥元]/g;
  24. <!--{if $goods.is_promote and $goods.gmt_end_time } 促销价格-->
  25. var result='{$goods.promote_price}';
  26. result=result.replace(re,'');
  27. <!--{else}-->
  28. var result={$goods.shop_price};
  29. <!--{/if}-->
  30. //alert(result);
  31. var fid = document.getElementById('boxOne');
  32. var box = fid.getElementsByTagName('input');
  33. var j=1;
  34. for(var i = 0; i < box.length; i++){
  35. if(box.type == 'checkbox' && box.checked){
  36. var a = box.name;
  37. result =Number(result) +Number(a.replace(re, ''));
  38. j+=1;
  39. }
  40. }
  41. result_format='¥%s元';
  42. re_re=/\%s/g;
  43. result_format=result_format.replace(re_re, result);
  44. document.getElementById("totalPrice").innerHTML=result_format;
  45. document.getElementById("totalNum").innerHTML=j;
  46. }
  47. </script>
  48. <div class="infotit clearfix">
  49. <h2><span class="l"></span><span class="r"></span>最佳组合</h2>
  50. </div>
  51. <div class="fitting" id="boxOne">
  52. <div class="goodsbox1">
  53. <div class="goodsbox">
  54. <div class="imgbox"><img src="{$goods.goods_thumb}" alt="{$goods.goods_style_name|escape:html}" /></div>
  55. <a href="#" target="_blank" title="{$goods.goods_style_name|escape:html}">{$goods.goods_style_name|escape:html}</a><br />
  56. <!--{if $goods.is_promote and $goods.gmt_end_time } 促销价格-->
  57. <b class="f1">{$goods.promote_price}</b>
  58. <!--{else}-->
  59. <b class="f1">{$goods.shop_price_formated}</b>
  60. <!--{/if}-->
  61. </div>
  62. </div>
  63. <div class="fitting_right">
  64. <br><br><br>
  65. <font style="font-size:13px;font-weight:bold;color:#003399;">购买最佳组合</font><br>
  66. 已选择:<span id="totalNum" style="color:red;"></span>个商品<br>
  67. 搭配价:<span id="totalPrice" style="color:red;font-weight:bold;"></span><br>
  68. <image src="/images/gmzh.gif" style="cursor:hand" >
  69. </div>
  70. <div class="fitting_middle">
  71. <!--{foreach from=$fittings item=goods}-->
  72. <div class="goodsbox">
  73. <div class="imgbox"><a href="{$goods.url}" target="_blank"><img src="{$goods.goods_thumb}" alt="{$goods.name|escape:html}" /></a></div>
  74. <a href="{$goods.url}" target="_blank" title="{$goods.goods_name|escape:html}">{$goods.short_name|escape:html}</a><br />
  75. <input type="checkbox" name="{$goods.fittings_price}" value="{$goods.goods_id}"checked=checked /><b class="f1">{$goods.fittings_price}</b>
  76. </div>
  77. <!--{/foreach}-->
  78. </div>
  79. <script>totalPrice();</script>
  80. </div>
  81. <!-- {/if} -->
复制代码

回答:
自己顶上去,求有空的大神帮忙解决

不懂,我也菜鸟,帮你顶顶

这个第一次遇到

我也菜鸟,帮你顶顶

你好?
你要这个组合插件样式?