sun2511 2 years ago
parent
commit
4f10cc8b05

+ 0 - 2
pages/index/index.js

@@ -194,9 +194,7 @@ Page({
                 isSwiper: false,
                 recommendTotalNo: 1
             })
-            console.log(this.data.myIndex, '崇拜你');
             httpRequestApi.getClassDetail(id).success(res => {
-                console.log('有一条数据', res)
                 let tempList = [];
                 tempList.push(res.data.data);
                 this.setData({

+ 1 - 5
pages/social/replyDetail/replyDetail.js

@@ -46,11 +46,7 @@ Page({
                     replyInfo: '',
                     flowerNum: res.data.count
                 }, () => {
-                    if (res.data.count > 0) {
-                        console.log(123123)
-                        this.flowerBox = this.selectComponent("#flower-box");
-                        this.flowerBox.comeOut();
-                    }
+                    if (res.data.count > 0) {}
                     this.getReplyDetail();
                 });
             });

+ 0 - 2
pages/social/replyDetail/replyDetail.wxml

@@ -25,6 +25,4 @@
       </view>
     </view>
   </view>
-  
-      <FlowerBox id="flower-box" flowerNum="{{flowerNum}}"  />
 </view>

+ 6 - 18
pages/social/works/works.js

@@ -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() {
         // 当前在推荐页面 加载推荐

+ 0 - 1
pages/social/works/works.wxml

@@ -129,5 +129,4 @@
     <view hidden="{{hide}}">
         <Dialog bindmyevent="jurisdiction" />
     </view>
-    <FlowerBox id="flower-box" flowerNum="{{flowerNum}}"  />
 </view>