|  |  |  | 
|---|
|  |  |  | <view class="name" v-if="userInfo.realname">{{ userInfo.realname || userInfo.username || "" }},欢迎登录~</view> | 
|---|
|  |  |  | <view class="name" v-else>请先登录</view> | 
|---|
|  |  |  | <view class="btn" @click="loginOut">{{ | 
|---|
|  |  |  | userInfo.username ? "退出登录" : "去登录" | 
|---|
|  |  |  | userInfo.username ? "账号解绑" : "去登录" | 
|---|
|  |  |  | }}</view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="banner_wrap"> | 
|---|
|  |  |  | 
|---|
|  |  |  | width: 144rpx; | 
|---|
|  |  |  | height: 56rpx; | 
|---|
|  |  |  | border-radius: 36rpx; | 
|---|
|  |  |  | border: 1rpx solid $uni-color-primary; | 
|---|
|  |  |  | border: 1rpx solid #B2B2B2; | 
|---|
|  |  |  | font-size: 26rpx; | 
|---|
|  |  |  | color: $uni-color-primary; | 
|---|
|  |  |  | color: #666666; | 
|---|
|  |  |  | display: flex; | 
|---|
|  |  |  | justify-content: center; | 
|---|
|  |  |  | align-items: center; | 
|---|