123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- <template>
- <view class="mine">
- <view class="top">
- </view>
- <view class="top-card">
- <view class="top-left">
- <image src="../../static/images/avator.jpeg" mode=""></image>
- </view>
- <view class="top-right">
- <view class="text">
- <view class="text1">
- {{userInfo.true_name}}-{{userInfo.politics_status_text}}
- </view>
- <view class="text1" style="color: #959595;">
- {{userInfo.organization.name}}
- </view>
- </view>
- </view>
- </view>
- <view class="list">
- <view class="list-child" @click="changMess()">
- <view class="list-left">
- <image src="../../static/images/mine3.png" mode=""></image>
- </view>
- <view class="list-right">
- <text>个人信息</text>
- <text class="iconfont icon-right" style="float: right;"></text>
- </view>
- </view>
- <view class="list-child" @click="messageList()">
- <view class="list-left">
- <image src="../../static/images/notice3.png" mode=""></image>
- </view>
- <view class="list-right">
- <text>通知公告</text>
- <text class="iconfont icon-right" style="float: right;"></text>
- </view>
- </view>
- </view>
- <view class="list1" @click="resetPassword()">
- <view class="list-child">
- <view class="list-left">
- <image src="../../static/images/reset.png" mode=""></image>
- </view>
- <view class="list-right">
- <text>修改密码 </text>
- <text class="iconfont icon-right" style="float: right;"></text>
- </view>
- </view>
- </view>
- <view class="list1">
- <view class="list-child" @click="exit()">
- <view class="list-left">
- <image src="../../static/images/exit.png" mode=""></image>
- </view>
- <view class="list-right">
- <text>退出登录</text>
- <text class="iconfont icon-right" style="float: right;"></text>
- </view>
-
- </view>
- </view>
- </view>
- </template>
- <script>
- var app = getApp()
- export default {
- data() {
- return {
- userInfo: uni.getStorageSync('userInfo'),
- }
- },
- methods: {
- changMess: function() {
- uni.navigateTo({
- url: './changeMessage'
- })
- },
- messageList: function() {
- uni.navigateTo({
- url: './messageList'
- })
- },
- exit: function() {
- uni.showModal({
- title: '提示',
- content: '即将退出系统',
- success: function(res) {
- if (res.confirm) {
- app.request('/authorization', '', 'delete').then(res => {
- uni.reLaunch({
- url: '../login/index'
- })
- uni.clearStorageSync()
- })
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- },
- resetPassword: function() {
- uni.navigateTo({
- url: './resetPassword'
- })
- }
- }
- }
- </script>
- <style lang="scss">
- page {
- background-color: #f4f4f4;
- }
- .mine {
- position: relative;
- .top-card {
- box-shadow: 2px 2px 5px #d5d5d5;
- border-radius: 12upx;
- position: absolute;
- width: 90%;
- margin: 0 auto;
- height: 230upx;
- background-color: #FFFFFF;
- margin-top: -200upx;
- top: 400upx;
- left: 5%;
- .top-left {
- width: 140upx;
- height: 140upx;
- left: 40%;
- border-radius: 50%;
- overflow: hidden;
- margin: 0 auto;
- margin-top: -70upx;
- z-index: 6000;
- margin-bottom: 20upx;
- image {
- width: 140upx;
- height: 140upx;
- }
- }
- .top-right {
- margin: 0 auto;
- text-align: center;
- .text {
- height: 230upx;
- border-radius: 50%;
- .text1 {
- height: 50upx;
- line-height: 50upx;
- font-size: 28upx;
- }
- }
- }
- }
- .top {
- display: flex;
- height: 350upx;
- width: 100%;
- background-color: #e61916;
- border-radius: 0 0 30% 30%;
- }
- .list,
- .list1 {
- box-shadow: 2px 2px 5px #d5d5d5;
- width: 90%;
- margin: 0 auto;
- background-color: #FFFFFF;
- border-radius: 10upx;
- margin-top: 120upx;
- .list-child {
- height: 100upx;
- line-height: 100upx;
- padding: 0 30upx;
- border-bottom: solid 2upx #f0f0f0;
- font-size: 30upx;
- display: flex;
- .list-left {
- flex: 0 0 50upx;
- margin-right: 10upx;
- image {
- height: 40upx;
- width: 40upx;
- margin-top: 30upx;
- }
- }
- .list-right {
- flex: 1;
- }
- .left-icon {
- color: #e67c7c;
- font-size: 38upx;
- margin-right: 10upx;
- line-height: 90upx;
- }
- }
- }
- .list1 {
- margin-top: 30upx;
- }
- .exit {
- height: 80upx;
- margin-top: 50upx;
- line-height: 80upx;
- font-size: 30upx;
- text-align: center;
- color: #e61916;
- }
- }
- </style>
|