| | |
| | | <view class="head-bar" :style="{ height: navHeight + statusbarHeight + 'px' }"> |
| | | <view :style="{ width: '100%', height: statusbarHeight + 'px' }"></view> |
| | | <view class="head-bar-nav" :style="{ height: navHeight + 'px' }"> |
| | | <view class="loginOut" @click="logoutCom()"> |
| | | <view class="loginOut" > |
| | | <u-icon class="icon" margin="5" name="home" label="商城" @click="jumpIndex()"label-color="#004096" label-size="13" size="13" mode="widthFix"></u-icon> |
| | | <text style="margin: 0rpx 10rpx 0 15rpx;font-size: 20rpx;">|</text> |
| | | <u-icon class="icon" margin="5" name="bell" @click="logoutCom()" label="登出" label-color="#004096" label-size="13" size="13" mode="widthFix"></u-icon> |
| | | </view> |
| | | <!-- <view class="loginOut" @click="logoutCom()"> |
| | | <image src="/static/icon/ic_tixing@2x.png" mode="widthFix"></image> |
| | | <text>登出</text> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | <view class="user"> |
| | |
| | | |
| | | } |
| | | }, |
| | | jumpIndex(){ |
| | | uni.switchTab({ |
| | | url:"/pages/index/index" |
| | | }) |
| | | }, |
| | | async logout(){ |
| | | var that =this |
| | | let res = await that.$u.api.shopLogout({tokenType:1 }) |
| | |
| | | }) |
| | | }, |
| | | jumpShopLogin() { |
| | | uni.navigateTo({ |
| | | uni.redirectTo({ |
| | | url: '/pages/login/login' |
| | | }) |
| | | }, |
| | |
| | | |
| | | .head-bar { |
| | | width: 100%; |
| | | |
| | | .head-bar-nav { |
| | | width: 100%; |
| | | |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: left; |
| | | .home { |
| | | width: 52rpx; |
| | | height: 52rpx; |
| | | background: #C3E6F5; |
| | | border-radius: 26rpx; |
| | | margin-right: 20rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | text { |
| | | font-weight: 400; |
| | | font-size: 26rpx; |
| | | color: #004096; |
| | | } |
| | | } |
| | | .loginOut { |
| | | width: 120rpx; |
| | | width: 240rpx; |
| | | height: 52rpx; |
| | | background: #C3E6F5; |
| | | border-radius: 26rpx; |