store_document.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html lang="zh-CN" class="index_page">
  3. <head>
  4. {template header}
  5. {if $id}
  6. <title>{$docu[title]}-{$store[tname]}-{$mymps_global[SiteName]}</title>
  7. <meta http-equiv="keywords" content="{$docu[title]}">
  8. <meta http-equiv="description" id="description" content="{echo cutstr(clear_html($docu[content]),250)}">
  9. {else}
  10. <title>商家动态-{$store[tname]}-{$mymps_global[SiteName]}</title>
  11. <meta http-equiv="keywords" content="{$store[tname]}商家动态">
  12. <meta http-equiv="description" content="{$store[tname]}商家动态">
  13. {/if}
  14. <link type="text/css" rel="stylesheet" href="{$mayimobile[mobiledomain]}/template/css/global.css">
  15. <link type="text/css" rel="stylesheet" href="{$mayimobile[mobiledomain]}/template/css/style.css">
  16. <link type="text/css" rel="stylesheet" href="{$mayimobile[mobiledomain]}/template/css/store.css">
  17. <script>window['current'] = '{echo cutstr($store[tname],28)}';</script>
  18. </head>
  19. <body class="{$mymps_global[cfg_tpl_dir]}">
  20. <div class="wrapper">
  21. {template header_search}
  22. {template store_header}
  23. <div class="clearfix"></div>
  24. <div class="mbox userintro">
  25. {if !$docuid}
  26. <ul class="infolst" id="homelist">
  27. {loop $list $mymps}
  28. <li class="linkdetail" onclick="javascript:window.location.href='{$mymps[uri_m]}'">
  29. <dd class="tit" style="">{$mymps[title]}</dd>
  30. <dd class="tm"> {echo GetTime($mymps[pubtime],'m-d')}</dd>
  31. </li>
  32. {/loop}
  33. </ul>
  34. <div id="loadmore"></div>
  35. <div id="nodata">已加载全部数据。</div>
  36. {else}
  37. <p class="docutitle"> {$docu[title]} </p>
  38. <div class="p-pubtime">
  39. <span class="p-hit">浏览人次:{$docu[hit]}次</span> <span class="p-time">发布时间:{echo GetTime($docu[pubtime],'Y-m-d')}</span>
  40. </div>
  41. <div class="intro">
  42. {$docu[content]}
  43. </div>
  44. {/if}
  45. </div>
  46. </div>
  47. {template footer}
  48. <script>
  49. $(function(){var winH=$(window).height();var i=2;$(window).scroll(function(){var pageH=$(document.body).height();var scrollT=$(window).scrollTop();var aa=(pageH-winH-scrollT)/winH;if(aa<0.02){$.getJSON("{$mayimobile[mobiledomain]}/index.php",{page:i,mod:"store",action:"document",id:"{$store[id]}",mayi:1},function(json){if(json){var str="";$.each(json,function(index,array){var str='<li class="linkdetail" onclick="javascript:window.location.href=\'{$mayimobile[mobiledomain]}'+array["uri_m"]+"'\">";str+='<dd class="tit">'+array["titlej"]+"</dd>";str+='<dd class="tm">'+array["pubtimej"]+"</dd>";str+="</li>";$("#homelist").append(str)})}else{$("#loadmore").hide();$("#nodata").show();return false}});i++}})});
  50. </script>
  51. <script>(function(){window['myScroll2'].scrollTo(-130,0);})(jQuery);</script>
  52. </body>
  53. </html>