|
|
@@ -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: []
|
|
|
- })
|
|
|
}
|
|
|
})
|
|
|
}
|