|
@@ -19,7 +19,6 @@ Page({
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- console.log(options)
|
|
|
let auth = options.auth ? JSON.parse(options.auth) : getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['通用'], ['个人中心'])[0].apps[0].meta.auth,
|
|
|
tabList = [],
|
|
|
authList = auth.map(v => {
|
|
@@ -50,9 +49,10 @@ Page({
|
|
|
}
|
|
|
return v.option
|
|
|
});
|
|
|
+ tabList = tabList.filter(v => v);
|
|
|
this.setData({
|
|
|
authList,
|
|
|
- tabList: tabList.filter(v => v),
|
|
|
+ tabList,
|
|
|
active: tabList[options.title ? tabList.findIndex(v => v.title == options.title) || 0 : 0]
|
|
|
})
|
|
|
/* if (options.title) setTimeout(() => {
|
|
@@ -84,7 +84,6 @@ Page({
|
|
|
id: active.id || '',
|
|
|
content: this.data.content
|
|
|
}).then(res => {
|
|
|
- console.log(active.title, res)
|
|
|
this.selectComponent('#ListBox').RefreshToComplete();
|
|
|
if (res.msg != '成功') return wx.showToast({
|
|
|
title: res.msg,
|