更新以下赞赏模块

This commit is contained in:
luchenqun 2017-04-23 20:53:00 +08:00
parent 12cd0cbad7
commit 3576cd334f
1 changed files with 3 additions and 5 deletions

View File

@ -9,10 +9,12 @@ app.controller('praiseCtr', ['$scope', '$state', '$stateParams', '$filter', '$wi
login: login,
index: index
});
transition();
})
.catch((err) => {
console.log('autoLogin err', err)
});
$('.js-segment-praise').transition('hide');
function animation() {
var data = ['scale', 'fade', 'fade up', 'fade down', 'fade left', 'fade right', 'horizontal flip',
@ -25,11 +27,7 @@ app.controller('praiseCtr', ['$scope', '$state', '$stateParams', '$filter', '$wi
}
function transition() {
$timeout(function() {
timeagoInstance.cancel();
timeagoInstance.render(document.querySelectorAll('.need_to_be_rendered'), 'zh_CN');
}, 100)
var className = 'js-table-search';
var className = 'js-segment-praise';
$('.' + className).transition('hide');
$('.' + className).transition({
animation: animation(),