|
@@ -142,7 +142,7 @@ MShare.prototype = {
|
|
|
|
|
|
var url = VG.conf.root_domain + '?c=WeixinJsSDK&a=AjaxConfigData';
|
|
|
|
|
|
- alert(url)
|
|
|
+
|
|
|
$.ajax({
|
|
|
type:'post',
|
|
|
dataType:'jsonp',
|
|
@@ -151,7 +151,7 @@ MShare.prototype = {
|
|
|
data: {"thisPageUrl":encodeURIComponent(location.href)},
|
|
|
success:function(data){
|
|
|
var d = data.msg;
|
|
|
- alert(d.appId)
|
|
|
+
|
|
|
wx.config({
|
|
|
|
|
|
appId: d.appId,
|
|
@@ -164,7 +164,9 @@ MShare.prototype = {
|
|
|
'onMenuShareQQ'
|
|
|
]
|
|
|
});
|
|
|
+ alert(wxCfgs.link);
|
|
|
wx.ready(function() {
|
|
|
+ alert(wxCfgs.img_url)
|
|
|
wx.onMenuShareAppMessage({
|
|
|
title: wxCfgs.title,
|
|
|
desc: wxCfgs.desc,
|