index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <template>
  2. <view class="msg-box">
  3. <view class="nav-box">
  4. <view class="nav-left sys-background-F2F2F2 sys-radius-200">
  5. <image class="nav-left-img" src="@/static/img/msg/yl.png" mode=""></image>
  6. <view class="nav-left-name sys-size-28 sys-weight-600 sys-color-black-3">
  7. 有料
  8. </view>
  9. </view>
  10. <view class="nav-text sys-size-36 sys-weight-600 sys-color-black-3">
  11. 消息
  12. </view>
  13. <image class="nav-right" src="@/static/img/msg/tx.png" mode="" @click="goToUrl"></image>
  14. </view>
  15. <view class="msg-content">
  16. <view class="xpy-title sys-size-32 sys-weight-600 sys-color-black">
  17. 新朋友
  18. </view>
  19. <view class="xpy-list">
  20. <view class="xpy-list-left">
  21. <scroll-view class="scroll-view-x" scroll-x="true">
  22. <view class="xpy-list-left-item sys-radius-12" v-for="(item,index) in 4">
  23. </view>
  24. </scroll-view>
  25. </view>
  26. <view class="xpy-list-right sys-background-F2F2F2 sys-radius-12">
  27. <image class="xpy-list-right-img" src="@/static/img/msg/qbpd.png" mode=""></image>
  28. <view class="sys-size-28 sys-color-gray-9">
  29. 全部配对
  30. </view>
  31. </view>
  32. </view>
  33. <view class="xx-box">
  34. <view class="sys-size-32 sys-weight-600 sys-color-black">
  35. 消息
  36. </view>
  37. <image class="xx-box-img" src="@/static/img/msg/sx.png" mode=""></image>
  38. </view>
  39. <view class="msg-list">
  40. <image src="../../static/img/my/bg.png" class="msg-list-img sys-radius-round" mode=""></image>
  41. <view class="msg-list-item">
  42. <view class="msg-list-item-one">
  43. <view class="sys-size-32 sys-weight-600 sys-color-black">
  44. 系统消息
  45. </view>
  46. <view class="sys-size-24 sys-color-gray-9">
  47. 11.50
  48. </view>
  49. </view>
  50. <view class="msg-list-item-two sys-size-28 sys-color-gray-9">
  51. 刚刚左滑掉喜欢你的人,速去查看~
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. import {
  60. messageList
  61. } from "@/api/message.js"
  62. export default {
  63. data() {
  64. return {
  65. page: 1,
  66. }
  67. },
  68. mounted() {
  69. this.messageList()
  70. },
  71. methods: {
  72. messageList() {
  73. messageList({
  74. 'pageNo': this.page,
  75. 'pageSize': '',
  76. }).then((res) => {
  77. console.log(res);
  78. if (res.code === 0) {
  79. console.log("111111");
  80. }
  81. })
  82. },
  83. goToUrl() {
  84. uni.navigateTo({
  85. url: "/pages/msg/model/address-book"
  86. })
  87. },
  88. }
  89. }
  90. </script>
  91. <style scoped lang="scss">
  92. .msg-box {
  93. width: 100%;
  94. height: auto;
  95. .nav-box {
  96. padding: 16rpx 32rpx;
  97. box-sizing: border-box;
  98. display: flex;
  99. align-items: center;
  100. justify-content: space-between;
  101. position: relative;
  102. .nav-left {
  103. display: flex;
  104. align-items: center;
  105. padding: 6rpx 24rpx;
  106. .nav-left-img {
  107. width: 40rpx;
  108. height: 40rpx;
  109. margin: 0 8rpx 0 0;
  110. }
  111. }
  112. .nav-text {
  113. position: absolute;
  114. left: calc((100% - 72rpx) / 2);
  115. top: 22rpx;
  116. }
  117. .nav-right {
  118. width: 52rpx;
  119. height: 52rpx;
  120. }
  121. }
  122. .msg-content {
  123. padding: 40rpx 32rpx;
  124. box-sizing: border-box;
  125. .xpy-title {
  126. margin: 0 0 18rpx 0;
  127. }
  128. .xpy-list {
  129. display: flex;
  130. align-items: center;
  131. margin: 0 0 60rpx 0;
  132. .xpy-list-left {
  133. display: flex;
  134. align-items: center;
  135. max-width: calc(100% - 32rpx);
  136. overflow: hidden;
  137. .scroll-view-x {
  138. white-space: nowrap;
  139. width: 100%;
  140. .xpy-list-left-item {
  141. display: inline-block;
  142. width: 160rpx;
  143. height: 212rpx;
  144. margin: 0 16rpx 0 0;
  145. padding: 0 0 8rpx 8rpx;
  146. background: rgba(0, 0, 0, .3);
  147. }
  148. }
  149. }
  150. .xpy-list-right {
  151. width: 32rpx;
  152. padding: 16rpx 30rpx;
  153. display: flex;
  154. flex-direction: column;
  155. align-items: center;
  156. margin: 0 0 0 12rpx;
  157. flex-shrink: 0;
  158. .xpy-list-right-img {
  159. width: 32rpx;
  160. height: 32rpx;
  161. margin: 0 0 14rpx 0;
  162. }
  163. }
  164. }
  165. .xx-box {
  166. display: flex;
  167. align-items: center;
  168. justify-content: space-between;
  169. margin: 0 0 32rpx 0;
  170. .xx-box-img {
  171. width: 36rpx;
  172. height: 26rpx;
  173. }
  174. }
  175. .msg-list {
  176. display: flex;
  177. align-items: center;
  178. .msg-list-img {
  179. width: 112rpx;
  180. height: 112rpx;
  181. margin: 0 20rpx 0 0;
  182. flex-shrink: 0;
  183. }
  184. .msg-list-item {
  185. width: 100%;
  186. .msg-list-item-one {
  187. display: flex;
  188. align-items: center;
  189. justify-content: space-between;
  190. margin: 0 0 4rpx 0;
  191. }
  192. .msg-list-item-two {}
  193. }
  194. }
  195. }
  196. }
  197. </style>