去掉法外狂徒
This commit is contained in:
parent
db49a6f0e9
commit
cb4889735b
|
@ -5,7 +5,7 @@
|
||||||
<image class="bg-logo" style="width: 200rpx; height: 170rpx" src="/static/adminImg/bg-logo.png"></image>
|
<image class="bg-logo" style="width: 200rpx; height: 170rpx" src="/static/adminImg/bg-logo.png"></image>
|
||||||
<image class="bg-hi" style="width: 130rpx; height: 50rpx" src="/static/adminImg/logo-hi.png"></image>
|
<image class="bg-hi" style="width: 130rpx; height: 50rpx" src="/static/adminImg/logo-hi.png"></image>
|
||||||
<view style="height: 150rpx"></view>
|
<view style="height: 150rpx"></view>
|
||||||
<view class="tip">欢迎使用,张三</view>
|
<view class="tip">欢迎使用,{{ userName }}</view>
|
||||||
<view class="desc">欢迎使用巡检管理员端</view>
|
<view class="desc">欢迎使用巡检管理员端</view>
|
||||||
<view class="card">
|
<view class="card">
|
||||||
<view class="card-item">
|
<view class="card-item">
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { GetHomeDataApi } from '@/api/apiAdmin'
|
import { GetHomeDataApi, GetUserDataApi } from '@/api/apiAdmin'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -46,13 +46,16 @@ export default {
|
||||||
areaCount: 0,
|
areaCount: 0,
|
||||||
bindnfc: 0,
|
bindnfc: 0,
|
||||||
noBindnfc: 0
|
noBindnfc: 0
|
||||||
}
|
},
|
||||||
|
userName: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
uni.hideLoading() // 关闭 Loading
|
uni.hideLoading() // 关闭 Loading
|
||||||
|
this.getDetailFn() // 获取用户数据
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
|
||||||
uni.$off('reset')
|
uni.$off('reset')
|
||||||
uni.$on('reset', () => {
|
uni.$on('reset', () => {
|
||||||
console.log('%c%s', 'color:red', 'reset')
|
console.log('%c%s', 'color:red', 'reset')
|
||||||
|
@ -61,9 +64,16 @@ export default {
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getDataFn()
|
this.getDataFn()
|
||||||
|
this.getDetailFn() // 获取用户数据
|
||||||
console.log('%c%s', 'color:red', 'onSHow')
|
console.log('%c%s', 'color:red', 'onSHow')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async getDetailFn() {
|
||||||
|
const res = await GetUserDataApi();
|
||||||
|
console.log(res, "用户数据");
|
||||||
|
// 用户名称
|
||||||
|
this.userName = res.data.userName
|
||||||
|
},
|
||||||
// 跳转
|
// 跳转
|
||||||
toPageFn(type) {
|
toPageFn(type) {
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
|
|
Loading…
Reference in New Issue