调整登录后页面控制
parent
2e3bf35c82
commit
e83e5ce9f7
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="content my-content">
|
<div class="content">
|
||||||
<!-- 头部 -->
|
<!-- 头部 -->
|
||||||
<div :class="{'header':true,'scroll white':isScrollTop,'white':true}">
|
<div :class="{'header':true,'scroll white':isScrollTop,'white':true}">
|
||||||
<div class="back"></div>
|
<div class="back"></div>
|
||||||
|
|
|
@ -243,7 +243,7 @@
|
||||||
|
|
||||||
// 向TA提问
|
// 向TA提问
|
||||||
toAsk(id) {
|
toAsk(id) {
|
||||||
if (this.consult_amount == 1) {
|
if (this.consult_amount >= 1) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/expert/ask',
|
path: '/expert/ask',
|
||||||
name: 'expert-ask',
|
name: 'expert-ask',
|
||||||
|
|
|
@ -21,7 +21,8 @@
|
||||||
this.timeNumber = 1;
|
this.timeNumber = 1;
|
||||||
}, 2000);
|
}, 2000);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.replace("/index");
|
this.$router.replace("/login");
|
||||||
|
|
||||||
}, 3000);
|
}, 3000);
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
|
@ -84,10 +84,7 @@
|
||||||
computed: {},
|
computed: {},
|
||||||
methods: {
|
methods: {
|
||||||
getUserData() {
|
getUserData() {
|
||||||
let that = this;
|
|
||||||
this.axios.post(this.HOME + "/api/user/center-info").then(function(res) {
|
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);
|
localStorage.centerUserData = JSON.stringify(res.data.data);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -118,7 +115,8 @@
|
||||||
|
|
||||||
// 跳转页面
|
// 跳转页面
|
||||||
goPages(){
|
goPages(){
|
||||||
console.log(this.userType,252525)
|
this.userType = (JSON.parse(localStorage.getItem("centerUserData"))).type;
|
||||||
|
console.log(this.userType,2525)
|
||||||
if(this.userType == 1){
|
if(this.userType == 1){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: "/consultant",
|
path: "/consultant",
|
||||||
|
|
Loading…
Reference in New Issue