去掉法外狂徒
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-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) {
|
||||
|
|
Loading…
Reference in New Issue