|
@@ -14,10 +14,6 @@
|
|
|
<icon class="tel-icon"></icon>
|
|
|
<text class="content-text" >{{myInfoData.userName}}</text>
|
|
|
</view>
|
|
|
- <view class="head-content-row-box" v-if="myInfoData.idcard">
|
|
|
- <icon class="idcard-icon"></icon>
|
|
|
- <text class="content-text" >{{myInfoData.idcard}}</text>
|
|
|
- </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -39,7 +35,7 @@
|
|
|
<customTabbarClient :currentTab="2"></customTabbarClient>
|
|
|
<common-dialog ref="commonDialogRef" :title="exitTitle" :content="exitContent" @confirm-btn="exitBtn"></common-dialog>
|
|
|
<shexiangDialogVue ref="shexiangRef" title="摄像头说明"></shexiangDialogVue>
|
|
|
- <password-dialog ref="passwordDialogRef" :title="修改密码" @confirm-btn="passwordBtn"></password-dialog>
|
|
|
+ <password-dialog ref="passwordDialogRef" @confirm-btn="passwordBtn"></password-dialog>
|
|
|
<!-- 摄像头确认 -->
|
|
|
<zhuapaiConfrimVue ref="zpRef" @error="zpConfirmError" title="摄像头测试"></zhuapaiConfrimVue>
|
|
|
</view>
|
|
@@ -49,7 +45,7 @@
|
|
|
import {toast} from "@/utils/common";
|
|
|
import {onLoad,onShow} from '@dcloudio/uni-app';
|
|
|
import cacheManager from '@/utils/cacheManager.js';
|
|
|
- import {getMineUser,getMineInfo,getMineLogout} from '@/api/my.js'
|
|
|
+ import {getMineUser,getMineLogout,getPasswordUpdate} from '@/api/my.js'
|
|
|
import {reactive,ref} from "vue";
|
|
|
import customTabbarClient from "@/components/custom-tabbar/custom-tabbar-admin.vue"
|
|
|
import commonDialog from '@/components/dialog/commonDialog.vue';
|
|
@@ -62,9 +58,6 @@
|
|
|
realName: '',
|
|
|
idcard: '',
|
|
|
userName: '',
|
|
|
- kaoshiCount: '',
|
|
|
- kechengCount: '',
|
|
|
- lianxiCount: '',
|
|
|
from:''
|
|
|
});
|
|
|
const commonDialogRef = ref(null);
|
|
@@ -75,7 +68,6 @@
|
|
|
const exitTitle = '退出登录';
|
|
|
function getMyInit() {
|
|
|
getUserInfo();
|
|
|
- getNumInfo();
|
|
|
}
|
|
|
// 获取用户头像
|
|
|
function goToPage(data){
|
|
@@ -95,13 +87,6 @@
|
|
|
myInfoData.userName = res.data.userName;
|
|
|
})
|
|
|
}
|
|
|
- function getNumInfo(){
|
|
|
- getMineInfo({}).then(res => {
|
|
|
- myInfoData.kaoshiCount = res.data.kaoshiCount;
|
|
|
- myInfoData.kechengCount = res.data.kechengCount;
|
|
|
- myInfoData.lianxiCount = res.data.lianxiCount;
|
|
|
- })
|
|
|
- }
|
|
|
function exitLogin(){
|
|
|
commonDialogRef.value.handleShow();
|
|
|
|
|
@@ -109,6 +94,21 @@
|
|
|
function xgmmBtn(){
|
|
|
passwordDialogRef.value.handleShow();
|
|
|
}
|
|
|
+ function passwordBtn(data){
|
|
|
+ console.log(data,'data');
|
|
|
+ const opt = {
|
|
|
+ passwordOld: data.oldPassWord,
|
|
|
+ passwordNew: data.newPassWord,
|
|
|
+ }
|
|
|
+ getPasswordUpdate(opt).then(res => {
|
|
|
+ if (res.data) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '更新成功'
|
|
|
+ })
|
|
|
+ passwordDialogRef.value.handleClose();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
function exitBtn(){
|
|
|
getMineLogout().then(res => {
|
|
|
toast('退出登录成功')
|