shaogen1995 пре 6 месеци
родитељ
комит
87b6248221
1 измењених фајлова са 2 додато и 116 уклоњено
  1. 2 116
      scene/public/static/js/manage.js

+ 2 - 116
scene/public/static/js/manage.js

@@ -886,121 +886,7 @@ Manage.prototype.loadWeixin = function() {
 
 
 Manage.prototype.weixinShare = function() {
-    console.log({str:"weixinShare",level:1})
-    $.ajax({    
-        url:'https://www.4dage.com/wechat/jssdk/', 
-        type: "post",
-        data : {
-            'url' : location.href.split('#')[0]
-        }, 
-        dataType:"jsonp",     
-        jsonpCallback:"success_jsonp",         
-        success:function(data, textStatus){
-            console.log({str:"微信 success,"+data.appId,  level:1})
-         
-            
-            wx.config({
-                // debug : true,
-                appId : data.appId,
-                timestamp : data.timestamp,
-                nonceStr : data.nonceStr,
-                signature : data.signature,
-                jsApiList : [ 'checkJsApi', 'onMenuShareTimeline',
-                        'onMenuShareAppMessage', 'onMenuShareQQ',
-                        'onMenuShareWeibo', 'hideMenuItems',
-                        'showMenuItems', 'hideAllNonBaseMenuItem',
-                        'showAllNonBaseMenuItem', 'translateVoice',
-                        'startRecord', 'stopRecord', 'onRecordEnd',
-                        'playVoice', 'pauseVoice', 'stopVoice',
-                        'uploadVoice', 'downloadVoice', 'chooseImage',
-                        'previewImage', 'uploadImage', 'downloadImage',
-                        'getNetworkType', 'openLocation', 'getLocation',
-                        'hideOptionMenu', 'showOptionMenu', 'closeWindow',
-                        'scanQRCode', 'chooseWXPay',
-                        'openProductSpecificView', 'addCard', 'chooseCard',
-                        'openCard' ]
-            });
-        },    
-        error:function(XMLHttpRequest,textStatus,errorThrown){   
-            console.error({str:"微信分享失败! textStatus:"+textStatus,  level:1})            
-        }    
-    }); 
-    
-    var success_jsonp = function(json){
-        console.log({str:"success_jsonp:"+json,  level:1});
-    };
-
-
-    wx.ready(function(){ 
-        // config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行〿
-        //对于用户触发时才调用的接口,则可以直接调用,不需要放在ready函数中〿
-        //分享到朋友圈 
-        
-        console.log({str:"微信 ready",level:1})
-        
-        wx.onMenuShareTimeline({ 
-            title: g_weixinObj.title, // 分享标题 
-            link: g_weixinObj.lineLink, // 分享链接 
-            imgUrl: g_weixinObj.imgUrl, // 分享图标 
-            desc: g_weixinObj.desc
-        }); 
-
-        //获取“分享给朋友”按钮点击状态及自定义分享内容接叿
-        wx.onMenuShareAppMessage({ 
-            title: g_weixinObj.title, // 分享标题 
-            desc: g_weixinObj.desc,  // 分享描述 
-            link: g_weixinObj.lineLink, // 分享链接 
-            imgUrl: g_weixinObj.imgUrl, // 分享图标 
-            type: '', // 分享类型,music、video或link,不填默认为link 
-            dataUrl: '' // 如果type是music或video,则要提供数据链接,默认为空 
-        });
-        
-        wx.onMenuShareWeibo({
-            title: g_weixinObj.title, // 分享标题
-            desc: g_weixinObj.desc, // 分享描述
-            link: g_weixinObj.lineLink, // 分享链接
-            imgUrl: g_weixinObj.imgUrl, // 分享图标
-            success: function () { 
-                // 用户确认分享后执行的回调函数
-            },
-            cancel: function () { 
-                // 用户取消分享后执行的回调函数
-            }
-        });
-
-        wx.onMenuShareQZone({
-            title: g_weixinObj.title, // 分享标题
-            desc: g_weixinObj.desc, // 分享描述
-            link: g_weixinObj.lineLink, // 分享链接
-            imgUrl: g_weixinObj.imgUrl, // 分享图标
-            success: function () { 
-                // 用户确认分享后执行的回调函数
-            },
-            cancel: function () { 
-                // 用户取消分享后执行的回调函数
-            }
-        });
-
-        wx.onMenuShareQQ({
-            title: g_weixinObj.title, // 分享标题
-            desc:  g_weixinObj.desc, // 分享描述
-            link: g_weixinObj.lineLink, // 分享链接
-            imgUrl: g_weixinObj.imgUrl, // 分享图标
-            success: function () { 
-                // 用户确认分享后执行的回调函数
-            },
-            cancel: function () { 
-                // 用户取消分享后执行的回调函数
-            }
-        });
-
-        wx.error(function(res){ 
-        // config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名〿
-
-        });
-    });
-
-    
+   
 }
 
 
@@ -1112,7 +998,7 @@ function showLogo(){
 //czj 添加随机的时间
 function randomTime(){
     return new Date()
-};
+}
 function matcher(data){
     if(!data || !g_version ) return data;
     delete data.model.vision_version;