mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
个人主页关注,跳转到指定tab
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user