123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <title>邀请有礼</title>
- <link rel="stylesheet" href="../../src/css/me/politeness.css" />
- <link rel="stylesheet" href="../../src/css/public.css" />
- <link rel="stylesheet" href="../../src/css/bootstrap.css" />
- </head>
- <body>
- <div id="public_img">
- <!--<img src="../../img/demand1.jpg" alt="" />-->
- <img src="../../img/demand3.png" alt="" class="anut" onclick="javascript:(history.back(-1))"/>
- <div>邀请好友 共赢技淘币</div>
- </div>
- <div class="politeness">
- <img src="../../img/politeness1.png" alt="" />
- <img src="../../img/politeness2.png" alt="" />
- <div class="cont">
- <div>
- <p>
- 1.注册即送200技淘币
- </p>
- <p>
- 2.前500名注册客户,立送两万技淘币
- </p>
- </div>
- <img src="../../img/politeness3.png" alt="" />
- </div>
- <div class="myPo">
- <span>我的邀请码:</span>
- <span></span>
- </div>
- <div class="click">
- 立即邀请客户
- </div>
- </div>
- <div class="tc">
- <div class="all" >
- <div onclick="call('qqFriend')">
- <img src="../../img/qq.png" alt="" />
- <p>QQ</p>
- </div>
- <div onclick="call('wechatFriend')">
- <img src="../../img/wechat.png" alt="" class="maxI"/>
- <p>
- 微信好友
- </p>
- </div>
- <div onclick="call('wechatTimeline')">
- <img src="../../img/wechat_moments.png" alt="" />
- <p>微信朋友圈</p>
- </div>
- <div onclick="call('weibo')">
- <img src="../../img/sina_weibo.png" alt="" class="maxI"/>
- <p>新浪微博</p>
- </div>
- </div>
- <div class="allNo">
- 取消
- </div>
- </div>
- </body>
- <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.js"></script>
- <script type="text/javascript" src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
- <script src="../../src/js/NativeShare.js"></script>
- <script src="../../src/js/public.js"></script>
- <script src="../../src/js/me/politeness.js"></script>
- <script type="text/javascript">
- //请求数据
- function getData(method,url,data){
- var menuArr=[];
- $.ajax({
- method: method,
- dataType: "json",
- async:false, //false同步、true异步
- //url: "http://uat.jishutao.com"+url,
- url: "http://www.jishutao.com"+url,
- //url: "http://192.168.0.99:8080"+url,
- xhrFields:{withCredentials: true},
- crossDomain:true,
- data: data,
- success:function(data){
- if (!data.data) {
- if (data.error && data.error.length) {
- };
- };
- menuArr=data;
- }
- })
- return menuArr;
- }
- //获取数据
- var data={};
- var datas=getData("get","/api/user/InvitationCode",data);
- //填充数据
- $(".myPo>span:nth-child(2)").html(datas.data);
- //分享
- var nativeShare = new NativeShare();
- var shareData = {
- title: '注册即送豪礼,二千万技淘币等你来拿。全国20家资深服务商联合邀请您参与...',
- desc: '等您来拿,全国20家资深服务商联合赠送',
- // 如果是微信该link的域名必须要在微信后台配置的安全域名之内的。
- link:"http://m.jishutao.com/1.0/template/me/request.html?code="+datas.data,
- icon:"http://m.jishutao.com/1.0/template/me/request.html?code="+datas.data,
- // 不要过于依赖以下两个回调,很多浏览器是不支持的
- success: function() {
- console.log("success")
- },
- fail: function() {
- console.log("fail")
- }
- }
- nativeShare.setShareData(shareData)
- function call(command) {
- try {
- nativeShare.call(command)
- } catch (err) {
- // 如果不支持,你可以在这里做降级处理
- console.log(err.message)
- // console.log("err.message")
- }
- }
- </script>
- <!--友盟-->
- <script type="text/javascript">
- var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1274675010'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1274675010' type='text/javascript'%3E%3C/script%3E"));
- </script>
- <!--百度商桥-->
- <!-- <script language="javascript" src="http://put.zoosnet.net/JS/LsJS.aspx?siteid=PUT70876498&float=1&lng=cn"></script>-->
- <!-- <script>-->
- <!-- var _hmt = _hmt || [];-->
- <!-- (function() {-->
- <!-- var hm = document.createElement("script");-->
- <!-- hm.src = "https://hm.baidu.com/hm.js?4f14b647ef81bc71f1a3fd13c098a0b4";-->
- <!-- var s = document.getElementsByTagName("script")[0]; -->
- <!-- s.parentNode.insertBefore(hm, s);-->
- <!-- })();-->
- <!-- </script>-->
- </html>
|