|
@ -8,20 +8,12 @@ |
|
|
<div class="home-container"> |
|
|
<div class="home-container"> |
|
|
<div class="home-hearder"> |
|
|
<div class="home-hearder"> |
|
|
<div style="flex: 1"> |
|
|
<div style="flex: 1"> |
|
|
<span> |
|
|
<el-select v-model="cateId" placeholder="请选择文章分类" @change="catChange" clearable class="auto-screen"> |
|
|
<el-select v-model="cateId" placeholder="请选择文章分类" @change="catChange" clearable> |
|
|
<el-option v-for="item in cats" :key="item.Id" :label="item.Title" :value="item.Id"/> |
|
|
<el-option v-for="item in cats" :key="item.Id" :label="item.Title" :value="item.Id"/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
|
|
|
</span> |
|
|
|
|
|
<!-- <div class="layui-btn-group" style="display: inline-block;margin-top: -5px">--> |
|
|
|
|
|
<!-- <button class="layui-btn layui-btn-sm {{if eq 0 .Flag}}active{{end}}"><a--> |
|
|
|
|
|
<!-- href="/blogs?num=1&flag=0&cat={{.Cat}}">最新</a></button>--> |
|
|
|
|
|
<!-- <button class="layui-btn layui-btn-sm {{if eq 1 .Flag}}active{{end}}"><a--> |
|
|
|
|
|
<!-- href="/blogs?num=1&flag=1&cat={{.Cat}}">最热</a></button>--> |
|
|
|
|
|
<!-- </div>--> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<button type="button" onclick="window.open('/blog/new')" |
|
|
<button type="button" onclick="window.open('/blog/new')" |
|
|
class="layui-btn layui-btn-radius layui-btn-danger layui-btn-sm " style="border-radius: 12px"> |
|
|
class="layui-btn layui-btn-radius layui-btn-danger layui-btn-sm auto-item" style="border-radius: 12px"> |
|
|
写文章 |
|
|
写文章 |
|
|
</button> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
@ -30,7 +22,7 @@ |
|
|
<div class="home-content-title cursor" style="font-size: 14px"> |
|
|
<div class="home-content-title cursor" style="font-size: 14px"> |
|
|
文章标题 |
|
|
文章标题 |
|
|
</div> |
|
|
</div> |
|
|
<div style="display: inline-block;width: 300px"> |
|
|
<div style="display: inline-block;width: 300px" class="auto-item"> |
|
|
<div class="home-content-desc"> |
|
|
<div class="home-content-desc"> |
|
|
<span style="width: 100px;font-size: 14px">类型</span> |
|
|
<span style="width: 100px;font-size: 14px">类型</span> |
|
|
<span style="width: 50px"> 用户</span> |
|
|
<span style="width: 50px"> 用户</span> |
|
@ -47,7 +39,7 @@ |
|
|
<div class="home-content-title cursor"> |
|
|
<div class="home-content-title cursor"> |
|
|
<a href="/blog/{{.Id}}" target="_blank">{{.Title}}</a> |
|
|
<a href="/blog/{{.Id}}" target="_blank">{{.Title}}</a> |
|
|
</div> |
|
|
</div> |
|
|
<div style="display: inline-block;width: 300px"> |
|
|
<div style="display: inline-block;width: 300px" class="auto-item"> |
|
|
<div class="home-content-desc"> |
|
|
<div class="home-content-desc"> |
|
|
<span style="width: 100px;font-size: 12px">{{.CateName}}</span> |
|
|
<span style="width: 100px;font-size: 12px">{{.CateName}}</span> |
|
|
<span style="width: 50px;text-align: center"> |
|
|
<span style="width: 50px;text-align: center"> |
|
|