|
@@ -11,7 +11,7 @@ if (pageUserInfo.memberStatus < 0 || !pageUserInfo.memberStatus) {
|
|
|
} else {
|
|
|
$('.footer-banner').hide()
|
|
|
$(".subpage-button").each(function () {
|
|
|
- var nType = $(this).text()
|
|
|
+ var nType = $(this).text().trim()
|
|
|
if (nType === '立即体验') {
|
|
|
$(this).text('立即使用')
|
|
|
}
|
|
@@ -34,7 +34,7 @@ function filpNumber () {
|
|
|
if (!demo.error) {
|
|
|
demo.start();
|
|
|
} else {
|
|
|
- console.error(demo.error);
|
|
|
+ console.warn(demo.error);
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -138,6 +138,8 @@ $(function () {
|
|
|
var hKey = $(this).siblings('h5').text()
|
|
|
var dKey = $(this).attr('data-source')
|
|
|
var typeKey = pKey || hKey || dKey
|
|
|
+ typeKey = typeKey.trim()
|
|
|
+ nType = nType.trim()
|
|
|
try {
|
|
|
_hmt.push(['_trackEvent', sourceMap[typeKey].source, 'click', nType]);
|
|
|
} catch (e) {
|
|
@@ -225,14 +227,16 @@ $(function () {
|
|
|
}
|
|
|
// 数字滚动
|
|
|
var numberBox = $(".show-number-box")
|
|
|
- var numberBoxH = numberBox.offset().top
|
|
|
- if ($(window).scrollTop() + $(window).height() >= numberBoxH) {
|
|
|
- if (!numberBox.attr('data-show-an')) {
|
|
|
- numberBox.attr('data-show-an','true')
|
|
|
- filpNumber()
|
|
|
+ if (numberBox) {
|
|
|
+ var numberBoxH = numberBox.offset().top
|
|
|
+ if ($(window).scrollTop() + $(window).height() >= numberBoxH) {
|
|
|
+ if (!numberBox.attr('data-show-an')) {
|
|
|
+ numberBox.attr('data-show-an','true')
|
|
|
+ filpNumber()
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ numberBox.removeAttr('data-show-an')
|
|
|
}
|
|
|
- } else {
|
|
|
- numberBox.removeAttr('data-show-an')
|
|
|
}
|
|
|
}
|
|
|
|