selecturl_tpl.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php if( $type=='good'){ ?>
  2. <?php if( empty($list)){ ?>
  3. <div class="tip">抱歉!未查询到<?php if( !empty($kw)){ ?>与“{$kw}”<?php } ?>相关的商品,请更换关键字后重试。</div>
  4. <?php }else{ ?>
  5. <?php foreach( $list as $item ){ ?>
  6. <div class="line good">
  7. <div class="image"><img src="{$item['thumb']}"/></div>
  8. <nav title="选择" class="choose_dan_link_url btn btn-default btn-sm" data-href="/lionfish_comshop/pages/goods/goodsDetail?id={$item['id']}">选择</nav>
  9. <div class="text">
  10. <p class="name">{$item['title']}</p>
  11. <p class="price">原价: {$item['productprice']}元 <?php if( $item['type'] == 'integral' ){ ?>现价: {$item['marketprice']}积分<?php }else{ ?>现价: {$item['marketprice']}元<?php } ?></p>
  12. </div>
  13. </div>
  14. <?php } ?>
  15. <?php } ?>
  16. <?php } ?>
  17. <?php if( $type=='article'){ ?>
  18. <?php if( empty($list)){ ?>
  19. <div class="tip">抱歉!未查询到<?php if( !empty($kw)){ ?>与“{$kw}”<?php } ?>相关的文章,请更换关键字后重试。</div>
  20. <?php }else{ ?>
  21. <?php foreach( $list as $item ){ ?>
  22. <div class="line good">
  23. <nav title="选择" class="choose_dan_link_url btn btn-default btn-sm" data-href="/lionfish_comshop/pages/user/articleProtocol?id={$item['id']}">选择</nav>
  24. <div class="text">
  25. <p class="name">{$item['title']}</p>
  26. </div>
  27. </div>
  28. <?php } ?>
  29. <?php } ?>
  30. <?php } ?>
  31. <?php if( $type=='url'){ ?>
  32. <?php if( $list['no_data']==1){ ?>
  33. <div class="tip">抱歉!未查询到<?php if( !empty($kw)){ ?>与“{$kw}”<?php } ?>相关的链接,请更换关键字后重试。</div>
  34. <?php }else{ ?>
  35. <?php foreach( $list['list'] as $item ){ ?>
  36. <?php if( !empty($item['list'])){ ?>
  37. <div class="page-head"><h4><i class="fa fa-folder-open-o"></i> {$item['name']}</h4></div>
  38. <?php } ?>
  39. <?php foreach( $item['list'] as $child ){ ?>
  40. <nav data-href="<?php echo $platform?$child['url_wxapp']:$child['url']; ?>" class="choose_dan_link_url btn btn-default btn-sm" title="商城首页">{$child['name']}</nav>
  41. <?php } ?>
  42. <?php } ?>
  43. <?php } ?>
  44. <?php } ?>
  45. <?php if($type=='special'){ ?>
  46. <?php if(empty($list)){ ?>
  47. <div class="tip">抱歉!未查询到<?php if(!empty($kw)){ ?>与“{$kw}”<?php } ?>相关的链接,请更换关键字后重试。</div>
  48. <?php }else{ ?>
  49. <?php foreach($list as $item){ ?>
  50. <div class="line">
  51. <div title="选择" class="choose_dan_link_url btn btn-default btn-sm" data-href="/lionfish_comshop/moduleA/special/index?id={$item['id']}">选择</div>
  52. <div class="text">
  53. <p class="name">{$item['name']}</p>
  54. </div>
  55. </div>
  56. <?php } ?>
  57. <?php } ?>
  58. <?php } ?>
  59. <?php if($type=='category'){ ?>
  60. <?php if(empty($list)){ ?>
  61. <div class="tip">抱歉!未查询到<?php if( !empty($kw)){ ?>与“{$kw}”<?php } ?>相关的链接,请更换关键字后重试。</div>
  62. <?php }else{ ?>
  63. <?php foreach($list as $item){ ?>
  64. <div class="line">
  65. <div title="选择" class="choose_dan_link_url btn btn-default btn-sm" data-href="/lionfish_comshop/pages/type/details?id={$item['id']}">选择</div>
  66. <div class="text">
  67. <p class="name">{$item['name']}</p>
  68. </div>
  69. </div>
  70. <?php } ?>
  71. <?php } ?>
  72. <?php } ?>
  73. <?php if($type=='solitaire'){ ?>
  74. <?php if(empty($list)){ ?>
  75. <div class="tip">抱歉!未查询到<?php if( !empty($kw)){ ?>与“{$kw}”<?php } ?>相关的链接,请更换关键字后重试。</div>
  76. <?php }else{ ?>
  77. <?php foreach($list as $item){ ?>
  78. <div class="line">
  79. <div title="选择" class="choose_dan_link_url btn btn-default btn-sm" data-href="/lionfish_comshop/moduleA/solitaire/details?id={$item['id']}">选择</div>
  80. <div class="text">
  81. <p class="name">{$item['name']}</p>
  82. </div>
  83. </div>
  84. <?php } ?>
  85. <?php } ?>
  86. <?php } ?>
  87. <?php if($type=='coupon'){ ?>
  88. <?php if(empty($list)){ ?>
  89. <div class="tip">抱歉!未查询到<?php if( !empty($kw)){ ?>与“{$kw}”<?php } ?>相关的链接,请更换关键字后重试。</div>
  90. <?php }else{ ?>
  91. <?php foreach($list as $item){ ?>
  92. <div class="line">
  93. <div title="选择" class="choose_dan_link_url btn btn-default btn-sm" data-href="/lionfish_comshop/moduleA/solitaire/details?id={$item['id']}">选择</div>
  94. <div class="text">
  95. <p class="name">{$item['voucher_title']}</p>
  96. </div>
  97. </div>
  98. <?php } ?>
  99. <?php } ?>
  100. <?php } ?>
  101. <?php if( $type=='pintuan'){ ?>
  102. <?php if( empty($list)){ ?>
  103. <div class="tip">抱歉!未查询到<?php if( !empty($kw)){ ?>与“{$kw}”<?php } ?>相关的商品,请更换关键字后重试。</div>
  104. <?php }else{ ?>
  105. <?php foreach( $list as $item ){ ?>
  106. <div class="line good">
  107. <div class="image"><img src="{$item['thumb']}"/></div>
  108. <nav title="选择" class="choose_dan_link_url btn btn-default btn-sm" data-href="/lionfish_comshop/moduleA/pin/goodsDetail?id={$item['id']}">选择</nav>
  109. <div class="text">
  110. <p class="name">{$item['title']}</p>
  111. <p class="price">原价: {$item['productprice']}元 <?php if( $item['type'] == 'integral' ){ ?>现价: {$item['marketprice']}积分<?php }else{ ?>现价: {$item['marketprice']}元<?php } ?></p>
  112. </div>
  113. </div>
  114. <?php } ?>
  115. <?php } ?>
  116. <?php } ?>