From 244d89b41c0e0e995d38f635a126a0959b9ba25b Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期二, 25 六月 2024 18:16:42 +0800 Subject: [PATCH] 问题处理 --- qiye/my/my.vue | 44 ++++++++++++++++++++++++++++++++++++++------ 1 files changed, 38 insertions(+), 6 deletions(-) diff --git a/qiye/my/my.vue b/qiye/my/my.vue index 63d3551..deb344a 100644 --- a/qiye/my/my.vue +++ b/qiye/my/my.vue @@ -17,10 +17,10 @@ </view> <view class="show-phone-number"> <text class="label">鑱旂郴鐢佃瘽</text> - <text>{{msg.companyPhone}}</text> + <text>{{userPhone||""}}</text> </view> <view class="wbox"> - <view class="item"> + <view class="item" @click="tousu()"> <view class="set-flex"> <image src="/static/qiye/q06.png" mode="widthFix"></image> <text class="change">鎶曡瘔璁板綍</text> @@ -50,7 +50,7 @@ </view> --> - <view class="logout"> + <view class="logout" @click="logout()"> 閫�鍑虹櫥褰� </view> <tabsCom :activeNumber.sync="activeNumber"></tabsCom> @@ -60,7 +60,8 @@ <script> import tabsCom from '@/qiye/components/bottom.vue' - + import { getInfo } from '@/api/auth.js' + import { company } from '@/api/qiye.js' export default { components: { tabsCom @@ -68,15 +69,46 @@ data() { return { activeNumber: 2, - msg:uni.getStorageSync("qiyedata"), - src: '/static/policy/header.png' + msg: {}, + src: '/static/policy/header.png', + userPhone: "" } }, + onShow() { + this.httoInfo() + }, methods: { + httoInfo() { + getInfo().then(val => { + this.userPhone = val.data.data.phonenumber + company(val.data.data.deptId).then(val => { + this.msg = val.data.data + }) + }) + }, goChangePhone() { uni.navigateTo({ url: '/policy/changePhone/changePhone?code=02' }) + }, + tousu(){ + uni.navigateTo({ + url: '/qiye/complaint/complaint' + }) + }, + logout(){ + uni.showModal({ + title: '鎻愮ず', + content: '纭閫�鍑虹櫥褰曪紵', + success: res => { + if(res.confirm) { + uni.clearStorageSync() + uni.redirectTo({ + url: '/pages/index/index' + }) + } + } + }) } } } -- Gitblit v1.9.1