mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
提交
This commit is contained in:
@@ -27,8 +27,8 @@ const list=function (data){
|
|||||||
/**
|
/**
|
||||||
* 获取用户兴趣关联的id
|
* 获取用户兴趣关联的id
|
||||||
* */
|
* */
|
||||||
const info=function (){
|
const info=function (aid){
|
||||||
return ajax.get(baseURL,'/xboe/subgroup/m/userhobby/info');
|
return ajax.get(baseURL,'/xboe/subgroup/m/userhobby/info?aid='+aid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
import UcHeader from '@/components/HomePage/homePage.vue'
|
import UcHeader from '@/components/HomePage/homePage.vue'
|
||||||
import MedalImg from '@/components/Portal/medalImg.vue';
|
import MedalImg from '@/components/Portal/medalImg.vue';
|
||||||
import apiStat from '@/api/phase2/stat.js';
|
import apiStat from '@/api/phase2/stat.js';
|
||||||
|
import apiUserhobby from '@/api/phase2/userhobby.js';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default{
|
export default{
|
||||||
@@ -63,12 +64,20 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.$route.query.id);
|
|
||||||
this.pageId = this.$route.query.id;
|
this.pageId = this.$route.query.id;
|
||||||
|
|
||||||
this.getMedal();
|
this.getMedal();
|
||||||
|
this.userhobbyInfo();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
userhobbyInfo() {
|
||||||
|
apiUserhobby.info(this.pageId).then(res=>{
|
||||||
|
// if() {
|
||||||
|
apiUserhobby.list(res.result).then(res=>{
|
||||||
|
|
||||||
|
})
|
||||||
|
// }
|
||||||
|
})
|
||||||
|
},
|
||||||
getMedal() {
|
getMedal() {
|
||||||
apiStat.userMedal(this.pageId).then(res=>{
|
apiStat.userMedal(this.pageId).then(res=>{
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
|
|||||||
Reference in New Issue
Block a user