|
@@ -39,11 +39,11 @@
|
|
|
<text>用户服务协议</text>
|
|
<text>用户服务协议</text>
|
|
|
<icon class="jt-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.jtIcon + ')' }"></icon>
|
|
<icon class="jt-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.jtIcon + ')' }"></icon>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="list-row" @click="showZhuaPaiConfirm">
|
|
|
|
|
|
|
+ <!-- <view class="list-row" @click="showZhuaPaiConfirm">
|
|
|
<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.sxtcsListIcon + ')' }"></icon>
|
|
<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.sxtcsListIcon + ')' }"></icon>
|
|
|
<text>摄像头测试</text>
|
|
<text>摄像头测试</text>
|
|
|
<icon class="jt-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.jtIcon + ')' }"></icon>
|
|
<icon class="jt-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.jtIcon + ')' }"></icon>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view> -->
|
|
|
<view class="list-row" @click="exitLogin">
|
|
<view class="list-row" @click="exitLogin">
|
|
|
<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.loginOutListIcon + ')' }"></icon>
|
|
<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.loginOutListIcon + ')' }"></icon>
|
|
|
<text>退出登录</text>
|
|
<text>退出登录</text>
|
|
@@ -61,12 +61,11 @@
|
|
|
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,getMineInfo,getMineLogout} from '@/api/my.js'
|
|
|
|
|
|
|
+ import {getKehuUser,getKehuLogout} from '@/api/kehu.js'
|
|
|
import {reactive,ref} from "vue";
|
|
import {reactive,ref} from "vue";
|
|
|
import customTabbarClient from "@/components/custom-tabbar/custom-tabbar-client.vue"
|
|
import customTabbarClient from "@/components/custom-tabbar/custom-tabbar-client.vue"
|
|
|
import commonDialog from '@/components/dialog/commonDialog.vue';
|
|
import commonDialog from '@/components/dialog/commonDialog.vue';
|
|
|
import shexiangDialogVue from "@/components/dialog/shexiangDialog.vue";
|
|
import shexiangDialogVue from "@/components/dialog/shexiangDialog.vue";
|
|
|
- // import zhuapaiConfrimVue from "@/components/zhuapaiConfirm/index.vue";
|
|
|
|
|
|
|
|
|
|
let myInfoData = reactive({
|
|
let myInfoData = reactive({
|
|
|
userImg: '',
|
|
userImg: '',
|
|
@@ -101,69 +100,42 @@
|
|
|
const exitTitle = '退出登录';
|
|
const exitTitle = '退出登录';
|
|
|
function getMyInit() {
|
|
function getMyInit() {
|
|
|
getUserInfo();
|
|
getUserInfo();
|
|
|
- getNumInfo();
|
|
|
|
|
}
|
|
}
|
|
|
// 获取用户头像
|
|
// 获取用户头像
|
|
|
function goToPage(data){
|
|
function goToPage(data){
|
|
|
switch (data) {
|
|
switch (data) {
|
|
|
- case 'ks':
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url:'/pages/client/Kaoshi/list?from=my'
|
|
|
|
|
- })
|
|
|
|
|
- break;
|
|
|
|
|
- case 'lx':
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url:'/pages/client/Lianxi/list?from=my'
|
|
|
|
|
- })
|
|
|
|
|
- break;
|
|
|
|
|
- case 'kc':
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url:'/pages/client/Kecheng/list?from=my'
|
|
|
|
|
- })
|
|
|
|
|
- break;
|
|
|
|
|
- case 'cj':
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url:'/pages/client/Chengji/list?from=my'
|
|
|
|
|
- })
|
|
|
|
|
- break;
|
|
|
|
|
case 'grcj':
|
|
case 'grcj':
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url:'/pages/client/my/myInfo?from=my'
|
|
|
|
|
|
|
+ url:'/pages/kehu/my/myInfo?from=my'
|
|
|
})
|
|
})
|
|
|
break;
|
|
break;
|
|
|
case 'zc':
|
|
case 'zc':
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url:'/pages/client/my/zhengce?from=my'
|
|
|
|
|
|
|
+ url:'/pages/kehu/my/zhengce?from=my'
|
|
|
})
|
|
})
|
|
|
break;
|
|
break;
|
|
|
case 'xy':
|
|
case 'xy':
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url:'/pages/client/my/xieyi?from=my'
|
|
|
|
|
|
|
+ url:'/pages/kehu/my/xieyi?from=my'
|
|
|
})
|
|
})
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
function getUserInfo(){
|
|
function getUserInfo(){
|
|
|
- getMineUser({}).then(res => {
|
|
|
|
|
|
|
+ getKehuUser({}).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;
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- function getNumInfo(){
|
|
|
|
|
- getMineInfo({}).then(res => {
|
|
|
|
|
- myInfoData.kaoshiCount = res.data.kaoshiCount;
|
|
|
|
|
- myInfoData.kechengCount = res.data.kechengCount;
|
|
|
|
|
- myInfoData.lianxiCount = res.data.lianxiCount;
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
function exitLogin(){
|
|
function exitLogin(){
|
|
|
commonDialogRef.value.handleShow();
|
|
commonDialogRef.value.handleShow();
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
function exitBtn(){
|
|
function exitBtn(){
|
|
|
- getMineLogout().then(res => {
|
|
|
|
|
|
|
+ getKehuLogout().then(res => {
|
|
|
toast('退出登录成功')
|
|
toast('退出登录成功')
|
|
|
cacheManager.clearAll();
|
|
cacheManager.clearAll();
|
|
|
uni.reLaunch({
|
|
uni.reLaunch({
|
|
@@ -175,13 +147,12 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function showMessageDl() {
|
|
function showMessageDl() {
|
|
|
- console.log(shexiangRef.value)
|
|
|
|
|
shexiangRef.value.handleShow()
|
|
shexiangRef.value.handleShow()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function showZhuaPaiConfirm() {
|
|
function showZhuaPaiConfirm() {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: "/pages/client/my/cameraTest"
|
|
|
|
|
|
|
+ url: "/pages/kehu/my/cameraTest"
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|