interactiveCenter.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <view class="interactive-center flex-common-css">
  3. <Nav :titleColor="'#000'" :title="'互动中心'"></Nav>
  4. <scroll-view :scroll-y="true" class="list-scroll" @scroll="scroll" @scrolltolower="scrolltolower">
  5. <view class="info-list-box" v-for="(item,index) in dataList" :key="index">
  6. <view class="info-name">
  7. <view class="info-name-left">
  8. <image class="info-name-left-img sys-radius-round" :src="item.img" mode="">
  9. </image>
  10. <view class="info-name-text">
  11. <view class="sys-size-32 sys-weight-600 sys-color-black">
  12. {{item.name}}
  13. </view>
  14. <view class="sys-size-24 sys-color-gray-9">
  15. 点赞了你的动态
  16. </view>
  17. </view>
  18. </view>
  19. <view class="sys-size-28 sys-weight-600 sys-radius-200" @click="selectLike"
  20. :class="item.likeStyle == 1?'info-name-right sys-color-black':'info-name-right-two sys-color-gray-9'">
  21. {{item.likeStyle == 1?'喜欢Ta':'已喜欢'}}
  22. </view>
  23. </view>
  24. <view class="info-text sys-size-28 sys-color-black">
  25. {{item.text}}
  26. </view>
  27. <view class="info-time">
  28. <view class="info-time-left">
  29. <image class="info-time-left-img sys-radius-4" :src="item.imgTwo" mode=""></image>
  30. <view class="sys-color-gray-9 sys-size-24">
  31. 你发布的动态
  32. </view>
  33. </view>
  34. <view class="info-time-right sys-color-gray-9 sys-size-24">
  35. {{item.time}}
  36. </view>
  37. </view>
  38. </view>
  39. </scroll-view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. components: {},
  45. data() {
  46. return {
  47. dataList: [{
  48. 'img': '/static/img/temporary/1.png',
  49. 'name': 'wwwwww',
  50. 'text': '今天手机好像撞邪了,拦都拦不住硬要给你打招呼~',
  51. 'imgTwo': '/static/img/temporary/1.png',
  52. 'time': '04-13 06:03:56',
  53. 'likeStyle': '1',
  54. }, {
  55. 'img': '/static/img/temporary/1.png',
  56. 'name': 'wwwwww',
  57. 'text': '今天手机好像撞邪了,拦都拦不住硬要给你打招呼~',
  58. 'imgTwo': '/static/img/temporary/1.png',
  59. 'time': '04-13 06:03:56',
  60. 'likeStyle': '1',
  61. }, {
  62. 'img': '/static/img/temporary/1.png',
  63. 'name': 'wwwwww',
  64. 'text': '今天手机好像撞邪了,拦都拦不住硬要给你打招呼~',
  65. 'imgTwo': '/static/img/temporary/1.png',
  66. 'time': '04-13 06:03:56',
  67. 'likeStyle': '2',
  68. }, {
  69. 'img': '/static/img/temporary/1.png',
  70. 'name': 'wwwwww',
  71. 'text': '今天手机好像撞邪了,拦都拦不住硬要给你打招呼~',
  72. 'imgTwo': '/static/img/temporary/1.png',
  73. 'time': '04-13 06:03:56',
  74. 'likeStyle': '2',
  75. }, {
  76. 'img': '/static/img/temporary/1.png',
  77. 'name': 'wwwwww',
  78. 'text': '今天手机好像撞邪了,拦都拦不住硬要给你打招呼~',
  79. 'imgTwo': '/static/img/temporary/1.png',
  80. 'time': '04-13 06:03:56',
  81. 'likeStyle': '2',
  82. }, {
  83. 'img': '/static/img/temporary/1.png',
  84. 'name': 'wwwwww',
  85. 'text': '今天手机好像撞邪了,拦都拦不住硬要给你打招呼~',
  86. 'imgTwo': '/static/img/temporary/1.png',
  87. 'time': '04-13 06:03:56',
  88. 'likeStyle': '2',
  89. }, {
  90. 'img': '/static/img/temporary/1.png',
  91. 'name': 'wwwwww',
  92. 'text': '今天手机好像撞邪了,拦都拦不住硬要给你打招呼~',
  93. 'imgTwo': '/static/img/temporary/1.png',
  94. 'time': '04-13 06:03:56',
  95. 'likeStyle': '2',
  96. }]
  97. };
  98. },
  99. mounted() {},
  100. methods: {
  101. scroll() {},
  102. scrolltolower() {},
  103. selectLike() {},
  104. },
  105. }
  106. </script>
  107. <style lang="scss" scoped>
  108. .interactive-center {
  109. .list-scroll {
  110. width: 100%;
  111. flex: 1;
  112. overflow: auto;
  113. padding: 44rpx 32rpx 0;
  114. box-sizing: border-box;
  115. .info-list-box {
  116. width: 100%;
  117. height: auto;
  118. display: flex;
  119. flex-direction: column;
  120. padding: 0 0 32rpx 0;
  121. border-bottom: 1rpx solid #F2F2F2;
  122. margin: 0 0 32rpx 0;
  123. .info-name {
  124. display: flex;
  125. align-items: center;
  126. justify-content: space-between;
  127. margin: 0 0 34rpx 0;
  128. .info-name-left {
  129. display: flex;
  130. align-items: center;
  131. .info-name-left-img {
  132. width: 80rpx;
  133. height: 80rpx;
  134. margin: 0 20rpx 0 0;
  135. }
  136. .info-name-text {
  137. .user-name {
  138. margin: 0 0 8rpx 0;
  139. }
  140. }
  141. }
  142. .info-name-right {
  143. padding: 6rpx 16rpx;
  144. border: 2rpx solid #141414;
  145. }
  146. .info-name-right-two {
  147. padding: 6rpx 16rpx;
  148. border: 2rpx solid #999;
  149. }
  150. }
  151. .info-text {
  152. margin: 0 0 32rpx 0;
  153. }
  154. .info-time {
  155. display: flex;
  156. align-items: center;
  157. justify-content: space-between;
  158. .info-time-left {
  159. display: flex;
  160. align-items: center;
  161. .info-time-left-img {
  162. width: 48rpx;
  163. height: 48rpx;
  164. margin: 0 12rpx 0 0;
  165. }
  166. }
  167. }
  168. }
  169. }
  170. }
  171. </style>