|
@@ -74,12 +74,11 @@ Page({
|
|
|
console.log(option.flowerCount === 0)
|
|
|
if (option.flowerCount) {
|
|
|
this.setData({
|
|
|
- fromReading: true
|
|
|
- })
|
|
|
- this.flowerAnimationHandler();
|
|
|
- // setTimeout(() => {
|
|
|
- // this.openShare();
|
|
|
- // }, 300)
|
|
|
+ fromReading: true
|
|
|
+ })
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.openShare();
|
|
|
+ // }, 300)
|
|
|
if (option.flowerCount > 0) {
|
|
|
this.setData({
|
|
|
flowerNum: option.flowerCount
|
|
@@ -289,11 +288,7 @@ Page({
|
|
|
this.setData({
|
|
|
isLike: true,
|
|
|
flowerNum: res.data.count
|
|
|
- }, () => {
|
|
|
- if (res.data.count > 0) {
|
|
|
- this.flowerAnimationHandler();
|
|
|
- }
|
|
|
- });
|
|
|
+ }, () => {});
|
|
|
})
|
|
|
|
|
|
},
|
|
@@ -602,18 +597,11 @@ Page({
|
|
|
flowerNum: res.data.count
|
|
|
})
|
|
|
this.getReply();
|
|
|
- if (res.data.count > 0) {
|
|
|
- this.flowerAnimationHandler();
|
|
|
- }
|
|
|
});
|
|
|
// 评论成功后刷新数据
|
|
|
|
|
|
}
|
|
|
},
|
|
|
- flowerAnimationHandler: function() {
|
|
|
- this.flowerBox = this.selectComponent("#flower-box");
|
|
|
- this.flowerBox.comeOut();
|
|
|
- },
|
|
|
// 触底加载
|
|
|
onReachBottom: function() {
|
|
|
// 当前在推荐页面 加载推荐
|