store.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <!DOCTYPE html>
  2. <html>
  3. <head lang="en">
  4. <include file="./Application/M/View/Common/head_include.html"/>
  5. <title>幻速_体验店加盟_招募城市合伙人</title>
  6. <link rel="stylesheet" type="text/css" href="/Public/static/home/m/css/shop_news.css?180408"/>
  7. <link rel="stylesheet" type="text/css" href="/Public/static/home/m/css/new_store.css?180408"/>
  8. <style type="text/css">
  9. .news_jp p.active{
  10. background: url(https://img.x-motion.cn/home/m/image/news/jp_bg.jpg) no-repeat;
  11. background-size: 100%;
  12. background-position: center;
  13. }
  14. .shop_nx{
  15. padding-top: 0.62rem;
  16. display: flex;
  17. justify-content: space-between;
  18. }
  19. .shop_nx a{
  20. display: block;
  21. font-size: 2.8em;
  22. color: #5EA7EC;
  23. }
  24. .all_stli{
  25. height:4.2rem;
  26. overflow-y: scroll;
  27. }
  28. </style>
  29. </head>
  30. <body>
  31. <include file="./Application/M/View/Common/head.html"/>
  32. <div class="content">
  33. <div class="stores_top">
  34. <h2>线下体验店</h2>
  35. <h3>首页/全部门店</h3>
  36. </div>
  37. <div class="news_ct">
  38. <div class="news_jp">
  39. <p>
  40. <a href="{:U('m/about/new_store')}">最新门店</a>
  41. </p>
  42. <p class="active">
  43. <a href="javascript:void(0);">全部门店</a>
  44. </p>
  45. <p hidden>
  46. <a href="{:U('m/about/discount')}">优惠政策</a>
  47. </p>
  48. <div class="select_ul" id="select_ul" data-id="0"><span>省份&nbsp;/&nbsp;直辖市&nbsp;/&nbsp;行政区</span>
  49. <div class="all_stli">
  50. <a data-id="-1" href="javascript:void(0);" <if condition="$search['city_id'] eq -1">class="active"</if>>
  51. <p class="select_li">全国</p>
  52. </a>
  53. <foreach name="home_city" item="v">
  54. <a <if condition="$search['city_id'] eq $v['id']">class="active"</if> data-id="{$v['id']}" href="javascript:void(0);">
  55. <p class="select_li">
  56. {$v['name']}
  57. </p>
  58. </a>
  59. </foreach>
  60. </div>
  61. </div>
  62. </div>
  63. <if condition="!empty($search['city_id']) and !empty($data)">
  64. <div class="shop_sw">
  65. <foreach name="data" item="v">
  66. <div class="shop_li">
  67. <p class="shop_img col">
  68. <if condition="!empty($v['have_news'])">
  69. <a href="{:U('about/news/', array('store_id' => $v['id']))}"><img src="{$v['img']}"></a>
  70. <else/>
  71. <img src="{$v['img']}">
  72. </if>
  73. </p>
  74. <p class="shop_title">{$v['name']}</p>
  75. <if condition="!empty($v['address'])">
  76. <p class="shop_address shop_icon"><img src="https://img.x-motion.cn/home/m/image/news/shop_ad.jpg"/>&nbsp;{$v['address']}</p>
  77. </if>
  78. <if condition="!empty($v['date'])">
  79. <p class="shop_time shop_icon"><img src="https://img.x-motion.cn/home/m/image/news/shop_tm.jpg"/>&nbsp;{$v['date']}: {$v['s_time']} - {$v['e_time']}</p>
  80. </if>
  81. <if condition="!empty($v['tel'])">
  82. <a href="tel:{$v['tel']}" class="shop_phone shop_icon"><p><img src="https://img.x-motion.cn/home/m/image/news/shop_ph.jpg" alt="" />&nbsp;{$v['tel']}</p></a>
  83. </if>
  84. </div>
  85. </foreach>
  86. </div>
  87. </if>
  88. <if condition="!empty($page['pre']) or !empty($page['next'])">
  89. <div class="shop_nx">
  90. <div>
  91. <if condition="!empty($page['pre'])">
  92. <a href="{$page['pre']}">&lt;上一页</a>
  93. </if>
  94. </div>
  95. <div>
  96. <if condition="!empty($page['next'])">
  97. <a href="{$page['next']}">下一页&gt;</a>
  98. </if>
  99. </div>
  100. </div>
  101. </if>
  102. </div>
  103. <if condition="empty($search['city_id'])">
  104. <div class="col all-simg">
  105. <img src="https://img.x-motion.cn/home/m/image/news/shop_img.jpg" />
  106. </div>
  107. <elseif condition="empty($data)"/>
  108. <div class="col all-simg">
  109. <img src="https://img.x-motion.cn/home/m/image/news/store_no.jpg" />
  110. </div>
  111. </if>
  112. <include file="./Application/M/View/Common/footer.html"/>
  113. </div>
  114. <include file="./Application/M/View/Common/footer_include.html"/>
  115. <script type="text/javascript">
  116. $(document).ready(function(){
  117. $('#select_ul a').on('click', function(){
  118. $('#select_ul a').each(function(){
  119. $(this).removeClass('active');
  120. });
  121. $(this).addClass('active');
  122. select_city();
  123. var id = $(this).attr('data-id');
  124. location.href="{:U(CONTROLLER_NAME . '/' . ACTION_NAME)}" + "/city_id/" + id;
  125. });
  126. });
  127. $('.select_ul').click(function(e) {
  128. e.stopPropagation()
  129. $('.all_stli').toggleClass('li_active')
  130. })
  131. $('.news_ct').click(function(e) {
  132. $('.all_stli').removeClass('li_active')
  133. })
  134. function select_city(){
  135. var a = $('#select_ul a.active p');
  136. if(a.length != 0){
  137. var title = $(a).html();
  138. var id = $(a).attr('data-id');
  139. $('#select_ul').attr('data-id', id);
  140. $('#select_ul>span').html(title);
  141. }
  142. }
  143. select_city();
  144. </script>
  145. </body>
  146. </html>