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