调整登录后页面控制

master
Lee-1203 2022-03-06 15:24:45 +08:00
parent 2e3bf35c82
commit e83e5ce9f7
5 changed files with 680 additions and 771 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
<template>
<div class="content my-content">
<div class="content">
<!-- 头部 -->
<div :class="{'header':true,'scroll white':isScrollTop,'white':true}">
<div class="back"></div>

View File

@ -243,7 +243,7 @@
// TA
toAsk(id) {
if (this.consult_amount == 1) {
if (this.consult_amount >= 1) {
this.$router.push({
path: '/expert/ask',
name: 'expert-ask',

View File

@ -21,7 +21,8 @@
this.timeNumber = 1;
}, 2000);
setTimeout(() => {
this.$router.replace("/index");
this.$router.replace("/login");
}, 3000);
},
created() {

View File

@ -84,10 +84,7 @@
computed: {},
methods: {
getUserData() {
let that = this;
this.axios.post(this.HOME + "/api/user/center-info").then(function(res) {
console.log(res.data.data,1234)
that.userType = res.data.data.type;
localStorage.centerUserData = JSON.stringify(res.data.data);
});
},
@ -118,7 +115,8 @@
//
goPages(){
console.log(this.userType,252525)
this.userType = (JSON.parse(localStorage.getItem("centerUserData"))).type;
console.log(this.userType,2525)
if(this.userType == 1){
this.$router.push({
path: "/consultant",