个人主页关注,跳转到指定tab

This commit is contained in:
zhaofang
2022-10-22 11:40:51 +08:00
parent 5d947a555d
commit 0879df5fe2
7 changed files with 22 additions and 20 deletions

View File

@@ -26,7 +26,7 @@
<svg-icon style="margin-right: 10px;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>隐藏
</div>
<div class="btn-right">
<el-button class="btn" type="primary" @click="jumpDetail(item.info)">继续学习</el-button>
<el-button class="btn" type="primary" @click="jumpDetail(item.info)">{{pageId == userInfo.aid || isFollow? '继续学习' : '我也去学'}}</el-button>
</div>
</div>
</div>
@@ -43,6 +43,7 @@
<script>
import { toScore} from '@/utils/tools.js';
import courseImage from "@/components/Course/courseImage.vue";
import { mapGetters } from 'vuex'
export default{
data(){
return{
@@ -50,6 +51,9 @@
courseList:[]
}
},
computed:{
...mapGetters(['curIdentity','identity','userInfo']),
},
components: {
courseImage,
},
@@ -71,6 +75,9 @@
default:false,
}
},
mounted() {
this.pageId = this.$xpage.getHomeId(this.$route);
},
methods:{
emitHide(id) {
this.$emit('hideIndex',id)