去掉法外狂徒

This commit is contained in:
李彪 2025-05-15 16:59:02 +08:00
parent db49a6f0e9
commit cb4889735b
1 changed files with 21 additions and 11 deletions

View File

@ -5,7 +5,7 @@
<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>
<view style="height: 150rpx"></view>
<view class="tip">欢迎使用,张三</view>
<view class="tip">欢迎使用,{{ userName }}</view>
<view class="desc">欢迎使用巡检管理员端</view>
<view class="card">
<view class="card-item">
@ -37,7 +37,7 @@
</view>
</template>
<script>
import { GetHomeDataApi } from '@/api/apiAdmin'
import { GetHomeDataApi, GetUserDataApi } from '@/api/apiAdmin'
export default {
data() {
return {
@ -46,13 +46,16 @@ export default {
areaCount: 0,
bindnfc: 0,
noBindnfc: 0
}
},
userName: ''
}
},
mounted() {
uni.hideLoading() // Loading
this.getDetailFn() //
},
onLoad() {
uni.$off('reset')
uni.$on('reset', () => {
console.log('%c%s', 'color:red', 'reset')
@ -61,9 +64,16 @@ export default {
},
onShow() {
this.getDataFn()
this.getDetailFn() //
console.log('%c%s', 'color:red', 'onSHow')
},
methods: {
async getDetailFn() {
const res = await GetUserDataApi();
console.log(res, "用户数据");
//
this.userName = res.data.userName
},
//
toPageFn(type) {
if (type === 1) {