| | |
| | | <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"> |
| | |
| | |
|
| | | <script> |
| | | import tabsCom from '@/qiye/components/bottom.vue' |
| | | import { getInfo } from '@/api/auth.js'
|
| | | import { getInfo, getCompanyList } from '@/api/auth.js'
|
| | | import { company } from '@/api/qiye.js'
|
| | | export default { |
| | | components: { |
| | |
| | | activeNumber: 2, |
| | | msg: {},
|
| | | src: '/static/policy/header.png',
|
| | | userPhone: ""
|
| | | userPhone: "",
|
| | | companyId: "",
|
| | | isShowChange: false
|
| | | }
|
| | | },
|
| | | onShow() {
|
| | |
| | | httoInfo() {
|
| | | getInfo().then(val => {
|
| | | this.userPhone = val.data.data.phonenumber
|
| | | company(val.data.data.deptId).then(val => {
|
| | | 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'
|
| | | url: `/policy/changePhone/changePhone?code=02&companyId=${this.companyId}`
|
| | | })
|
| | | }, |
| | | tousu(){ |
| | | uni.navigateTo({ |
| | | url: '/qiye/complaint/complaint' |
| | | }) |
| | | },
|
| | | switchPhone(){
|
| | | uni.navigateTo({
|
| | | url: "/qiye/switchPhone/switchPhone"
|
| | | })
|
| | | }, |
| | | logout(){ |
| | | uni.showModal({ |