咨询师页面

master
tangyi 2022-03-06 16:24:59 +08:00
commit 87263db852
5 changed files with 7 additions and 8 deletions

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

@ -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" @click="$router.go(-1)">

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",