|
@@ -8,8 +8,9 @@
|
|
|
<view class="text">
|
|
<view class="text">
|
|
|
<view class="name">{{userInfo.nickname}}<text>{{userInfo.levelname}}</text></view>
|
|
<view class="name">{{userInfo.nickname}}<text>{{userInfo.levelname}}</text></view>
|
|
|
<view>{{userInfo.mobile}}</view>
|
|
<view>{{userInfo.mobile}}</view>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <text @click="loginOut">退出</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="money">
|
|
<view class="money">
|
|
|
<view class="balance">
|
|
<view class="balance">
|
|
@@ -150,6 +151,23 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ loginOut: function() {
|
|
|
|
|
+ let that = this;
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ content: '确定退出登录?',
|
|
|
|
|
+ success: function (res) {
|
|
|
|
|
+ if (res.confirm) {
|
|
|
|
|
+ that.$store.commit("LOGOUT");
|
|
|
|
|
+ uni.switchTab({
|
|
|
|
|
+ url: '/pages/index/index'
|
|
|
|
|
+ });
|
|
|
|
|
+ } else if (res.cancel) {
|
|
|
|
|
+ console.log('用户点击取消');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -157,6 +175,8 @@
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
.header{
|
|
.header{
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
height:360rpx;
|
|
height:360rpx;
|
|
|
background: linear-gradient(90deg,#ff5c00 0,#FF464E);
|
|
background: linear-gradient(90deg,#ff5c00 0,#FF464E);
|
|
|
.info{
|
|
.info{
|
|
@@ -197,6 +217,11 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ text{
|
|
|
|
|
+ color:#fff;
|
|
|
|
|
+ padding-top: 80rpx;
|
|
|
|
|
+ padding-right: 25rpx;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.money{
|
|
.money{
|
|
|
width:700rpx;
|
|
width:700rpx;
|