|
|
@ -8,20 +8,12 @@ |
|
|
|
<div class="home-container"> |
|
|
|
<div class="home-hearder"> |
|
|
|
<div style="flex: 1"> |
|
|
|
<span> |
|
|
|
<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-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>--> |
|
|
|
<el-select v-model="cateId" placeholder="请选择文章分类" @change="catChange" clearable class="auto-screen"> |
|
|
|
<el-option v-for="item in cats" :key="item.Id" :label="item.Title" :value="item.Id"/> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<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> |
|
|
|
</div> |
|
|
@ -30,7 +22,7 @@ |
|
|
|
<div class="home-content-title cursor" style="font-size: 14px"> |
|
|
|
文章标题 |
|
|
|
</div> |
|
|
|
<div style="display: inline-block;width: 300px"> |
|
|
|
<div style="display: inline-block;width: 300px" class="auto-item"> |
|
|
|
<div class="home-content-desc"> |
|
|
|
<span style="width: 100px;font-size: 14px">类型</span> |
|
|
|
<span style="width: 50px"> 用户</span> |
|
|
@ -47,7 +39,7 @@ |
|
|
|
<div class="home-content-title cursor"> |
|
|
|
<a href="/blog/{{.Id}}" target="_blank">{{.Title}}</a> |
|
|
|
</div> |
|
|
|
<div style="display: inline-block;width: 300px"> |
|
|
|
<div style="display: inline-block;width: 300px" class="auto-item"> |
|
|
|
<div class="home-content-desc"> |
|
|
|
<span style="width: 100px;font-size: 12px">{{.CateName}}</span> |
|
|
|
<span style="width: 50px;text-align: center"> |
|
|
|