Commit c28e9979 by sunchao

pages报错

parent a4e61618
...@@ -27,7 +27,9 @@ ...@@ -27,7 +27,9 @@
<script> <script>
import api from "../../api/api"; import api from "../../api/api";
export default{ export default{
props:['tagIds'],
data(){ data(){
return{ return{
cffpCourseInfos:[] cffpCourseInfos:[]
...@@ -37,7 +39,8 @@ ...@@ -37,7 +39,8 @@
components:{ components:{
}, },
onLoad(){ onLoad(){
this.courseList() console.log(this.tagIds)
this.courseList();
}, },
methods:{ methods:{
goDetail(item){ goDetail(item){
...@@ -46,6 +49,7 @@ ...@@ -46,6 +49,7 @@
}); });
}, },
courseList(){ courseList(){
debugger;
api.courseList().then(res=>{ api.courseList().then(res=>{
console.log(res) console.log(res)
if(res['success']){ if(res['success']){
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }
,{ ,{
"path" : "pages/shareFriend/shareFriend", "path" : "pages/shareFriend/shareFriend",
...@@ -74,45 +73,7 @@ ...@@ -74,45 +73,7 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }
<<<<<<< HEAD
], ],
=======
,{
"path" : "pages/inviteJoin/inviteJoin",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},{
"path" : "pages/invitationRegister/invitationRegister",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},{
"path" : "pages/myCertify/myCertify",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},{
"path" : "pages/certifyDetail/certifyDetail",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
>>>>>>> 3ef1480d0dbd758ecf9ffea4c0641ecf16c57490
"tabBar": { "tabBar": {
"color": "#7A7E83", // tab 上的文字默认颜色 "color": "#7A7E83", // tab 上的文字默认颜色
"selectedColor": "#7A7E83", // tab 上的文字选中时的颜色 "selectedColor": "#7A7E83", // tab 上的文字选中时的颜色
......
...@@ -43,8 +43,12 @@ ...@@ -43,8 +43,12 @@
</view> </view>
</view> </view>
</view> </view>
<view class=""> <view class="course_content">
<courselist></courselist> <view class="tag">
<h4>精品课程</h4>
<view @click="goToCourselist()">更多<text class="iconfont icon-youjiantou"></text></view>
</view>
<courselist :tagIds="tagIds"></courselist>
</view> </view>
</view> </view>
...@@ -85,10 +89,11 @@ ...@@ -85,10 +89,11 @@
interval: 2000, interval: 2000,
duration: 500, duration: 500,
announcementInfo:null, announcementInfo:null,
messageUnreadCount:null messageUnreadCount:null,
tagIds:123
} }
}, },
comments:{ components:{
courselist courselist
}, },
onLoad() { onLoad() {
...@@ -149,6 +154,11 @@ ...@@ -149,6 +154,11 @@
this.messageUnreadCount = null; this.messageUnreadCount = null;
} }
}) })
},
goToCourselist(){
uni.navigateTo({
url:'../../components/courselist/courselist'
})
} }
}, },
onShow() { onShow() {
...@@ -242,6 +252,7 @@ ...@@ -242,6 +252,7 @@
margin-bottom: 20rpx; margin-bottom: 20rpx;
overflow: hidden; overflow: hidden;
background: #fff; background: #fff;
position: relative;
.featureContent{ .featureContent{
padding-top: 10px; padding-top: 10px;
.nav_wrapper{ .nav_wrapper{
...@@ -267,6 +278,29 @@ ...@@ -267,6 +278,29 @@
} }
} }
} }
.course_content{
background: #fff;
position: relative;
.tag{
padding: 20rpx;
display: flex;
justify-content: space-between;
h4{
margin-left: 20rpx;
}
}
.tag:before{
position: absolute;
left: 20rpx;
top: 20rpx;
display: inline-block;
content: '';
width: 2px;
height: 16px;
background-color: #5F83FF;
border-radius: 2px;
}
}
} }
.description{ .description{
padding: 40rpx; padding: 40rpx;
......
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