Commit 70bf67e2 by sunchao

首页获取课程列表

parent c28e9979
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
components:{ components:{
}, },
onLoad(){ onLoad(){
console.log(this.tagIds)
this.courseList(); this.courseList();
}, },
methods:{ methods:{
...@@ -49,7 +48,6 @@ ...@@ -49,7 +48,6 @@
}); });
}, },
courseList(){ courseList(){
debugger;
api.courseList().then(res=>{ api.courseList().then(res=>{
console.log(res) console.log(res)
if(res['success']){ if(res['success']){
...@@ -63,6 +61,9 @@ ...@@ -63,6 +61,9 @@
} }
}) })
} }
},
mounted() {
this.courseList();
} }
} }
</script> </script>
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<h4>精品课程</h4> <h4>精品课程</h4>
<view @click="goToCourselist()">更多<text class="iconfont icon-youjiantou"></text></view> <view @click="goToCourselist()">更多<text class="iconfont icon-youjiantou"></text></view>
</view> </view>
<courselist :tagIds="tagIds"></courselist> <courselist :tagIds="[1111]"></courselist>
</view> </view>
</view> </view>
...@@ -109,7 +109,6 @@ ...@@ -109,7 +109,6 @@
}) })
}, },
queryAreaCenterInfo(){ queryAreaCenterInfo(){
console.log(uni.getStorageInfoSync('cffp_userId'))
api.queryAreaCenterInfo({userId:1}).then((res)=>{ api.queryAreaCenterInfo({userId:1}).then((res)=>{
if(res['commonResult']['success']){ if(res['commonResult']['success']){
this.cffpUserInfo = res; this.cffpUserInfo = res;
......
...@@ -10,7 +10,7 @@ export const interceptor = () => { ...@@ -10,7 +10,7 @@ export const interceptor = () => {
// 请求拦截器 // 请求拦截器
invoke(args) { invoke(args) {
console.log('请求拦截器',args); // console.log('请求拦截器',args);
// 加载loading // 加载loading
uni.showLoading({ uni.showLoading({
title: '加载中...' 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