|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<view class="client-my-page">
|
|
<view class="client-my-page">
|
|
<view class="jzgs-name-box">
|
|
<view class="jzgs-name-box">
|
|
- <text>家政公司名称</text>
|
|
|
|
|
|
+ <text>{{myInfoData.jzName}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="admin-head-box">
|
|
<view class="admin-head-box">
|
|
<view class="head-img-box">
|
|
<view class="head-img-box">
|
|
@@ -45,7 +45,7 @@
|
|
import {toast} from "@/utils/common";
|
|
import {toast} from "@/utils/common";
|
|
import {onLoad,onShow} from '@dcloudio/uni-app';
|
|
import {onLoad,onShow} from '@dcloudio/uni-app';
|
|
import cacheManager from '@/utils/cacheManager.js';
|
|
import cacheManager from '@/utils/cacheManager.js';
|
|
- import {getMineUser,getMineLogout,getPasswordUpdate} from '@/api/my.js'
|
|
|
|
|
|
+ import {getGlMineUser,getGlMineLogout,getGlPasswordUpdate} from '@/api/my.js'
|
|
import {reactive,ref} from "vue";
|
|
import {reactive,ref} from "vue";
|
|
import customTabbarClient from "@/components/custom-tabbar/custom-tabbar-admin.vue"
|
|
import customTabbarClient from "@/components/custom-tabbar/custom-tabbar-admin.vue"
|
|
import commonDialog from '@/components/dialog/commonDialog.vue';
|
|
import commonDialog from '@/components/dialog/commonDialog.vue';
|
|
@@ -54,6 +54,7 @@
|
|
import zhuapaiConfrimVue from "@/components/zhuapaiConfirm/index.vue";
|
|
import zhuapaiConfrimVue from "@/components/zhuapaiConfirm/index.vue";
|
|
import {useIsCanBack} from "@/store/isCanBack.js"
|
|
import {useIsCanBack} from "@/store/isCanBack.js"
|
|
let myInfoData = reactive({
|
|
let myInfoData = reactive({
|
|
|
|
+ jzName: '',
|
|
userImg: '',
|
|
userImg: '',
|
|
realName: '',
|
|
realName: '',
|
|
idcard: '',
|
|
idcard: '',
|
|
@@ -83,11 +84,12 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function getUserInfo(){
|
|
function getUserInfo(){
|
|
- getMineUser({}).then(res => {
|
|
|
|
|
|
+ getGlMineUser({}).then(res => {
|
|
myInfoData.userImg= res.data.icon;
|
|
myInfoData.userImg= res.data.icon;
|
|
myInfoData.realName = res.data.realName;
|
|
myInfoData.realName = res.data.realName;
|
|
myInfoData.idcard = res.data.idcard;
|
|
myInfoData.idcard = res.data.idcard;
|
|
myInfoData.userName = res.data.userName;
|
|
myInfoData.userName = res.data.userName;
|
|
|
|
+ myInfoData.jzName = res.data.jzName;
|
|
})
|
|
})
|
|
}
|
|
}
|
|
function exitLogin(){
|
|
function exitLogin(){
|
|
@@ -103,7 +105,7 @@
|
|
passwordOld: data.oldPassWord,
|
|
passwordOld: data.oldPassWord,
|
|
passwordNew: data.newPassWord,
|
|
passwordNew: data.newPassWord,
|
|
}
|
|
}
|
|
- getPasswordUpdate(opt).then(res => {
|
|
|
|
|
|
+ getGlPasswordUpdate(opt).then(res => {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: '更新成功'
|
|
title: '更新成功'
|
|
@@ -113,7 +115,7 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
function exitBtn(){
|
|
function exitBtn(){
|
|
- getMineLogout().then(res => {
|
|
|
|
|
|
+ getGlMineLogout().then(res => {
|
|
toast('退出登录成功')
|
|
toast('退出登录成功')
|
|
cacheManager.clearAll();
|
|
cacheManager.clearAll();
|
|
uni.reLaunch({
|
|
uni.reLaunch({
|