| | |
| | | <view> |
| | | <scroll-view scroll-y class="page"> |
| | | <view class="nav-list"> |
| | | <navigator hover-class='none' :url="'/pages' + item.url" class="nav-li" navigateTo |
| | | <navigator hover-class='none' :url="'/pages' + item.url + '?id=' + item.id" class="nav-li" navigateTo |
| | | :class="'bg-'+item.color" :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1'}]" |
| | | v-for="(item,index) in elements2" :key="index"> |
| | | v-for="(item,index) in elements" :key="index"> |
| | | <view class="nav-title">{{item.title}}</view> |
| | | <view class="nav-name">{{item.name}}</view> |
| | | <text :class="'cuIcon-' + item.cuIcon"></text> |
| | |
| | | token: '', |
| | | icon: '', |
| | | elements: [], |
| | | project: 'tzsk', |
| | | project: 'phyz', |
| | | elements2: [ |
| | | { |
| | | title: '站点查询维护', |
| | |
| | | onShow() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.project = uni.getStorageSync('project') |
| | | this.getAuth() |
| | | // this.backGroundRepeat() |
| | | }, |
| | |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseUrl + '/menu/pda/auth', |
| | | data: {}, |
| | | data: {level:1,id: '0'}, |
| | | header: { 'token': uni.getStorageSync('token') }, |
| | | method: 'POST', |
| | | success(res) { |
| | | console.log(res); |
| | | res = res.data |
| | | that.elements = [] |
| | | if (res.code === 200) { |
| | |
| | | name: res.data[i].title, |
| | | color: that.colorList[i], |
| | | cuIcon: that.icon, |
| | | url: `/${that.project}${res.data[i].action}` |
| | | id: res.data[i].id, |
| | | url: `${res.data[i].code}` |
| | | }) |
| | | } |
| | | console.log(that.elements); |
| | | that.elements.push({ |
| | | title: '退出登录', |
| | | name: 'logOut', |