修改默认主页三会一课

This commit is contained in:
wans 2020-11-11 18:16:09 +08:00
parent b68237b89c
commit 89bbb0f7ee

View File

@ -93,7 +93,18 @@
<div class="layui-col-md12 layui-col-space10" id="threeMeetLessonTemplateBox"></div> <div class="layui-col-md12 layui-col-space10" id="threeMeetLessonTemplateBox"></div>
<script type="text/html" id="threeMeetLessonTemplate"> <script type="text/html" id="threeMeetLessonTemplate">
{{# for ( var i = 0,item; item = d[i++];){ }} {{# for ( var i = 0,item; item = d[i++];){ }}
{{# if(d.length >= 4){ }}
<div class="layui-col-md3"> <div class="layui-col-md3">
{{# } }}
{{# if(d.length == 3){ }}
<div class="layui-col-md4">
{{# } }}
{{# if(d.length == 2){ }}
<div class="layui-col-md6">
{{# } }}
{{# if(d.length <= 1){ }}
<div class="layui-col-md12">
{{# } }}
<div class="layui-card" style="border-radius: 5px;"> <div class="layui-card" style="border-radius: 5px;">
<div class="layui-card-header"> <div class="layui-card-header">
{{item.categoryName}} {{item.categoryName}}