1index.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <?php if(!defined('PHPOK_SET')){die('<h3>Error...</h3>');}?><?php $APP->tpl->p("head","","0");?>
  2. <style id="loading-style">html,body{width:100%;height:100%; overflow: hidden;}</style>
  3. <section class="user-loader" style="background:url(<?php echo $_sys[logo];?>);background-size: 100% 100%;">
  4. <i class="icon-spin4 animate-spin"></i>
  5. </section>
  6. <div class="ad"><img src="<?php echo $_sys[sharetips];?>" alt="" /></div>
  7. <section class="main animated">
  8. <div class="main-box">
  9. <?php if($_SESSION['user_id']){?>
  10. <div class="home-info border-box fn-clear">
  11. <figure class="figure-box">
  12. <img src="<?php if($urs[picture]){?><?php echo $urs[picture];?><?php }else{ ?>tpl/www/images/header.png<?php } ?>" alt="" />
  13. </figure>
  14. <h5><?php echo $urs[username];?>&nbsp;</h5>
  15. <div class="user-info">
  16. <label>总佣金</label>
  17. <p><i class="icon icon-money"></i><span><?php echo $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><?php echo $total;?></span></p>
  23. </div>
  24. <?php if($urs[fxstatus]&&0>1){?>
  25. <div class="user-ad-yes">
  26. <p><a href="<?php echo $_sys[shareyeslink];?>" title="<?php echo $_sys[sharegiftyes];?>"><?php echo $_sys[sharegiftyes];?></a></p>
  27. </div>
  28. <?php }else{ ?>
  29. <div class="user-ad">
  30. </div>
  31. <?php } ?>
  32. <a href="<?php if($_SESSION['user_id']){?><?php echo site_url('usercp');?><?php }else{ ?><?php echo site_url('login');?><?php } ?>" title="设置" class="jjr-setting"><i class="icon-setting"></i></a>
  33. </div>
  34. <?php }else{ ?>
  35. <div class="unregister">
  36. <figure><a href="<?php echo site_url('register');?>"><img src="tpl/www/images/unregister.jpg" alt="" /></a></figure>
  37. </div>
  38. <?php } ?>
  39. <ul class="home-nav fn-clear">
  40. <li class="nav-recommend"><a href="<?php if($_SESSION['user_id']){?><?php echo site_url('recommend');?><?php }else{ ?><?php echo site_url('register');?><?php } ?>" title="<?php echo $_sys[tj_title];?>"><?php echo $_sys[tj_title];?><label>hot</label><br /></a></li>
  41. <li class="nav-rule"><a href="<?php echo site_url('msg','id=2');?>" title="<?php echo $_sys[xz_title];?>"><?php echo $_sys[kh_title];?><br /></a></li>
  42. <li class="nav-commission"><a href="<?php echo site_url('leaderboard');?>"><p><?php echo $_sys[yj_title];?><br /></p></a></li>
  43. <li class="nav-rule-detail"><a href="<?php echo site_url('newmatchmaker');?>"><?php echo $_sys[xz_title];?><br /></a></li>
  44. </ul>
  45. <div class="sale-box">
  46. <h6><?php echo $_sys[itemtitle];?></h6>
  47. <div class="floor-box">
  48. <?php $item = phpok_m_list("projects",100,1);?>
  49. <?php $_i=0;$item[rslist]=(is_array($item[rslist]))?$item[rslist]:array();foreach($item[rslist] AS $key=>$value){$_i++; ?>
  50. <a href="<?php if($value[link_url]){?><?php echo $value[link_url];?><?php }else{ ?><?php echo msg_url($value);?><?php } ?>" class="floor-detail" title="<?php echo $value[title];?>" target="<?php if($value[target]==1){?>_blank<?php }else{ ?>_self<?php } ?>">
  51. <figure class="floor-img"><img src="<?php echo $value[picture];?>" alt="<?php echo $value[title];?>" /></figure>
  52. <div class="floor">
  53. <h5><?php echo $value[title];?></h5>
  54. <?php if($value[yongjin]){?>
  55. <div class="award fn-clear">
  56. <label class="award-title">项目金额</label>
  57. <div class="award-list"><span><?php echo $value[yongjin];?></span><br /></div>
  58. </div>
  59. <?php } ?>
  60. <?php if($value[jili]){?>
  61. <div class="award fn-clear">
  62. <label class="award-title">激励</label>
  63. <div class="award-list"><span><?php echo $value[jili];?></span><br /></div>
  64. </div>
  65. <?php } ?>
  66. </div>
  67. </a>
  68. <?php } ?>
  69. <?php 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="<?php echo site_url('home');?>"><img src="tpl/www/images/home1.png" width="60px" height="60px" style=" padding-bottom:0px; margin-left:30px;"/></a></li>
  76. <li class="border-right-none"><a href="<?php echo site_url('customer');?>"><img src="tpl/www/images/customer.png" width="60px" height="60px" style=" padding-bottom:0px; margin-left:30px;"/></a></li>
  77. <li class="border-right-none"><a href="<?php echo 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="<?php echo $_sys[siteurl];?>">&copy; Powered by <?php echo $_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 _Conf = {
  88. img: "<?php echo $_sys[siteurl];?><?php echo $_sys[wx_logo];?>",
  89. w: 100,
  90. h: 100,
  91. url: '<?php if($_SESSION["user_id"]){?><?php echo $_sys[siteurl];?><?php echo HOME_PAGE;?>?c=home&ruid=<?php echo $_SESSION["user_id"];?><?php }else{ ?><?php echo $_sys[wx_link];?><?php } ?>',
  92. title: "<?php echo $_sys[wx_title];?>",
  93. desc: "<?php echo $_sys[wx_description];?>",
  94. appid: '<?php if($_SESSION["appid"]){?><?php echo $_SESSION["appid"];?><?php }else{ ?><?php echo $_sys[Appid];?><?php } ?>' };
  95. function _ShareFriend() {
  96. WeixinJSBridge.invoke('sendAppMessage',{
  97. 'appid': _Conf.appid,
  98. 'img_url': _Conf.img,
  99. 'img_width': _Conf.w,
  100. 'img_height': _Conf.h,
  101. 'link': _Conf.url,
  102. 'desc': _Conf.desc,
  103. 'title': _Conf.title
  104. }, function(res){
  105. if(res.err_msg=="send_app_msg:ok"){
  106. var pars = "";
  107. var parsprams = "";
  108. var randomcode = Math.random() * 100000;
  109. parsprams = pars + "&code=" + randomcode + "&f=updategroup";
  110. $.ajax({
  111. url: 'index.php?c=home',
  112. type: "Get",
  113. data: parsprams,
  114. beforeSend: function () { },
  115. success: function (state) {
  116. alert(state);
  117. }
  118. });
  119. }
  120. _report('send_msg', res.err_msg);
  121. })
  122. }
  123. function _ShareTL() {
  124. WeixinJSBridge.invoke('shareTimeline',{
  125. 'img_url': _Conf.img,
  126. 'img_width': _Conf.w,
  127. 'img_height': _Conf.h,
  128. 'link': _Conf.url,
  129. 'desc': _Conf.desc,
  130. 'title': _Conf.title
  131. }, function(res) {
  132. if(res.err_msg=="share_timeline:ok"){
  133. var pars = "";
  134. var parsprams = "";
  135. var randomcode = Math.random() * 100000;
  136. parsprams = pars + "&code=" + randomcode + "&f=updategroup";
  137. $.ajax({
  138. url: 'index.php?c=home',
  139. type: "Get",
  140. data: parsprams,
  141. beforeSend: function () { },
  142. success: function (state) {
  143. alert(state);
  144. }
  145. });
  146. }
  147. _report('timeline', res.err_msg);
  148. });
  149. }
  150. function _ShareWB() {
  151. WeixinJSBridge.invoke('shareWeibo',{
  152. 'content': _Conf.desc,
  153. 'url': _Conf.url,
  154. }, function(res) {
  155. if(res.err_msg=="share_weibo:ok"){
  156. var pars = "";
  157. var parsprams = "";
  158. var randomcode = Math.random() * 100000;
  159. parsprams = pars + "&code=" + randomcode + "&f=updategroup";
  160. $.ajax({
  161. url: 'index.php?c=home',
  162. type: "Get",
  163. data: parsprams,
  164. beforeSend: function () { },
  165. success: function (state) {
  166. alert(state);
  167. }
  168. });
  169. }
  170. _report('weibo', res.err_msg);
  171. });
  172. }
  173. // 当微信内置浏览器初始化后会触发WeixinJSBridgeReady事件。
  174. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  175. //隐藏下方工具栏,需要显示顶部导航栏,请把hideToolbar换成showToolbar
  176. WeixinJSBridge.call('showToolbar');
  177. //隐藏右上角菜单,需要显示请把hideOptionMenu换成showOptionMenu
  178. WeixinJSBridge.call('showOptionMenu');
  179. // 发送给好友
  180. WeixinJSBridge.on('menu:share:appmessage', function(argv){
  181. _ShareFriend();
  182. });
  183. // 分享到朋友圈
  184. WeixinJSBridge.on('menu:share:timeline', function(argv){
  185. _ShareTL();
  186. });
  187. // 分享到微博
  188. WeixinJSBridge.on('menu:share:weibo', function(argv){
  189. _ShareWB();
  190. });
  191. }, false);
  192. </script>
  193. </body>
  194. </html>