|
@ -30,9 +30,10 @@ module.exports = Behavior ({ |
|
|
Promise.all([this.getModuleList(), this.getImgUrl()]).then( () => { |
|
|
Promise.all([this.getModuleList(), this.getImgUrl()]).then( () => { |
|
|
let newArr = group(this.data.tabList.sort(compare('sort')), 2) |
|
|
let newArr = group(this.data.tabList.sort(compare('sort')), 2) |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
tabLeftList: newArr[0], |
|
|
tabLeftList: newArr[1], |
|
|
tabRightList: newArr[1] |
|
|
tabRightList: newArr[0] |
|
|
}) |
|
|
}) |
|
|
|
|
|
// 2021.07.09 左右菜单互换位置
|
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 获取模块信息
|
|
|
// 获取模块信息
|
|
@ -49,8 +50,8 @@ module.exports = Behavior ({ |
|
|
if (item.categoryCode == 'shouye') { |
|
|
if (item.categoryCode == 'shouye') { |
|
|
this.data.tabList.push(item) |
|
|
this.data.tabList.push(item) |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
shouye: item, |
|
|
shouye: item, |
|
|
tabList: this.data.tabList |
|
|
tabList: this.data.tabList |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|