更新以下赞赏模块
This commit is contained in:
parent
12cd0cbad7
commit
3576cd334f
|
|
@ -9,10 +9,12 @@ app.controller('praiseCtr', ['$scope', '$state', '$stateParams', '$filter', '$wi
|
||||||
login: login,
|
login: login,
|
||||||
index: index
|
index: index
|
||||||
});
|
});
|
||||||
|
transition();
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log('autoLogin err', err)
|
console.log('autoLogin err', err)
|
||||||
});
|
});
|
||||||
|
$('.js-segment-praise').transition('hide');
|
||||||
|
|
||||||
function animation() {
|
function animation() {
|
||||||
var data = ['scale', 'fade', 'fade up', 'fade down', 'fade left', 'fade right', 'horizontal flip',
|
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() {
|
function transition() {
|
||||||
$timeout(function() {
|
var className = 'js-segment-praise';
|
||||||
timeagoInstance.cancel();
|
|
||||||
timeagoInstance.render(document.querySelectorAll('.need_to_be_rendered'), 'zh_CN');
|
|
||||||
}, 100)
|
|
||||||
var className = 'js-table-search';
|
|
||||||
$('.' + className).transition('hide');
|
$('.' + className).transition('hide');
|
||||||
$('.' + className).transition({
|
$('.' + className).transition({
|
||||||
animation: animation(),
|
animation: animation(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue