blacklist.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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" :scroll-x="true" :style="{'height':'calc(100% - '+navHeight+'rpx)'}">
  5. <view class="blacklist-item" v-for="i in 12">
  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. height: 100vh;
  44. padding: 0 32rpx;
  45. overflow-x: auto;
  46. .blacklist-list{
  47. width: calc(100vw - 64rpx);
  48. }
  49. .blacklist-item{
  50. width: calc(100vw - 64rpx);
  51. display: flex;
  52. justify-content: space-between;
  53. .blacklist-left{
  54. padding: 32rpx 0;
  55. margin-right: 28rpx;
  56. .blacklist-img{
  57. border-radius: 50%;
  58. width: 96rpx;
  59. height: 96rpx;
  60. }
  61. }
  62. .blacklist-right{
  63. padding: 32rpx 0;
  64. width: calc(100% - 124rpx);
  65. border-bottom: 1rpx solid #F2F2F2;
  66. .blacklist-title{
  67. display: flex;
  68. justify-content: space-between;
  69. height: 44rpx;
  70. .title-text{
  71. font-size: 32rpx;
  72. }
  73. .title-icon{
  74. .iconfont{
  75. font-size: 24rpx;
  76. }
  77. }
  78. }
  79. .blacklist-text{
  80. display: flex;
  81. justify-content: space-between;
  82. margin-top: 4rpx;
  83. .text-item{
  84. font-size: 28rpx;
  85. }
  86. }
  87. }
  88. }
  89. }
  90. </style>