人人商城

detail.html 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {template '_header'}
  2. <link href="{php echo EWEI_SHOPV2_LOCAL}static/css/plugingrant.css" rel="stylesheet">
  3. <div class="page-heading">
  4. <!--<span class='pull-right'>
  5. <a class='btn btn-default btn-sm' href="{php echo webUrl('plugins')}">返回我的应用</a>
  6. </span>-->
  7. <h2>{$item['name']}</h2>
  8. </div>
  9. <div class="plugingrant-container row">
  10. <div class="plugingrant-container-left">
  11. <div class="plugingrant-head row">
  12. <div class="plugingrant-head-left">
  13. <img src="{php echo empty($item['thumb'])?'../addons/ewei_shopv2/static/images/plugin.png': tomedia($item['thumb'])}" alt="{$item['name']}">
  14. </div>
  15. <div class="plugingrant-head-right">
  16. <h2>{if !empty($item['name'])}{$item['name']}{else}{$item['pname']}{/if}</h2>
  17. {if $type=='plugin'}
  18. <ul class="grant-detail-left-ul">
  19. <li><span>适用版本:</span><span>{if $item['isv2']>0}V2{else}其他{/if}</span></li>
  20. <li><span>版本号:</span><span>{$item['version']}</span></li>
  21. <!--<li><span>销量:</span><span>34</span></li> -->
  22. </ul>
  23. {/if}
  24. <div style="clear:both;"></div>
  25. <div class="grant-detail-right-top">
  26. <div class="grant-detail-right-top-info">
  27. <div class="grant-detail-peice" style="height:auto;line-height: 50px">
  28. <span>价格:</span>
  29. <ul class="grant-detail-peice-ul">
  30. {loop $item['data'] $row}
  31. <li><span>{if $row['date']==0}永久{else}{$row['date']}个月{/if}</span>&yen;{php echo htmlspecialchars_decode($row['price'])}</li>
  32. {/loop}
  33. </ul>
  34. <div style="clear:both;"></div>
  35. </div>
  36. <label class="grant-detail-paytype">
  37. 支付方式:
  38. {if $setting['alipay']>0}<img src="{php echo EWEI_SHOPV2_LOCAL}static/images/plugingrant/alipay.png" width="60px" alt="">{/if}
  39. {if $setting['weixin']>0}&nbsp;<img src="{php echo EWEI_SHOPV2_LOCAL}static/images/plugingrant/weixin.png" width="70px" alt="">{/if}
  40. </label>
  41. </div>
  42. <a class="grant-shop-btn" href="{php echo webUrl('plugingrant/create',array('id'=>$item['id'],'cate'=>$type))}" target="_blank">立即购买</a>
  43. </div>
  44. </div>
  45. </div>
  46. {if $type=='plugin' && !empty($package)}
  47. <div class="grant-package">
  48. <div class="grant-package-top">搭配套餐</div>
  49. <div class="grant-package-bot">
  50. {loop $package $index $row}
  51. <ul class="grant-package-ul">
  52. {loop $row['plugin'] $ind $r}
  53. <li class="grant-package-li grant-package-li-text" style="{if $ind==0}display:none;{/if}">
  54. <p>+</p>
  55. </li>
  56. <li class="grant-package-li grant-package-lia">
  57. <a href="javascript:void(0);">
  58. <img src="{$r['thumb']}" alt="{$r['name']}">
  59. <p>{$r['name']}</p>
  60. </a>
  61. </li>
  62. {/loop}
  63. <li class="grant-package-li-mid grant-package-li-text">
  64. <p>=</p>
  65. </li>
  66. <li class="grant-package-li-right">
  67. <div class="grant-package-price">
  68. <span>{if $row['data'][0]['date']==0}永久{else}{$row['data'][0]['date']}个月{/if}</span>
  69. <p>&yen;{php echo price_format($row['data'][0]['price'],2)}</p>
  70. <a href="{php echo webUrl('plugingrant/create',array('id'=>$row['id'],'cate'=>'package'))}">立刻购买</a>
  71. </div>
  72. </li>
  73. <div style="clear:both;"></div>
  74. </ul>
  75. {/loop}
  76. {if count($package)>1}
  77. <div class="grant-package-more">
  78. <a href="javascript:void(0);">点击查看更多套餐</a>
  79. </div>
  80. {/if}
  81. </div>
  82. </div>
  83. {/if}
  84. <div class="plugingrant-content">
  85. {php echo htmlspecialchars_decode($item['content'])}
  86. </div>
  87. </div>
  88. <div class="plugingrant-container-right">
  89. {if !empty($setting['customer']) || $contacts || !empty($setting['servertime'])}
  90. <div class="grant-detail-right-bot">
  91. {if !empty($setting['customer'])}
  92. <strong>联系方式</strong>
  93. <p>在线客服:<span>
  94. <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$setting['customer']}&site=qq&menu=yes"><img src="http://wpa.qq.com/pa?p=2:{$setting['customer']}:51" alt=""></a>
  95. </span></p>
  96. {/if}
  97. {loop $contacts $row}
  98. {if !empty($row['tel'])}<p>联系电话:<span>{$row['tel']}{if !empty($row['note'])}({$row['note']}){/if}</span></p>{/if}
  99. {/loop}
  100. {if !empty($setting['servertime'])}
  101. <p>服务时间:<span>{$setting['servertime']}</span></p>
  102. {/if}
  103. </div>
  104. {/if}
  105. </div>
  106. </div>
  107. <script>
  108. $(function () {
  109. if($(".grant-package-ul").length>1){
  110. $(".grant-package-ul:not(:first)").hide();
  111. }
  112. $(".grant-package-more a").off("click").on("click",function () {
  113. if($(".grant-package-ul:not(:first)").css("display")=="none"){
  114. $(".grant-package-ul:not(:first)").fadeIn();
  115. }else{
  116. $(".grant-package-ul:not(:first)").fadeOut();
  117. }
  118. })
  119. })
  120. </script>
  121. {template '_footer'}