From b5f084460e9e639358fbf91056a86be8d0a5c4b2 Mon Sep 17 00:00:00 2001
From: yaolonglong <yaolonglong15@163.com>
Date: 星期四, 09 十月 2025 20:18:57 +0800
Subject: [PATCH] 获取验证码功能
---
qiye/my/my.vue | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 104 insertions(+), 16 deletions(-)
diff --git a/qiye/my/my.vue b/qiye/my/my.vue
index 63d3551..8ec3a93 100644
--- a/qiye/my/my.vue
+++ b/qiye/my/my.vue
@@ -17,23 +17,51 @@
</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="wbox">
+ <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 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="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>
+ <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>
<!-- <view class="show-phone-number">
<view class="set-flex">
@@ -50,7 +78,7 @@
</view> -->
- <view class="logout">
+ <view class="logout" @click="logout()">
閫�鍑虹櫥褰�
</view>
<tabsCom :activeNumber.sync="activeNumber"></tabsCom>
@@ -60,7 +88,8 @@
<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
@@ -68,14 +97,73 @@
data() {
return {
activeNumber: 2,
- msg:uni.getStorageSync("qiyedata"),
- src: '/static/policy/header.png'
+ 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'
+ 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`
})
}
}
--
Gitblit v1.9.1