From c3b2d6d35b77d11ff86d45926501493b7fc8886e Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期二, 23 七月 2024 10:30:20 +0800 Subject: [PATCH] 新功能添加 --- qiye/my/my.vue | 64 ++++++++++++++++++++++++++++++-- 1 files changed, 60 insertions(+), 4 deletions(-) diff --git a/qiye/my/my.vue b/qiye/my/my.vue index deb344a..814429d 100644 --- a/qiye/my/my.vue +++ b/qiye/my/my.vue @@ -26,6 +26,20 @@ <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"> @@ -33,6 +47,20 @@ <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"> @@ -60,7 +88,7 @@ <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: { @@ -71,7 +99,9 @@ activeNumber: 2, msg: {}, src: '/static/policy/header.png', - userPhone: "" + userPhone: "", + companyId: "", + isShowChange: false } }, onShow() { @@ -81,20 +111,36 @@ 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' }) + }, + jianyi(){ + uni.navigateTo({ + url: '/qiye/proprsalRecord/proprsalRecord' + }) + }, + switchPhone(){ + uni.navigateTo({ + url: "/qiye/switchPhone/switchPhone" + }) }, logout(){ uni.showModal({ @@ -109,6 +155,16 @@ } } }) + }, + goProposal() { + uni.navigateTo({ + url: `/qiye/proposal/proposal` + }) + }, + goProposal1() { + uni.navigateTo({ + url: `/qiye/proposal1/proposal1` + }) } } } -- Gitblit v1.9.1