list.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="1"><i class="el-icon-s-home"></i></el-col>
  5. <el-col :span="23" style="margin-top:0.3rem">
  6. <el-breadcrumb separator=">">
  7. <el-breadcrumb-item :to="{ path: '/' }"><span style="color:#666666">网站首页</span></el-breadcrumb-item>
  8. <el-breadcrumb-item>
  9. <a href="/"><span style="color:#666666">创业案例</span></a>
  10. </el-breadcrumb-item>
  11. <el-breadcrumb-item><span style="color:#999999">文章列表</span></el-breadcrumb-item>
  12. </el-breadcrumb>
  13. </el-col>
  14. </el-row>
  15. <el-row>
  16. <el-col :span="24" style="margin-top: 1rem; width:50%">
  17. <el-input size="mini" placeholder="请输入文章标题" v-model="input3">
  18. <el-button slot="append" icon="el-icon-search"></el-button>
  19. </el-input>
  20. </el-col>
  21. </el-row>
  22. <el-row
  23. style="border-bottom-style:dashed; border-width:1px;border-color:#666666;font-size: small; padding: 0.5rem 0;"
  24. v-for="(item, index) in 10"
  25. :key="index"
  26. >
  27. <el-col style="padding-top: 0.5rem;" :span="21">
  28. <el-link @click="$router.push({ path: '/info/detail', query: { id: 'none' } })">学有所成,扎根农村,做新时代的“现代农民”</el-link>
  29. </el-col>
  30. <el-col :span="3" style="color:#999999; padding-top: 0.7rem;"><span style="padding: 0.5rem 0;">2016-11-25</span></el-col>
  31. </el-row>
  32. <el-row style="margin-top:1rem;">
  33. <el-pagination @current-change="handleCurrentChange" :current-page="currentPage4" :page-size="15" layout="total, prev, pager, next, jumper" :total="100">
  34. </el-pagination>
  35. </el-row>
  36. </div>
  37. </template>
  38. <script>
  39. export default {
  40. methods: {
  41. handleSizeChange(val) {
  42. console.log(`每页 ${val} 条`);
  43. },
  44. handleCurrentChange(val) {
  45. console.log(`当前页: ${val}`);
  46. },
  47. test(val) {
  48. this.$set(this, `activeMenu`, val);
  49. },
  50. },
  51. name: 'index',
  52. props: {},
  53. components: {},
  54. data: () => ({
  55. input3: '',
  56. currentPage4: 1,
  57. activeMenu: '1',
  58. }),
  59. created() {},
  60. computed: {},
  61. };
  62. </script>
  63. <style lang="less" scoped></style>