|
@@ -21,17 +21,16 @@ var shareCls = {
|
|
url: "https://wx.test.chelingzhu.com/clzwx/redirect/jsapi",
|
|
url: "https://wx.test.chelingzhu.com/clzwx/redirect/jsapi",
|
|
type:'get',
|
|
type:'get',
|
|
dataType:'json',
|
|
dataType:'json',
|
|
- headers: {
|
|
|
|
- 'X-HEADER-APPID': '!z2Yc.aes|j/r6hk33Kyyfehctv+KGW0HnQCXBK61W5sJRNoN9JqM='
|
|
|
|
- },
|
|
|
|
data: {
|
|
data: {
|
|
url: url
|
|
url: url
|
|
},
|
|
},
|
|
|
|
+ headers:{
|
|
|
|
+ 'X-HEADER-APPID': '!z2Yc.aes|j/r6hk33Kyyfehctv+KGW0HnQCXBK61W5sJRNoN9JqM='
|
|
|
|
+ },
|
|
success:function(res){
|
|
success:function(res){
|
|
- console.log(res,'jsapi')
|
|
|
|
var wxData = res
|
|
var wxData = res
|
|
wx.config({
|
|
wx.config({
|
|
- //debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
|
|
|
|
|
|
+ debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
|
|
appId: wxData.appId, // 必填,公众号的唯一标识
|
|
appId: wxData.appId, // 必填,公众号的唯一标识
|
|
timestamp: wxData.timestamp, // 必填,生成签名的时间戳
|
|
timestamp: wxData.timestamp, // 必填,生成签名的时间戳
|
|
nonceStr: wxData.nonceStr, // 必填,生成签名的随机串
|
|
nonceStr: wxData.nonceStr, // 必填,生成签名的随机串
|
|
@@ -72,6 +71,9 @@ var shareCls = {
|
|
wx.updateTimelineShareData(shareObj)
|
|
wx.updateTimelineShareData(shareObj)
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ },
|
|
|
|
+ error: function(err,status,msg){
|
|
|
|
+ console.log(err,'jsapi error')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|