address-book.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <view class="address-book">
  3. <EnNav title="通讯录" title-color="#333333" :rightShow="true" :rightType="2">
  4. <view slot="right">
  5. <view class="nav-right sys-size-28 sys-weight-600 sys-color-black">
  6. <view>
  7. 距离
  8. </view>
  9. <image class="jl-img" src="@/static/img/msg/jl.png" mode=""></image>
  10. </view>
  11. </view>
  12. </EnNav>
  13. <view class="content">
  14. <view class="list-box">
  15. <image class="item-img sys-radius-round" src="../../../static/img/login/2.jpg" mode=""></image>
  16. <view class="item-right">
  17. <view class="item-right-one sys-size-32 sys-weight-600 sys-color-black">
  18. 古驰古驰古驰古驰古驰古驰...
  19. </view>
  20. <view class="item-right-two">
  21. <view class="sys-size-28 sys-color-gray-9">
  22. 和他配于4月16日
  23. </view>
  24. <view class="sys-size-28 sys-color-gray-9">
  25. 1.01km
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="">
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. import {
  37. messageGetContacts
  38. } from "@/api/message.js"
  39. import EnNav from "@/components/en-utils/en-nav/en-nav";
  40. export default {
  41. components: {
  42. EnNav
  43. },
  44. data() {
  45. return {
  46. listData: [],
  47. page: 1,
  48. };
  49. },
  50. mounted() {
  51. this.messageGetContacts()
  52. },
  53. methods: {
  54. messageGetContacts() {
  55. messageGetContacts({
  56. 'pageNo': this.page,
  57. 'pageSize': '',
  58. }).then((res) => {
  59. console.log(res);
  60. })
  61. },
  62. },
  63. }
  64. </script>
  65. <style scoped lang="scss">
  66. .address-book {
  67. .nav-right {
  68. display: flex;
  69. align-items: center;
  70. .jl-img {
  71. width: 13rpx;
  72. height: 8rpx;
  73. margin: 0 0 0 8rpx;
  74. }
  75. }
  76. .content {
  77. padding: 40rpx 32rpx 0;
  78. box-sizing: border-box;
  79. .list-box {
  80. display: flex;
  81. align-items: center;
  82. margin: 0 0 40rpx 0;
  83. .item-img {
  84. width: 112rpx;
  85. height: 112rpx;
  86. flex-shrink: 0;
  87. margin: 0 20rpx 0 0;
  88. }
  89. .item-right {
  90. width: 100%;
  91. .item-right-one {
  92. margin: 0 0 14rpx 0;
  93. max-width: 400rpx;
  94. white-space: nowrap;
  95. text-overflow: ellipsis;
  96. overflow: hidden;
  97. word-break: break-all;
  98. }
  99. .item-right-two {
  100. display: flex;
  101. align-items: center;
  102. justify-content: space-between;
  103. }
  104. }
  105. }
  106. }
  107. }
  108. </style>