Commit 70bf67e2 by sunchao

首页获取课程列表

parent c28e9979
......@@ -39,7 +39,6 @@
components:{
},
onLoad(){
console.log(this.tagIds)
this.courseList();
},
methods:{
......@@ -49,7 +48,6 @@
});
},
courseList(){
debugger;
api.courseList().then(res=>{
console.log(res)
if(res['success']){
......@@ -63,6 +61,9 @@
}
})
}
},
mounted() {
this.courseList();
}
}
</script>
......
......@@ -48,7 +48,7 @@
<h4>精品课程</h4>
<view @click="goToCourselist()">更多<text class="iconfont icon-youjiantou"></text></view>
</view>
<courselist :tagIds="tagIds"></courselist>
<courselist :tagIds="[1111]"></courselist>
</view>
</view>
......@@ -109,7 +109,6 @@
})
},
queryAreaCenterInfo(){
console.log(uni.getStorageInfoSync('cffp_userId'))
api.queryAreaCenterInfo({userId:1}).then((res)=>{
if(res['commonResult']['success']){
this.cffpUserInfo = res;
......
......@@ -10,7 +10,7 @@ export const interceptor = () => {
// 请求拦截器
invoke(args) {
console.log('请求拦截器',args);
// console.log('请求拦截器',args);
// 加载loading
uni.showLoading({
title: '加载中...'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment