blacklist.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <view class="blacklist-box">
  3. <en-nav title="黑名单" :title-color="'#333'" @navHeight="setNavHeight"></en-nav>
  4. <scroll-view class="blacklist-list" :scroll-y="true" :style="{'height':'calc(100% - '+navHeight+'rpx)'}">
  5. <view class="blacklist-item" v-for="i in 10">
  6. <view class="blacklist-left">
  7. <image class="blacklist-img" src="/static/img/temporary/4.png" mode="aspectFill"></image>
  8. </view>
  9. <view class="blacklist-right">
  10. <view class="blacklist-title">
  11. <view class="title-text sys-color-black sys-weight-600 sys-height-44">江小明</view>
  12. <view class="title-icon">
  13. <text class="iconfont sys-height-44 sys-color-black">&#xe74b;</text>
  14. </view>
  15. </view>
  16. <view class="blacklist-text">
  17. <view class="text-item sys-color-gray-9">女/24/天瓶座</view>
  18. <view class="text-item sys-color-gray-9">2023/04/24</view>
  19. </view>
  20. </view>
  21. </view>
  22. </scroll-view>
  23. </view>
  24. </template>
  25. <script>
  26. import EnNav from "@/components/en-utils/en-nav/en-nav";
  27. export default {
  28. components: {EnNav},
  29. data() {
  30. return {
  31. navHeight:0,
  32. }
  33. },
  34. methods: {
  35. setNavHeight(navHeight){
  36. this.navHeight=navHeight
  37. },
  38. }
  39. }
  40. </script>
  41. <style scoped lang="scss">
  42. .blacklist-box{
  43. min-height: 100vh;
  44. padding: 0 32rpx;
  45. .blacklist-item{
  46. display: flex;
  47. justify-content: space-between;
  48. .blacklist-left{
  49. padding: 32rpx 0;
  50. margin-right: 28rpx;
  51. .blacklist-img{
  52. border-radius: 50%;
  53. width: 96rpx;
  54. height: 96rpx;
  55. }
  56. }
  57. .blacklist-right{
  58. padding: 32rpx 0;
  59. width: calc(100% - 124rpx);
  60. border-bottom: 1rpx solid #F2F2F2;
  61. .blacklist-title{
  62. display: flex;
  63. justify-content: space-between;
  64. height: 44rpx;
  65. .title-text{
  66. font-size: 32rpx;
  67. }
  68. .title-icon{
  69. .iconfont{
  70. font-size: 24rpx;
  71. }
  72. }
  73. }
  74. .blacklist-text{
  75. display: flex;
  76. justify-content: space-between;
  77. margin-top: 4rpx;
  78. .text-item{
  79. font-size: 28rpx;
  80. }
  81. }
  82. }
  83. }
  84. }
  85. </style>