案例二三级隐藏,课程给页面设置高度

This commit is contained in:
nisen
2023-08-09 16:18:53 +08:00
parent c7ecb9327a
commit bc9828ef81
2 changed files with 9 additions and 5 deletions

View File

@@ -38,7 +38,7 @@
</el-checkbox-group> -->
<!-- 二级分类 -->
<div class="field" v-if="twoList.length > 0" style="margin-top: 24px;">
<!-- <div class="field" v-if="twoList.length > 0" style="margin-top: 24px;">
<div style="line-height: 25px;padding-right: 10px;padding-left: 0;">
<span class="item-title">二级分类</span>
<span class="item-line"></span>
@@ -48,9 +48,9 @@
<div :class="item.fielclass ? 'fieldactive' : ''" @click="fieldswich(item, 2)"
v-for="(item, idx) in twoList" :key="'b' + idx">{{ item.name }}</div>
</div>
</div>
</div> -->
<!-- 三级分类 -->
<div class="field" v-if="threeList.length > 0" style="margin-top: 24px;">
<!-- <div class="field" v-if="threeList.length > 0" style="margin-top: 24px;">
<div style="line-height: 25px;padding-right: 10px;padding-left: 0;">
<span class="item-title">三级分类</span>
<span class="item-line"></span>
@@ -60,7 +60,7 @@
<div :class="item.fielclass ? 'fieldactive' : ''" @click="fieldswich(item, 3)"
v-for="(item, idx) in threeList" :key="'c' + idx">{{ item.name }}</div>
</div>
</div>
</div> -->
</div>
</div>
</div>
@@ -573,7 +573,8 @@ export default {
}
console.log(isBack, 'isBack');
// Promise.all([apiType.items("org_domain"), apiCase.majorTypes()]).then(rs => {
Promise.all([apiType.treeList(1,155,1), apiCase.majorTypes()]).then(rs => {
// 90是测试环境155是生产环境
Promise.all([apiType.treeList(1,90,1), apiCase.majorTypes()]).then(rs => {
if (rs[0].code == 200) {
const {records} = rs[0].data
records.forEach(item => {

View File

@@ -1524,6 +1524,9 @@ export default {
</script>
<style scoped lang="scss">
.couser-list-content{
min-height: 110%;
}
// 标题
.navTitle {
margin-bottom: 20px;