Skip to content

Commit 13c9043

Browse files
committed
add baidu analysis
1 parent c005eea commit 13c9043

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ deploy:
7979
branch: master
8080

8181
# 百度站点统计 tinyMay
82-
baidu_analytics: 7d7c3856367a8756e7ba9b324b19e5b2
82+
# baidu_analytics: 7d7c3856367a8756e7ba9b324b19e5b2
83+
# 百度站点统计 kadzszm
84+
baidu_analytics: d422acbe340d079e964611eea87012c5
8385
# 站内搜索
8486
search:
8587
path: search.xml

source/sta/share.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
</script>
2929
<!-- <script type="text/javascript" src="./share_tengxun_co.js?t=188"></script> -->
3030
<script type="text/javascript">
31-
alert(window.location.href + "?a=ai");
31+
alert(window.location.href + "?a=22344");
3232
window.onload = function() {
3333
setShareInfo({
3434
title: '父爱,在你看不到的地方',
3535
summary: 'summary父爱如山,感觉不到只因身在此山中',
3636
desc: "desc父爱如山,感觉不到只因身在此山中",
3737
pic: 'http://qzonestyle.gtimg.cn/aoi/sola/20150617094556_OvfOpoRKRB.png',
3838
url: window.location.href + "?a=" + randomNum,
39-
WXconfig: {
39+
WXconfig: {
4040
swapTitleInWX: true,
4141
appId: '',
4242
timestamp: '',

source/sta/share_tengxun_co.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,25 @@
2323
var conf = data.WXconfig;
2424
wx.config({debug:false, appId:conf.appId, timestamp:conf.timestamp, nonceStr:conf.nonceStr, signature:conf.signature, jsApiList:["onMenuShareTimeline", "onMenuShareAppMessage", "onMenuShareQQ", "onMenuShareQZone"]});
2525
wx.error(function(res) {
26+
alert("微信分享配置错误");
2627
});
28+
2729
wx.ready(function() {
30+
alert("ready")
2831
var config = {title:data.title, desc:data.summary, link:data.url, imgUrl:data.pic, type:"", dataUrl:"", success:function() {
2932
data.callback && data.callback();
3033
}, cancel:function() {
3134
}};
35+
wx.getLocation({
36+
type: 'wgs84', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
37+
success: function (res) {
38+
var latitude = res.latitude; // 纬度,浮点数,范围为90 ~ -90
39+
var longitude = res.longitude; // 经度,浮点数,范围为180 ~ -180。
40+
var speed = res.speed; // 速度,以米/每秒计
41+
var accuracy = res.accuracy; // 位置精度
42+
alert("getLocation");
43+
}
44+
});
3245
wx.onMenuShareAppMessage(config);
3346
wx.onMenuShareQQ(config);
3447
wx.onMenuShareQZone(config);

themes/next/layout/_partials/footer.swig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
NexT.{{ theme.scheme }}
2020
</a>
2121
</div>
22-
{% endif %}
22+
{% endif %}

0 commit comments

Comments
 (0)