课程说明
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<view>
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<z-nav-bar :title="pageTitle"></z-nav-bar>
|
||||
<z-nav-bar :title="pageTitle"><view class="curseSet" slot="right" @click="shuomingPage('/pages/course/illustrate',tagId,pid)">课程说明</view></z-nav-bar>
|
||||
<view class="tabsBox" :class="[fixed ? 'fixed' : '' ]">
|
||||
<u-tabs v-if="tabList.length > 0" :class="['tabList']" @click="fatherClick" :current="curTagId"
|
||||
:activeStyle="activeStyle" :scrollable="scrollable" :list="tabList"
|
||||
@@ -41,8 +41,8 @@
|
||||
|
||||
</view>
|
||||
<view class="tag-view">
|
||||
<uni-tag style="margin-right: 10rpx;" text="高级" type="primary" size="small" />
|
||||
<uni-tag style="margin-right: 10rpx;" text="选修" size="small" type="success" />
|
||||
<uni-tag v-if="item.level != 0" style="margin-right: 10rpx;" :text="item.level == 1 ? '初级':'高级'" type="primary" size="small" />
|
||||
<uni-tag v-if="item.selective != 0" style="margin-right: 10rpx;" :text="item.selective == 1 ? '必修':'选修'" size="small" type="success" />
|
||||
</view>
|
||||
<view class="btn_box">
|
||||
<text>了解课程</text>
|
||||
@@ -79,6 +79,7 @@
|
||||
return {
|
||||
playData: {},
|
||||
tagId: null,
|
||||
pid:null,
|
||||
fixed: false,
|
||||
fatherTabId: null,
|
||||
subTabId: null, //
|
||||
@@ -115,6 +116,7 @@
|
||||
uni.hideTabBar();
|
||||
this.tagId = e.id
|
||||
this.pageTitle = e.title
|
||||
this.pid = e.pid
|
||||
console.log(e, '传入分类id')
|
||||
this.getCateList(this.tagId)
|
||||
},
|
||||
@@ -193,6 +195,10 @@
|
||||
}
|
||||
|
||||
|
||||
}else{
|
||||
this.subList = []
|
||||
this.subTabId = id
|
||||
this.getData(id)
|
||||
}
|
||||
console.log(this.curTagId, '当前高亮')
|
||||
}
|
||||
@@ -278,6 +284,12 @@
|
||||
url: `${url}?id=${id}`
|
||||
});
|
||||
},
|
||||
|
||||
shuomingPage(url,id,pid){
|
||||
uni.navigateTo({
|
||||
url: `${url}?id=${id}&pid=${pid}`
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -289,7 +301,7 @@
|
||||
padding: 0 20rpx;
|
||||
|
||||
}
|
||||
|
||||
.curseSet{margin-right: 20rpx; font-size: 26rpx;}
|
||||
.fixed {
|
||||
position: fixed;
|
||||
z-index: 1; width: 100%; background-color: #fff;
|
||||
|
||||
Reference in New Issue
Block a user