| | |
| | | </navigator> |
| | | </view> |
| | | <view class="cu-tabbar-height"></view> |
| | | <view style="height: 50rpx;"></view> |
| | | </scroll-view> |
| | | </view> |
| | | </template> |
| | |
| | | }, |
| | | |
| | | ], |
| | | menu: [], |
| | | colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','olive','grey' ] |
| | | }; |
| | | }, |
| | |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.project = uni.getStorageSync('project') |
| | | this.getAuth(option.id) |
| | | this.menu = uni.getStorageSync('menu'); |
| | | this.getAuth2(option.id) |
| | | this.backGroundRepeat() |
| | | }, |
| | | methods: { |
| | |
| | | i++ |
| | | } |
| | | }, |
| | | getAuth2(id) { |
| | | let secMenu = [] |
| | | for (let k of this.menu) { |
| | | if (id == k.id) { |
| | | secMenu = k.children |
| | | } |
| | | } |
| | | for (let i in secMenu) { |
| | | this.getIcon(secMenu[i].title) |
| | | this.elements.unshift({ |
| | | title: secMenu[i].name, |
| | | name: secMenu[i].title, |
| | | color: this.colorList[i], |
| | | cuIcon: this.icon, |
| | | id: secMenu[i].id, |
| | | url: `${secMenu[i].code}` |
| | | }) |
| | | } |
| | | }, |
| | | getAuth(id) { |
| | | let that = this |
| | | uni.request({ |