|
|
@@ -218,7 +218,7 @@ Page({
|
|
|
async setTabbarList() {
|
|
|
let detail = this.data.detail,
|
|
|
status = detail.status,
|
|
|
- isLeader = detail.leader[0].userid == wx.getStorageSync('userMsg').userid,
|
|
|
+ isLeader = detail.leader.length ? detail.leader.some(v => v.userid == wx.getStorageSync('userMsg').userid) : false,
|
|
|
isAdmin = this.data.isAdmin,
|
|
|
specialoffer = detail.specialoffer == 1,
|
|
|
editdataleader = isLeader,
|