xiaohaizhao 3 лет назад
Родитель
Сommit
313f3033e2
1 измененных файлов с 4 добавлено и 6 удалено
  1. 4 6
      packageA/activity/detail.js

+ 4 - 6
packageA/activity/detail.js

@@ -122,8 +122,7 @@ Page({
             });
             this.getTags();
             this.getGroup();
-            this.partialRenewal();
-
+            this.partialRenewal(true);
             let isLeader = res.data.leader[0].userid == wx.getStorageSync('userMsg').userid;
             if (isLeader) {
                 this.setTabbarList(isLeader, res.data.status)
@@ -162,7 +161,8 @@ Page({
                     label: "结束"
                 }]
             };
-            if (status == '新建' || status == '结束') getApp().globalData.handleClue = this.isDelete.bind(this);
+            if ((status == '新建' || status == '结束') && isLeader) getApp().globalData.handleClue = this.isDelete.bind(this);
+            console.log(status)
         }
         this.setData({
             tabbarList,
@@ -174,6 +174,7 @@ Page({
      * @param {number} total 数据数量
      */
     isDelete(total) {
+        console.log(total)
         if (total == 0) this.setData({
             tabbarList: this.data.tabbarList.concat([{
                 icon: "icon-guanlian-shanchu",
@@ -273,9 +274,6 @@ Page({
                             });
                             if (res.msg == '成功') {
                                 this.getDetail()
-                                this.setData({
-                                    tabbarList: []
-                                })
                             }
                         })
                     }