|
@@ -8,6 +8,9 @@
|
|
|
<view class="user-info">
|
|
|
<open-data type="userNickName"></open-data>
|
|
|
</view>
|
|
|
+ <view>
|
|
|
+ <u-icon name="arrow-right" color="#fff"></u-icon>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="my-ledou">
|
|
|
<view class="user-jifen">
|
|
@@ -15,7 +18,7 @@
|
|
|
<u-image mode="scaleToFill" width="35rpx" height="35rpx" src="/static/ledou.png"></u-image>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <u-button size="mini" type="warrning" shape="circle">查看明细</u-button>
|
|
|
+ <u-button size="mini" type="warning" shape="circle">查看明细</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 列表 -->
|
|
@@ -27,10 +30,6 @@
|
|
|
<u-cell-item icon="info-circle" icon-size="38" :icon-style="{color:'#55aa00'}" index="3" @click="toPage" title="关于我们"></u-cell-item>
|
|
|
</u-cell-group>
|
|
|
</view>
|
|
|
- <!-- 退出 -->
|
|
|
- <view class="user-btn">
|
|
|
- <u-button type="success" :custom-style="quitButton" @click="quitSys" shape="circle">退出登录</u-button>
|
|
|
- </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -70,27 +69,6 @@
|
|
|
url: '/pages/userCenter/userInfo/userInfo'
|
|
|
})
|
|
|
},
|
|
|
- // 退出登录
|
|
|
- quitSys(){
|
|
|
- let _this = this
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '您确定要退出登录吗?',
|
|
|
- success(res) {
|
|
|
- if (res.confirm) {
|
|
|
- logout({}).then(res => {
|
|
|
- getApp().globalData.token = ''
|
|
|
- _this.$u.vuex('vuex_token','')
|
|
|
- // 关闭socket
|
|
|
- _this.$store.commit("$closeWebsocket")
|
|
|
- uni.reLaunch({
|
|
|
- url: '/pages/index/index'
|
|
|
- });
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
bindGetUserInfo(res){
|
|
|
console.log(res)
|
|
|
},
|
|
@@ -105,7 +83,7 @@
|
|
|
background: #01c9b2;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- padding: 35rpx;
|
|
|
+ padding: 35rpx 55rpx;
|
|
|
.user-info{
|
|
|
flex-grow: 1;
|
|
|
padding: 0 20rpx;
|
|
@@ -134,6 +112,7 @@
|
|
|
text{
|
|
|
font-size: 40upx;
|
|
|
font-weight: bold;
|
|
|
+ color: red;
|
|
|
}
|
|
|
>view{
|
|
|
&:first-child{
|