This commit is contained in:
zhaofang
2022-09-20 20:05:26 +08:00
parent b99f54189d
commit dafa21887b
2 changed files with 13 additions and 4 deletions

View File

@@ -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);
} }
/** /**

View File

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