123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 |
- <template>
- <view>
- <view class="gradient-header">
- <view class="jpback">
-
- </view>
- </view>
-
- <view class="body">
-
- <view class="page-top" >
-
- <view class="name">
- <view class="photo">
- <img class="img" :src="userInfo.headImg" v-if="userInfo.headImg" alt="">
- <img class="img" src="@/assets/img/默认头像.png" v-else alt="">
-
-
- </view>
- <view class="text">
- <view class="text1">{{userInfo.realName}}</view>
- <view class="text2">{{userInfo.userName}}</view>
- </view>
- </view>
- <view class="value">
- <!-- <u-icon name="arrow-right" size="24" color="#fff"></u-icon> -->
- </view>
- </view>
- <view class="page" v-if="0">
- <view class="page-main">
-
- <view class="item" @click="gotoUrl('/pages/mylock/myLock')"
- v-if="userInfoPlus&&userInfoPlus.myAllList" >
- <view class="name">{{userInfoPlus.myAllList.length}}</view>
- <view class="value">地锁</view>
- </view>
- <view class="item2">
-
- </view>
- <view class="item" @click="gotoUrl('/pages/mylock/myWhite')" >
- <view class="name">{{whiteNum}}</view>
- <view class="value">白名单</view>
- </view>
-
- </view>
- </view>
- <view class="page">
-
- <view class="page-content">
- <view class="item" @click="gotoUrl('/pages/myTab/myMessage')" >
- <view class="title">
- <!-- <img class="img" src="@/assets/img/myTab/icon1.svg" alt=""> -->
- <u-icon size="40" :marginLeft="12" label-size="32" name="chat" label="我的消息" ></u-icon>
-
- </view>
- <view class="goto">
- <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
- </view>
- </view>
- <view class="item" @click="gotoUrl('/pages/myTab/feedbackList')" >
- <view class="title">
-
- <u-icon name="email" size="40" label-size="32" :marginLeft="12" label="意见反馈"></u-icon>
-
- </view>
- <view class="goto">
- <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
- </view>
- </view>
- <view class="item" @click="gotoUrl('/pages/myTab/customerService')" >
- <view class="title">
-
- <u-icon name="server-fill" size="40" label-size="32" :marginLeft="12" label="客服热线"></u-icon>
-
- </view>
- <view class="goto">
- <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
- </view>
- </view>
- <view class="item" @click="gotoUrl('/pages/myTab/abnormalList')" >
- <view class="title">
-
- <u-icon name="error-circle" size="40" label-size="32" :marginLeft="12" label="异常告警"></u-icon>
-
- </view>
- <view class="goto">
- <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
- </view>
- </view>
-
- </view>
- </view>
- <view class="page" @click="signOut">
-
- <view class="button">
- 退出账号
-
- </view>
- </view>
-
- <u-modal v-model="show1" @confirm="confirm" confirm-color="#FF3D00" :show-cancel-button="true" ref="uModal"
- :asyncClose="true" title="退出账号" content="是否退出当前账号?" :content-style="{color: '#333333'}"></u-modal>
-
-
-
- </view>
- <tabbar :current="3"></tabbar>
- </view>
- </template>
- <script>
- import * as API from '@/apis/pagejs/user.js'
-
- import Tabbar from '@/components/Tabbar.vue'
- export default {
- components: {
- Tabbar
- },
- data() {
- return {
- show1:false,
- isReady:false,
- userInfo:{},
- userInfoPlus:{
- whiteList:[],
- myAllList:[]
- },
- whiteNum:0,
- };
- },
- onLoad() {
- this.userInfo=this.jphelp.getPersonInfo()
- console.log(this.userInfo)
- },
- methods:{
- signOut() {
- this.show1 = true;
- },
- confirm() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.logout().then((res) => {
- uni.hideLoading();
- this.show1 = false;
- this.jphelp.logoff()
- uni.redirectTo({
- url: '/pages/login/login'
- })
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- }
- }
- </script>
- <style lang="scss">
- page {
- background-color: rgba(242, 244, 246, 1);
- }
- .body {
- padding: 32rpx;
- }
-
- .gradient-header {
- height: 0px;
- }
-
- .jpback {
- height: 268rpx;
- background: linear-gradient(180deg, rgba(22, 119, 255, 1) 20%, rgba(121, 177, 255, 1) 100%);
- }
-
- .page-top {
-
- color: #fff;
- display: flex;
- justify-content: space-between;
- margin: 48rpx 0;
-
- .name {
-
- display: flex;
- align-items: flex-end;
-
- .photo {
- border-radius: 50px;
- background-color: rgba(229, 229, 229, 1);
- height: 100rpx;
- width: 100rpx;
- overflow: hidden;
-
- .img {
- width: 100%;
- height: 100%;
- }
- }
-
- .text {
- margin-left: 24rpx;
-
- .text1 {
- font-weight: bold;
- font-size: 40rpx;
- }
-
- .text2 {
-
- font-size: 32rpx;
-
- }
- }
-
- }
-
- .value {
- margin-top: 24rpx;
- font-size: 40rpx;
- font-weight: bold;
- color: #333333;
- }
- }
-
- .page {
-
- border-radius: 16rpx;
- background-color: rgba(255, 255, 255, 1);
- color: rgba(16, 16, 16, 1);
-
- padding:0 32rpx;
- margin-bottom: 32rpx;
- font-size: 32rpx;
- color: rgb(16, 16, 16);
-
- .page-main {
- display: flex;
- justify-content: space-around;
- align-items: center;
- padding:24rpx;
- .item {
- .name {
- font-size: 56rpx;
- color: #333333;
- font-weight: bold;
- }
-
- .value {
- color: rgba(146, 146, 176, 1);
- font-size: 32rpx;
- }
-
- display: flex;
- flex-direction: column;
- align-items: center;
-
-
- }
-
- .item2 {
- border-right: 1px solid rgba(187, 187, 187, 0.43);
- height: 70rpx;
- }
-
- }
-
- .page-content {
- .item:not(:last-child) {
- border-bottom:1px solid rgba(232,232,232,1);
- }
- .item {
- padding: 46rpx 0;
- display: flex;
- justify-content: space-between;
- align-items: center;
-
- .title {
- display: flex;
- justify-content: space-between;
- display: flex;
- align-items: center;
- color: rgba(51,51,51,1);
- .img {
- width: 32rpx;
- height: 32rpx;
-
- margin-right: 16rpx;
- }
- }
- }
- }
-
- .button{
- text-align: center;
- color: red;
- padding: 32rpx 0;
- }
-
- }
- </style>
|