index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <div>
  3. <div class="search-con">
  4. <div class="search-ban">
  5. <div class="search-txt">
  6. <vcenter>
  7. <span>25</span>
  8. <div></div>
  9. </vcenter>
  10. </div>
  11. <div class="search-input">
  12. <div class="input">
  13. <vcenter>
  14. <input placeholder="请输入关键字查找" type="text">
  15. </vcenter>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="search-btn">
  20. <div class="img-con">
  21. <img :src="require('@/assets/images/search.png')" alt="">
  22. </div>
  23. </div>
  24. </div>
  25. <Item :data='items' />
  26. <div class="more">
  27. <div class="result">
  28. <div class="result-btn">查看所有结果</div>
  29. </div>
  30. </div>
  31. <div class="page-con">
  32. <div class="page-body">
  33. <div class="page-title">页码</div>
  34. <div class="paging">
  35. <vcenter>
  36. <Paging @clickHandle="pageChange" :total="total" :equable="pageSize" />
  37. </vcenter>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </template>
  43. <script>
  44. import Item from './item/'
  45. import vcenter from '@/components/vcenter'
  46. import Paging from '@/components/Paging'
  47. const items = [{
  48. title: 'Oin Bar 露天吧台',
  49. img: '',
  50. type: '餐饮',
  51. username: 'VannyShen',
  52. date: '2019年4月13日'
  53. }, {
  54. title: 'Oin Bar 露天吧台',
  55. img: '',
  56. type: '餐饮',
  57. username: 'VannyShen',
  58. date: '2019年4月13日'
  59. }, {
  60. title: 'Oin Bar 露天吧台',
  61. img: '',
  62. type: '餐饮',
  63. username: 'VannyShen',
  64. date: '2019年4月13日'
  65. }, {
  66. title: 'Oin Bar 露天吧台',
  67. img: '',
  68. type: '餐饮',
  69. username: 'VannyShen',
  70. date: '2019年4月13日'
  71. }, {
  72. title: 'Oin Bar 露天吧台',
  73. img: '',
  74. type: '餐饮',
  75. username: 'VannyShen',
  76. date: '2019年4月13日'
  77. }]
  78. export default {
  79. components: {
  80. Item,
  81. vcenter,
  82. Paging
  83. },
  84. data () {
  85. return {
  86. items,
  87. total: 90,
  88. pageSize: 10
  89. }
  90. },
  91. computed: {},
  92. watch: {},
  93. // 方法集合
  94. methods: {
  95. pageChange () {
  96. }
  97. },
  98. created () {
  99. },
  100. mounted () {
  101. }
  102. }
  103. </script>
  104. <style lang="scss" scoped>
  105. @import './style.scss'
  106. </style>