<template>
|
<view class="page-mine-box">
|
<img src="/static/qiye/q07.png" class="head" alt="" />
|
|
<view class="top-box">
|
<view class="user-news">
|
<!-- <u-avatar :src="src"></u-avatar> -->
|
<image src="/static/policy/header.png" mode="widthFix"></image>
|
<view class="user-info">
|
<view class="user-name">
|
<view class="inckname">{{msg.companyUser}}</view>
|
</view>
|
<view class="dept-name">
|
{{msg.companyName}}
|
</view>
|
</view>
|
</view>
|
<view class="show-phone-number">
|
<text class="label">联系电话</text>
|
<text>{{userPhone||""}}</text>
|
</view>
|
<view class="wbox">
|
<view class="item" @click="tousu()">
|
<view class="set-flex">
|
<image src="/static/qiye/q06.png" mode="widthFix"></image>
|
<text class="change">投诉记录</text>
|
</view>
|
<u-icon name="arrow-right"></u-icon>
|
</view>
|
<view class="item" @click="jianyi()">
|
<view class="set-flex">
|
<image src="/static/policy/jianyi-record.png" mode="widthFix" style="border-radius: 50%;"></image>
|
<text class="change">建议记录</text>
|
</view>
|
<u-icon name="arrow-right"></u-icon>
|
</view>
|
<view class="item" @click="switchPhone()" v-if="isShowChange">
|
<view class="set-flex">
|
<image src="/static/qiye/qiehuan.png" mode="widthFix"></image>
|
<text class="change">切换账号</text>
|
</view>
|
<u-icon name="arrow-right"></u-icon>
|
</view>
|
<view class="item" @click="goChangePhone()">
|
<view class="set-flex">
|
<image src="/static/policy/phone.png" mode="widthFix"></image>
|
<text class="change">修改手机号</text>
|
</view>
|
<u-icon name="arrow-right"></u-icon>
|
</view>
|
<view class="item" @click="goProposal()">
|
<view class="set-flex">
|
<image src="/static/policy/personal.png" mode="widthFix"></image>
|
<text class="change">投诉</text>
|
</view>
|
<u-icon name="arrow-right"></u-icon>
|
</view>
|
<view class="item" @click="goProposal1()">
|
<view class="set-flex">
|
<image src="/static/policy/jianyi.png" mode="widthFix"></image>
|
<text class="change">建议</text>
|
</view>
|
<u-icon name="arrow-right"></u-icon>
|
</view>
|
</view>
|
<!-- <view class="show-phone-number">
|
<view class="set-flex">
|
<image src="/static/qiye/q06.png" mode="widthFix"></image>
|
<text class="change">投诉记录</text>
|
</view>
|
<u-icon name="arrow-right"></u-icon>
|
</view>
|
<view class="show-phone-number" @click="goChangePhone">
|
|
</view> -->
|
</view>
|
<!-- <view class="main-box">
|
|
|
</view> -->
|
<view class="logout" @click="logout()">
|
退出登录
|
</view>
|
<tabsCom :activeNumber.sync="activeNumber"></tabsCom>
|
|
</view>
|
</template>
|
|
<script>
|
import tabsCom from '@/qiye/components/bottom.vue'
|
import { getInfo, getCompanyList } from '@/api/auth.js'
|
import { company } from '@/api/qiye.js'
|
export default {
|
components: {
|
tabsCom
|
},
|
data() {
|
return {
|
activeNumber: 2,
|
msg: {},
|
src: '/static/policy/header.png',
|
userPhone: "",
|
companyId: "",
|
isShowChange: false
|
}
|
},
|
onShow() {
|
this.httoInfo()
|
},
|
methods: {
|
httoInfo() {
|
getInfo().then(val => {
|
this.userPhone = val.data.data.phonenumber
|
this.companyId = uni.getStorageSync('companyId')
|
getCompanyList({companyPhone:val.data.data.phonenumber, companyStatus: 0, checkStatus: 2}).then(val => {
|
if(val.data.rows.length > 1) {
|
this.isShowChange = true
|
}
|
})
|
company(this.companyId).then(val => {
|
this.msg = val.data.data
|
})
|
})
|
},
|
goChangePhone() {
|
uni.navigateTo({
|
url: `/policy/changePhone/changePhone?code=02&companyId=${this.companyId}`
|
})
|
},
|
tousu(){
|
uni.navigateTo({
|
url: '/qiye/complaint/complaint'
|
})
|
},
|
jianyi(){
|
uni.navigateTo({
|
url: '/qiye/proprsalRecord/proprsalRecord'
|
})
|
},
|
switchPhone(){
|
uni.navigateTo({
|
url: "/qiye/switchPhone/switchPhone"
|
})
|
},
|
logout(){
|
uni.showModal({
|
title: '提示',
|
content: '确认退出登录?',
|
success: res => {
|
if(res.confirm) {
|
uni.clearStorageSync()
|
uni.redirectTo({
|
url: '/pages/index/index'
|
})
|
}
|
}
|
})
|
},
|
goProposal() {
|
uni.navigateTo({
|
url: `/qiye/proposal/proposal`
|
})
|
},
|
goProposal1() {
|
uni.navigateTo({
|
url: `/qiye/proposal1/proposal1`
|
})
|
}
|
}
|
}
|
</script>
|
<style>
|
page{
|
background: #f4f4f4;
|
}
|
</style>
|
<style lang="scss" scoped>
|
.page-mine-box {
|
.top-box {
|
margin-top: 200rpx;
|
box-sizing: border-box;
|
.user-news {
|
margin: 48rpx;
|
display: flex;
|
justify-content: flex-start;
|
align-items: center;
|
|
image {
|
width: 108rpx;
|
height: 108rpx;
|
background-color: white;
|
border-radius: 50%;
|
}
|
|
.user-info {
|
margin-left: 24rpx;
|
color: white;
|
|
.user-name {
|
display: flex;
|
justify-content: flex-start;
|
align-items: center;
|
margin-bottom: 24rpx;
|
|
.direc {
|
width: 2rpx;
|
height: 20rpx;
|
background-color: white;
|
vertical-align: middle;
|
margin: 0 16rpx;
|
}
|
}
|
|
.dept-name {
|
font-size: 28rpx;
|
color: #FFFFFFB3;
|
}
|
|
.dept-per {
|
font-size: 24rpx;
|
}
|
}
|
}
|
}
|
|
.main-box {
|
// position: relative;
|
// top: -45rpx;
|
}
|
.wbox{
|
background-color: white;
|
margin: 0 40rpx;
|
border-radius: 10rpx;
|
padding: 28rpx 24rpx;
|
font-size: 32rpx;
|
color: #202D44FF;
|
.label {
|
color: #7E8596FF;
|
}
|
|
.change {
|
margin-left: 20rpx;
|
color: #202D44FF;
|
}
|
|
.item{
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
border-bottom: 1px solid #f1f1f1;
|
padding-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
image {
|
width: 44rpx;
|
height: 44rpx;
|
}
|
}
|
.item:last-child{
|
border-bottom: none;
|
padding-bottom: 0;
|
margin-bottom: 0;
|
}
|
}
|
.show-phone-number {
|
background-color: white;
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
margin: 0 40rpx;
|
border-radius: 10rpx;
|
padding: 28rpx 24rpx;
|
font-size: 32rpx;
|
color: #202D44FF;
|
font-weight: normal;
|
margin-bottom: 20rpx;
|
|
.label {
|
color: #7E8596FF;
|
}
|
|
.change {
|
margin-left: 20rpx;
|
color: #202D44FF;
|
}
|
|
image {
|
width: 44rpx;
|
height: 44rpx;
|
}
|
}
|
|
.logout {
|
text-align: center;
|
padding: 20rpx 0;
|
justify-content: center;
|
align-items: center;
|
border-radius: 38rpx;
|
background: #FFF;
|
font-size: 32rpx;
|
color: #4a4e60ff;
|
width: calc(100% - 64rpx);
|
left: 32rpx;
|
position: fixed;
|
bottom: 180rpx;
|
}
|
|
.inckname {
|
font-size: 36rpx;
|
}
|
}
|
.head{
|
width: 100%;
|
height: 518rpx;
|
z-index: -1;
|
position: absolute;
|
left: 0;
|
top: 0;
|
}
|
</style>
|