space.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view class="">
  3. <navbar :config="config" backColor="#999999"></navbar>
  4. <zw-search />
  5. <view class="content-box">
  6. <view class="space-item" v-for="item in listArr">
  7. <image class="space-img" src="../index/banner.png" mode="scaleToFill"></image>
  8. <view class="space-info">
  9. <text class="space-title zw-two-row">宜昌产投大数据产业园</text>
  10. <text class="space-name zw-one-row">宜昌产投大数据产业园运营管理有限公司</text>
  11. </view>
  12. </view>
  13. <loadMore v-if="listArr.length > 0" :status="status"></loadMore>
  14. <view class="empty-data" v-show="!listArr || listArr.length === 0">
  15. <EmptyDate />
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. import Mixin from "./Mixin.js"
  22. export default {
  23. mixins: [Mixin],
  24. data() {
  25. return {
  26. topFixedHeight: 100,
  27. config: {
  28. back: true,
  29. title: '我的空间',
  30. color: 'black',
  31. backgroundColor: [1, '#fff'],
  32. statusBarFontColor: 'black'
  33. },
  34. keyword: '',
  35. status: 'noMore', //more|loading|noMore
  36. listArr: [1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7]
  37. }
  38. },
  39. methods: {
  40. searchData() {}
  41. }
  42. }
  43. </script>
  44. <style>
  45. page {
  46. background: #f9f9f9;
  47. }
  48. </style>
  49. <style lang="scss" scoped>
  50. .search-box {
  51. position: fixed;
  52. left: 0;
  53. right: 0;
  54. z-index: 1;
  55. padding: 0 30rpx;
  56. display: flex;
  57. align-items: center;
  58. }
  59. .content-box {
  60. padding: 0 30rpx 30rpx;
  61. .space-item {
  62. width: 100%;
  63. padding: 15rpx 18rpx;
  64. background: #ffffff;
  65. border-radius: 20rpx;
  66. display: flex;
  67. justify-content: space-between;
  68. align-items: stretch;
  69. margin-top: 30rpx;
  70. // &:last-child{
  71. // margin-bottom: 0;
  72. // }
  73. .space-img {
  74. width: 220rpx;
  75. height: 147rpx;
  76. border-radius: 20rpx;
  77. }
  78. .space-info {
  79. width: calc(100% - 220rpx);
  80. padding: 29rpx 0 18rpx 37rpx;
  81. display: flex;
  82. flex-direction: column;
  83. // align-items: center;
  84. justify-content: space-between;
  85. .space-title {
  86. font-size: 30rpx;
  87. font-family: Microsoft YaHei, Microsoft YaHei-Bold;
  88. font-weight: 700;
  89. color: #333333;
  90. line-height: 1.1;
  91. }
  92. .space-name {
  93. font-size: 18rpx;
  94. font-family: Microsoft YaHei, Microsoft YaHei-Regular;
  95. font-weight: 400;
  96. color: #999999;
  97. }
  98. }
  99. }
  100. .empty-data {
  101. padding-top: 80rpx;
  102. }
  103. }
  104. </style>