123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <!-- inc:head -->
- <style id="loading-style">html,body{width:100%;height:100%; overflow: hidden;}</style>
- <section class="user-loader" style="background:url({:$_sys[logo]});background-size: 100% 100%;">
- <i class="icon-spin4 animate-spin"></i>
- </section>
- <div class="ad"><img src="{:$_sys[sharetips]}" alt="" /></div>
- <section class="main animated">
- <div class="main-box">
- {if($_SESSION['user_id'])}
- <div class="home-info border-box fn-clear">
- <figure class="figure-box">
- <img src="{if($urs[picture])}{:$urs[picture]}{else}images/header.png{end}" alt="" />
- </figure>
- <h5>{:$urs[username]} </h5>
- <div class="user-info">
- <label>总佣金</label>
- <p><i class="icon icon-money"></i><span>{:$money}</span></p>
- </div>
- <div class="info-border"></div>
- <div class="user-info">
- <label>推荐人数</label>
- <p><i class="icon icon-users"></i><span>{:$total}</span></p>
- </div>
- {if($urs[fxstatus]&&0>1)}
- <div class="user-ad-yes">
- <p><a href="{:$_sys[shareyeslink]}" title="{:$_sys[sharegiftyes]}">{:$_sys[sharegiftyes]}</a></p>
- </div>
- {else}
- <div class="user-ad">
- </div>
- {end}
- <a href="{if($_SESSION['user_id'])}{:site_url('usercp')}{else}{:site_url('login')}{end}" title="设置" class="jjr-setting"><i class="icon-setting"></i></a>
- </div>
- {else}
- <div class="unregister">
- <figure><a href="{:site_url('register')}"><img src="images/unregister.jpg" alt="" /></a></figure>
- </div>
- {end}
- <ul class="home-nav fn-clear">
- <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>
- <li class="nav-rule"><a href="{:site_url('msg','id=2')}" title="{:$_sys[xz_title]}">{:$_sys[kh_title]}<br /></a></li>
- <li class="nav-commission"><a href="{:site_url('leaderboard')}"><p>{:$_sys[yj_title]}<br /></p></a></li>
- <li class="nav-rule-detail"><a href="{:site_url('newmatchmaker')}">{:$_sys[xz_title]}<br /></a></li>
- </ul>
- <div class="sale-box">
- <h6>{:$_sys[itemtitle]}</h6>
- <div class="floor-box">
- <!-- run:$item = phpok_m_list("projects",100,1) -->
- <!-- $item[rslist] AS $key=>$value -->
- <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}">
- <figure class="floor-img"><img src="{:$value[picture]}" alt="{:$value[title]}" /></figure>
- <div class="floor">
- <h5>{:$value[title]}</h5>
- {if($value[yongjin])}
- <div class="award fn-clear">
- <label class="award-title">项目金额</label>
- <div class="award-list"><span>{:$value[yongjin]}</span><br /></div>
- </div>
- {end}
- {if($value[jili])}
- <div class="award fn-clear">
- <label class="award-title">激励</label>
- <div class="award-list"><span>{:$value[jili]}</span><br /></div>
- </div>
- {end}
- </div>
- </a>
- <!-- end -->
- <!-- run:unset($item) -->
- </div>
- </div>
- </div>
- <div id="fixed">
- <ul id="fixed-foot">
- <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>
- <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>
- <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>
- </ul>
- </div>
- </section>
- <footer class="foot"><a href="{:$_sys[siteurl]}">© Powered by {:$_sys[copyright]}</a></footer>
- <script src="http://g.tbcdn.cn/kissy/k/1.4.0/seed.js"></script>
- <script src="js/mod.jjr.js"></script>
- <script src="js/jquery-1.8.2.min.js" type="text/javascript"></script>
- <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
- <script type="text/javascript">
- var imgUrl = '{:$_sys[siteurl]}{:$_sys[wx_logo]}';
- var lineLink = '{if($_SESSION["user_id"])}{:$_sys[siteurl]}{:HOME_PAGE}?c=home&ruid={:$_SESSION["user_id"]}{else}{:$_sys[wx_link]}{end}';
- var descContent = "{:$_sys[wx_description]}";
- var shareTitle = '{:$_sys[wx_title]}';
- var appid = '{if($_SESSION["appid"])}{:$_SESSION["appid"]}{else}{:$_sys[Appid]}{end}';
- function shareFriend() {
- WeixinJSBridge.invoke('sendAppMessage',{
- "appid": appid,
- "img_url": imgUrl,
- "img_width": "640",
- "img_height": "640",
- "link": lineLink,
- "desc": descContent,
- "title": shareTitle
- }, function(res) {
- _report('send_msg', res.err_msg);
- })
- }
- function shareTimeline() {
- WeixinJSBridge.invoke('shareTimeline',{
- "img_url": imgUrl,
- "img_width": "640",
- "img_height": "640",
- "link": lineLink,
- "desc": descContent,
- "title": shareTitle
- }, function(res) {
- _report('timeline', res.err_msg);
- });
- }
- function shareWeibo() {
- WeixinJSBridge.invoke('shareWeibo',{
- "content": descContent,
- "url": lineLink,
- }, function(res) {
- _report('weibo', res.err_msg);
- });
- }
- // 当微信内置浏览器完成内部初始化后会触发WeixinJSBridgeReady事件。
- document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
- // 发送给好友
- WeixinJSBridge.on('menu:share:appmessage', function(argv){
- shareFriend();
- });
- // 分享到朋友圈
- WeixinJSBridge.on('menu:share:timeline', function(argv){
- shareTimeline();
- });
- // 分享到微博
- WeixinJSBridge.on('menu:share:weibo', function(argv){
- shareWeibo();
- });
- }, false);
- </script>
- </body>
- </html>
|