index.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <!-- inc:head -->
  2. <style id="loading-style">html,body{width:100%;height:100%; overflow: hidden;}</style>
  3. <section class="user-loader" style="background:url({:$_sys[logo]});background-size: 100% 100%;">
  4. <i class="icon-spin4 animate-spin"></i>
  5. </section>
  6. <div class="ad"><img src="{:$_sys[sharetips]}" alt="" /></div>
  7. <section class="main animated">
  8. <div class="main-box">
  9. {if($_SESSION['user_id'])}
  10. <div class="home-info border-box fn-clear">
  11. <figure class="figure-box">
  12. <img src="{if($urs[picture])}{:$urs[picture]}{else}images/header.png{end}" alt="" />
  13. </figure>
  14. <h5>{:$urs[username]}&nbsp;</h5>
  15. <div class="user-info">
  16. <label>总佣金</label>
  17. <p><i class="icon icon-money"></i><span>{:$money}</span></p>
  18. </div>
  19. <div class="info-border"></div>
  20. <div class="user-info">
  21. <label>推荐人数</label>
  22. <p><i class="icon icon-users"></i><span>{:$total}</span></p>
  23. </div>
  24. {if($urs[fxstatus]&&0>1)}
  25. <div class="user-ad-yes">
  26. <p><a href="{:$_sys[shareyeslink]}" title="{:$_sys[sharegiftyes]}">{:$_sys[sharegiftyes]}</a></p>
  27. </div>
  28. {else}
  29. <div class="user-ad">
  30. </div>
  31. {end}
  32. <a href="{if($_SESSION['user_id'])}{:site_url('usercp')}{else}{:site_url('login')}{end}" title="设置" class="jjr-setting"><i class="icon-setting"></i></a>
  33. </div>
  34. {else}
  35. <div class="unregister">
  36. <figure><a href="{:site_url('register')}"><img src="images/unregister.jpg" alt="" /></a></figure>
  37. </div>
  38. {end}
  39. <ul class="home-nav fn-clear">
  40. <li class="nav-recommend"><a href="{if($_SESSION['user_id'])}{:site_url('recommend')}{else}{:site_url('register')}{end}" title="{:$_sys[tj_title]}">{:$_sys[tj_title]}<label>hot</label><br /></a></li>
  41. <li class="nav-rule"><a href="{:site_url('msg','id=2')}" title="{:$_sys[xz_title]}">{:$_sys[kh_title]}<br /></a></li>
  42. <li class="nav-commission"><a href="{:site_url('leaderboard')}"><p>{:$_sys[yj_title]}<br /></p></a></li>
  43. <li class="nav-rule-detail"><a href="{:site_url('newmatchmaker')}">{:$_sys[xz_title]}<br /></a></li>
  44. </ul>
  45. <div class="sale-box">
  46. <h6>{:$_sys[itemtitle]}</h6>
  47. <div class="floor-box">
  48. <!-- run:$item = phpok_m_list("projects",100,1) -->
  49. <!-- $item[rslist] AS $key=>$value -->
  50. <a href="{if($value[link_url])}{:$value[link_url]}{else}{:msg_url($value)}{end}" class="floor-detail" title="{:$value[title]}" target="{if($value[target]==1)}_blank{else}_self{end}">
  51. <figure class="floor-img"><img src="{:$value[picture]}" alt="{:$value[title]}" /></figure>
  52. <div class="floor">
  53. <h5>{:$value[title]}</h5>
  54. {if($value[yongjin])}
  55. <div class="award fn-clear">
  56. <label class="award-title">项目金额</label>
  57. <div class="award-list"><span>{:$value[yongjin]}</span><br /></div>
  58. </div>
  59. {end}
  60. {if($value[jili])}
  61. <div class="award fn-clear">
  62. <label class="award-title">激励</label>
  63. <div class="award-list"><span>{:$value[jili]}</span><br /></div>
  64. </div>
  65. {end}
  66. </div>
  67. </a>
  68. <!-- end -->
  69. <!-- run:unset($item) -->
  70. </div>
  71. </div>
  72. </div>
  73. <div id="fixed">
  74. <ul id="fixed-foot">
  75. <li class="border-right-none"><a href="{:site_url('home')}"><img src="images/home1.png" width="60px" height="60px" style=" padding-bottom:0px; margin-left:30px;"/></a></li>
  76. <li class="border-right-none"><a href="{:site_url('customer')}"><img src="images/customer.png" width="60px" height="60px" style=" padding-bottom:0px; margin-left:30px;"/></a></li>
  77. <li class="border-right-none"><a href="{:site_url('personal')}"><img src="tpl/www/images/Personal.png" width="60px" height="60px" style=" padding-bottom:0px; margin-left:30px;"/></a></li>
  78. </ul>
  79. </div>
  80. </section>
  81. <footer class="foot"><a href="{:$_sys[siteurl]}">&copy; Powered by {:$_sys[copyright]}</a></footer>
  82. <script src="http://g.tbcdn.cn/kissy/k/1.4.0/seed.js"></script>
  83. <script src="js/mod.jjr.js"></script>
  84. <script src="js/jquery-1.8.2.min.js" type="text/javascript"></script>
  85. <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  86. <script type="text/javascript">
  87. var imgUrl = '{:$_sys[siteurl]}{:$_sys[wx_logo]}';
  88. var lineLink = '{if($_SESSION["user_id"])}{:$_sys[siteurl]}{:HOME_PAGE}?c=home&ruid={:$_SESSION["user_id"]}{else}{:$_sys[wx_link]}{end}';
  89. var descContent = "{:$_sys[wx_description]}";
  90. var shareTitle = '{:$_sys[wx_title]}';
  91. var appid = '{if($_SESSION["appid"])}{:$_SESSION["appid"]}{else}{:$_sys[Appid]}{end}';
  92. function shareFriend() {
  93. WeixinJSBridge.invoke('sendAppMessage',{
  94. "appid": appid,
  95. "img_url": imgUrl,
  96. "img_width": "640",
  97. "img_height": "640",
  98. "link": lineLink,
  99. "desc": descContent,
  100. "title": shareTitle
  101. }, function(res) {
  102. _report('send_msg', res.err_msg);
  103. })
  104. }
  105. function shareTimeline() {
  106. WeixinJSBridge.invoke('shareTimeline',{
  107. "img_url": imgUrl,
  108. "img_width": "640",
  109. "img_height": "640",
  110. "link": lineLink,
  111. "desc": descContent,
  112. "title": shareTitle
  113. }, function(res) {
  114. _report('timeline', res.err_msg);
  115. });
  116. }
  117. function shareWeibo() {
  118. WeixinJSBridge.invoke('shareWeibo',{
  119. "content": descContent,
  120. "url": lineLink,
  121. }, function(res) {
  122. _report('weibo', res.err_msg);
  123. });
  124. }
  125. // 当微信内置浏览器完成内部初始化后会触发WeixinJSBridgeReady事件。
  126. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  127. // 发送给好友
  128. WeixinJSBridge.on('menu:share:appmessage', function(argv){
  129. shareFriend();
  130. });
  131. // 分享到朋友圈
  132. WeixinJSBridge.on('menu:share:timeline', function(argv){
  133. shareTimeline();
  134. });
  135. // 分享到微博
  136. WeixinJSBridge.on('menu:share:weibo', function(argv){
  137. shareWeibo();
  138. });
  139. }, false);
  140. </script>
  141. </body>
  142. </html>