|
@@ -1,15 +1,17 @@
|
|
function initSwiper() {
|
|
function initSwiper() {
|
|
var interleaveOffset = 0.5; //视差比值
|
|
var interleaveOffset = 0.5; //视差比值
|
|
|
|
|
|
- function playAnOfIndex(index, type = true, delay = 0) {
|
|
|
|
|
|
+ function playAnOfIndex(index, type = true, delay) {
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
var tempNode = $('.swiper-container .slide-inner').eq(index).find('*[animate-name]')
|
|
var tempNode = $('.swiper-container .slide-inner').eq(index).find('*[animate-name]')
|
|
$(tempNode).each(function () {
|
|
$(tempNode).each(function () {
|
|
var anName = $(this).attr('animate-name')
|
|
var anName = $(this).attr('animate-name')
|
|
- var anDelay = $(this).attr('animate-delay') || '200'
|
|
|
|
|
|
+ var anDelay = $(this).attr('animate-delay')
|
|
if (type) {
|
|
if (type) {
|
|
$(this).addClass(anName)
|
|
$(this).addClass(anName)
|
|
- $(this).css('animation-delay', anDelay + 'ms')
|
|
|
|
|
|
+ if (anDelay) {
|
|
|
|
+ $(this).css('animation-delay', anDelay + 'ms')
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
tempNode.removeClass(anName)
|
|
tempNode.removeClass(anName)
|
|
}
|
|
}
|
|
@@ -197,6 +199,7 @@ var vPage = new Vue({
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
goResult: function () {
|
|
goResult: function () {
|
|
|
|
+ sessionStorage.setItem('yearEndReportResult', JSON.stringify(this.pageInfo))
|
|
location.href = './yearEndReportResult'
|
|
location.href = './yearEndReportResult'
|
|
},
|
|
},
|
|
getPageInfo: function () {
|
|
getPageInfo: function () {
|