h5_activeList.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <link rel="stylesheet" type="text/css" href="{$resourcePath}/css/activity.css?v=4">
  6. <title>活动中心</title>
  7. <meta name="format-detection" content="telephone=no">
  8. <meta name="apple-mobile-web-app-capable" content="yes">
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  10. <script src="{$resourcePath}/js/adaptive.js"></script>
  11. <script>
  12. window['adaptive'].desinWidth = 750;
  13. window['adaptive'].baseFont = 18;
  14. window['adaptive'].maxWidth = 480;
  15. window['adaptive'].init();
  16. </script>
  17. </head>
  18. <body>
  19. <div class="content"><ul>
  20. {volist name="activeList" id="vo"}
  21. <div class="bk"></div>
  22. <li class="content-item" data-url="bj://h5url?url={$vo['linkApp']}?params=1" data-uios="{$vo['linkApp']}?params=1" data-title="{$vo['title']}" data-img="https://wxapp.dahengdian.com/mTQD8RLMI5.png" data-desc="{$vo['title']}">
  23. <div class="top">
  24. <p class="fb fl">{$vo['title']}</p>
  25. <!--<img src="{$resourcePath}/image/icon1.png" class="fl ml">
  26. <img src="{$resourcePath}/image/icon1.png" class="fl ml">-->
  27. </div>
  28. <div class="time">{$vo['note']}</div>
  29. <div class="bottom">
  30. <img src="{$vo['thumbApp']}">
  31. <!--<p class="time bottom-txt">注册即可获得<span class="red f24">888</span>元红包</p>-->
  32. <div class="item-pro">进行中</div>
  33. </div>
  34. </li>
  35. {/volist}
  36. <!--<div class="content-item">
  37. <div class="top">
  38. <p class="fb fl"><span class="red">新手</span>专享活动</p>
  39. <img src="{$resourcePath}/image/icon1.png" class="fl ml">
  40. <img src="{$resourcePath}/image/icon1.png" class="fl ml">
  41. </div>
  42. <div class="time">注册即可获得<span class="red f24">888</span>元红包</div>
  43. <div class="bottom">
  44. <img src="{$resourcePath}/image/activity.png">
  45. &lt;!&ndash;<p class="time bottom-txt">注册即可获得<span class="red f24">888</span>元红包</p>
  46. <div class="item-pro">进行中</div>&ndash;&gt;
  47. </div>
  48. </div>-->
  49. </ul>
  50. </div>
  51. <script>
  52. window.onload=function(){
  53. var u=window.navigator.userAgent;
  54. var btn=document.getElementsByTagName('li');
  55. var aUrl="",
  56. aTitle="",
  57. aImg="",
  58. aDesc="";
  59. for(var i=0;i<btn.length;i++){
  60. btn[i].index=i;
  61. btn[i].onclick=function(){
  62. if(u.indexOf('iPhone')>-1||u.indexOf('iPad')>-1){
  63. aUrl=btn[this.index].getAttribute('data-uios');
  64. aTitle=btn[this.index].getAttribute('data-title');
  65. aImg=btn[this.index].getAttribute('data-img');
  66. aDesc=btn[this.index].getAttribute('data-desc');
  67. submit(aTitle,aUrl,aImg,aDesc);
  68. }
  69. if(u.indexOf('Android')>-1){
  70. aUrl=btn[this.index].getAttribute('data-url');
  71. //window.bj.call('showShareButton', '{"show" : "true","imgUrl":"http://zhidao.dahengdian.com/static/images/user_litpic.png","shareUrl":"http://www.qq.com","title":"这是腾讯的一个网站","content":"腾讯是个好网站,你值得观看"}', 0);
  72. }
  73. window.location.href=aUrl;
  74. }
  75. }
  76. }
  77. function jump(url) {
  78. //bj://h5url?url=https://www.baidu.com&params=1
  79. }
  80. </script>
  81. </body>
  82. </html>
  83. <!--
  84. <!DOCTYPE html>
  85. <html>
  86. <head>
  87. <meta charset="utf-8">
  88. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  89. <title>活动中心</title>
  90. <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
  91. <meta name="apple-mobile-web-app-capable" content="yes" />
  92. <meta name="format-detection" content="telephone=no" />
  93. <meta name="description" content="">
  94. <meta name="keywords" content="">
  95. <link href="{$resourcePath}/css/reset.css" rel="stylesheet">
  96. <link href="{$resourcePath}/css/style.css" rel="stylesheet">
  97. <script type="text/javascript" src="{$resourcePath}/js/width-conversion.js"></script>
  98. <script type="text/javascript" src="{$resourcePath}/js/zepto.min.js"></script>
  99. <script type="text/javascript" src="{$resourcePath}/js/touch.js"></script>
  100. </head>
  101. <body>
  102. <div id="active">
  103. <ul>
  104. {volist name="activeList" id="vo"}
  105. <li data-url="bj://h5url?url={$vo['linkApp']}?params=1" data-uios="{$vo['linkApp']}?params=1" data-title="{$vo['title']}" data-img="https://wxapp.dahengdian.com/mTQD8RLMI5.png" data-desc="{$vo['title']}">
  106. <div class="pic">
  107. &lt;!&ndash;<img src="http://slb.dahengdian.com/jiaqiancaifu/2018/01/11/duddeijKYT.png" alt="">&ndash;&gt;
  108. <img src="{$vo['thumbApp']}" alt="">
  109. &lt;!&ndash; <img src="{$vo['thumbApp']}" alt="">&ndash;&gt;&lt;!&ndash; <img src="{$resourcePath}/images/active.png" alt="">&ndash;&gt;
  110. </div>
  111. <div class="info">
  112. <div class="left">
  113. <div class="name">{$vo['title']}</div>
  114. <div class="date">{$vo['addTime']}</div>
  115. </div>
  116. <a href="javascript:;" class="right">查看详情</a>
  117. </div>
  118. </li>
  119. {/volist}
  120. </ul>
  121. </div>
  122. <script>
  123. window.onload=function(){
  124. var u=window.navigator.userAgent;
  125. var btn=document.getElementsByTagName('li');
  126. var aUrl="",
  127. aTitle="",
  128. aImg="",
  129. aDesc="";
  130. for(var i=0;i<btn.length;i++){
  131. btn[i].index=i;
  132. btn[i].onclick=function(){
  133. if(u.indexOf('iPhone')>-1||u.indexOf('iPad')>-1){
  134. aUrl=btn[this.index].getAttribute('data-uios');
  135. aTitle=btn[this.index].getAttribute('data-title');
  136. aImg=btn[this.index].getAttribute('data-img');
  137. aDesc=btn[this.index].getAttribute('data-desc');
  138. submit(aTitle,aUrl,aImg,aDesc);
  139. }
  140. if(u.indexOf('Android')>-1){
  141. aUrl=btn[this.index].getAttribute('data-url');
  142. //window.bj.call('showShareButton', '{"show" : "true","imgUrl":"http://zhidao.dahengdian.com/static/images/user_litpic.png","shareUrl":"http://www.qq.com","title":"这是腾讯的一个网站","content":"腾讯是个好网站,你值得观看"}', 0);
  143. }
  144. window.location.href=aUrl;
  145. }
  146. }
  147. }
  148. function jump(url) {
  149. //bj://h5url?url=https://www.baidu.com&params=1
  150. }
  151. </script>
  152. </body>
  153. </html>-->