咨询师页面

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

View File

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

View File

@ -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',

View File

@ -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() {

View File

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