rabin 7 years ago
parent
commit
25c36148cd
3 changed files with 13 additions and 11 deletions
  1. 6 4
      kissy/public/share/jweixin.js
  2. 5 5
      kissy/public/share/mshare.js
  3. 2 2
      tm/template_dir/header.html

+ 6 - 4
kissy/public/share/jweixin.js

@@ -1,7 +1,9 @@
 ! function(a, b) {
-    "function" == typeof define && (define.amd || define.cmd) ? define(function() {
-        return b(a)
-    }) : b(a, !0)
+    // "function" == typeof define && (define.amd || define.cmd) ? define(function() {
+    //     return b(a)
+    // }) : b(a, !0)
+    b(a, !0);
+    
 }(this, function(a, b) {
     function c(b, c, d) {
         a.WeixinJSBridge ? WeixinJSBridge.invoke(b, e(c), function(a) {
@@ -456,4 +458,4 @@
             c(q.chooseWXPay, g(a), a)
         }
     }, b && (a.wx = a.jWeixin = E), E
-});
+});

+ 5 - 5
kissy/public/share/mshare.js

@@ -156,7 +156,7 @@ MShare.prototype = {
                 var d = data.msg;
                 //alert(d.appId)
                 wx.config({
-                    //debug:true,
+                    debug:true,
                     appId: d.appId,
                     timestamp: d.timestamp,
                     nonceStr: d.nonceStr,
@@ -180,15 +180,15 @@ MShare.prototype = {
                         imgUrl: wxCfgs.img_url,
                         success: function(res) {
                             if (state) {
-                        alert(1);
-                    }
+                                alert(1);
+                            }
                             wxCfgs.sendMessageCallback('success', res)
                             self._shareLog(0, 1);
                         },
                         cancel: function(res) {
                             if (state) {
-                        alert(2);
-                    }
+                                alert(2);
+                            }
                             wxCfgs.sendMessageCallback('cancel', res)
                             self._shareLog(0, 2);
                         },

+ 2 - 2
tm/template_dir/header.html

@@ -35,6 +35,6 @@
 	};
 </script>
 <script src="<{$web_cfg.cdn}>/public/share/zepto.min.js"></script>
-<script src="<{$web_cfg.cdn}>/public/share/jweixin.js?1"></script>
-<script src="<{$web_cfg.cdn}>/public/share/mshare.js?11"></script>
+<script src="<{$web_cfg.cdn}>/public/share/jweixin.js?2"></script>
+<script src="<{$web_cfg.cdn}>/public/share/mshare.js?12"></script>
 <body id="body">