This commit is contained in:
nyoung 2024-08-22 21:41:29 +08:00
parent 84aef54964
commit adf1e5b60b
3 changed files with 10 additions and 6 deletions

View File

@ -318,7 +318,7 @@
userJson.userId = res.data.user.userId
uni.setStorageSync('userInfo', res.data.user)
uni.setStorageSync('userId', res.data.user.userId)
uni.setStorageSync('role', res.data.role)
uni.setStorageSync('role', res.data.roles)
this.goselect()
})
}

View File

@ -1,5 +1,8 @@
<template>
<view class="centenr">
<view style="background-color: rgb(49, 125, 250);">
<v-navigation-bar-vue title="数据统计"></v-navigation-bar-vue>
<view class="queryDate">
<text>日期</text>
@ -9,6 +12,7 @@
<image class="dateFormIcon" src="../../static/icons/statisticsinfo/rili@2x.png" mode="aspectFit"></image>
</view>
</view>
</view>
<view class="ail">
<view class="san_" v-for="(item,index) in dataList " :key="index">
<view class="s_box">
@ -109,7 +113,7 @@
flex-direction: column;
height: 100%;
}
.queryDate {
padding: 26rpx 32rpx;
background-color: #317DFA;
@ -131,7 +135,7 @@
color: #C0C4CD;
font-size: 24rpx;
}
.dateFormIcon {
width: 36rpx;
height: 36rpx;
@ -201,4 +205,4 @@
background: #003bbc !important;
color: #fff !important;
}
</style>
</style>

View File

@ -20,9 +20,9 @@
<view class="c-title" v-if="!userinfo" @click="gologin">立即登录</view>
<view class="c-title" v-else>
<view style="display: flex; align-items: center;">
<text>{{userinfo.realName || '用户昵称'}}</text>
<text>{{userinfo.info.nickname || '用户昵称'}}</text>
</view>
<text style="font-size: 14px;font-weight: normal;color: #88b4fb">{{userinfo.phonenumber || '未填写手机号码'}}</text>
<text style="font-size: 14px;font-weight: normal;color: #88b4fb">{{userinfo.info.phonenumber || '未填写手机号码'}}</text>
</view>
</view>