|
@@ -9,8 +9,7 @@
|
|
|
<!-- 先引入css文件 放到自己css文件的上面 -->
|
|
|
<link rel="stylesheet" href="./css/homemovement/swiper.min.css" />
|
|
|
<link rel="stylesheet" href="./css/homemovement/homemovement.css" />
|
|
|
- <script>
|
|
|
- </script>
|
|
|
+ <script src="js/jquery1.42.min.js"></script>
|
|
|
</head>
|
|
|
<body>
|
|
|
<section class="warp">
|
|
@@ -18,6 +17,8 @@
|
|
|
<div class="header">
|
|
|
<div class="header_logo"><img src="./image/logo.jpg" alt=""></div>
|
|
|
<div class="header_qiyeweix"><a href="https://open.work.weixin.qq.com" target="_blank"><img src="https://open.work.weixin.qq.com/service/img?id=wwf11426cf618e1703&t=isp&c=white&s=medium" srcset="https://open.work.weixin.qq.com/service/img?id=wwf11426cf618e1703&t=isp&c=white&s=medium@2x 2x" referrerpolicy="unsafe-url" alt="企业微信"></a></div>
|
|
|
+ <div class="header_qw"><a href="javascript:;" id="zhuce"><img src="https://open.work.weixin.qq.com/service/img?id=wwf11426cf618e1703&t=register&c=white&s=large" srcset="https://open.work.weixin.qq.com/service/img?id=wwf11426cf618e1703&t=register&c=white&s=large@2x 2x" referrerpolicy="unsafe-url" alt="企业微信"></a></div>
|
|
|
+ <div class="header_qx"><a href="javascript:;" id="anqiye"><img src="https://open.work.weixin.qq.com/service/img?id=wwf11426cf618e1703&t=install&c=white&s=large" srcset="https://open.work.weixin.qq.com/service/img?id=wwf11426cf618e1703&t=install&c=white&s=large@2x 2x" referrerpolicy="unsafe-url" alt="企业微信"></a></div>
|
|
|
</div>
|
|
|
|
|
|
<div class="homepage">
|
|
@@ -200,4 +201,63 @@
|
|
|
});
|
|
|
})();
|
|
|
</script>
|
|
|
+ <script>
|
|
|
+ $('#anqiye').click(function() {
|
|
|
+ console.log('我被点击率')
|
|
|
+ // $.ajax({
|
|
|
+ // type : "GET",
|
|
|
+ // // url : "http://192.168.2.97:10010/wxcorp/getPreAuthCode",
|
|
|
+ // url : "http://worktime.ttkuaiban.com/api/wxcorp/getPreAuthCode",
|
|
|
+ // dataType : "jsonp",
|
|
|
+ // jsonp: "jsoncallback",//传递给请求处理程序或页面的,用以获得jsonp回调函数名的参数名(默认为:callback)
|
|
|
+ // jsonpCallback:"jsoncallback",//自定义的jsonp回调函数名称,默认为jQuery自动生成的随机函数名
|
|
|
+ // success : function(data){
|
|
|
+ // console.log(data);
|
|
|
+ // },
|
|
|
+ // error:function(){
|
|
|
+ // alert('请求失败');
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // function jsoncallback(data) {
|
|
|
+ // console.log(data)
|
|
|
+ // }
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ type : "GET",
|
|
|
+ url : "https://worktime.ttkuaiban.com/api/wxcorp/getPreAuthCode",
|
|
|
+ success : function(data){
|
|
|
+ let suiteId = 'ww4e237fd6abb635af'
|
|
|
+ let huidiao = 'https://worktime.ttkuaiban.com/api/wxcorp/installFromWebsite'
|
|
|
+ let url = `https://open.work.weixin.qq.com/3rdapp/install?suite_id=${suiteId}&pre_auth_code=${data.data.code}&redirect_uri=${huidiao}&state=4`
|
|
|
+ window.location.href = url
|
|
|
+ },
|
|
|
+ error:function(){
|
|
|
+ alert('请求失败');
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+ $('#zhuce').click(function() {
|
|
|
+ $.ajax({
|
|
|
+ type : "GET",
|
|
|
+ url : "https://worktime.ttkuaiban.com/api/wxcorp/getRegisterCode",
|
|
|
+ success : function(data){
|
|
|
+ if(data.code == 'ok') {
|
|
|
+ let url = `https://open.work.weixin.qq.com/3rdservice/wework/register?register_code=${data.data.code}`
|
|
|
+ if(data.data.code != undefined && data.data.code != 'undefined') {
|
|
|
+ window.location.href = url
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ console.log(data)
|
|
|
+ alert(data.msg)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error:function(){
|
|
|
+ alert('请求失败');
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ })
|
|
|
+</script>
|
|
|
</html>
|