reportList.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <template>
  2. <view class="report-list-page">
  3. <van-sticky style="background: #fff">
  4. <view class="flex search-wrap">
  5. <searchBox style="flex: 1" :focus="focus" placeholder="请输入报告标题或关键字" :hasRightBtn="false" @change="onChange" @search="onSearch"></searchBox>
  6. <view class="filter-box" @click="showFilter=true">
  7. <image src="./static/filter-icon.png" mode="aspectFill"></image>
  8. <text>筛选</text>
  9. </view>
  10. </view>
  11. </van-sticky>
  12. <view class="report-list-wrap">
  13. <view class="flex item" v-for="item in 10" :key="item">
  14. <image class="img" src="" mode="aspectFill" />
  15. <view class="con">
  16. <view class="title">【第16期|FICC】宏观商品复盘</view>
  17. <view class="tips">摘要:市场风险偏好正面</view>
  18. <view class="time">2021.11.22 18:00</view>
  19. <view class="audio-box grey-audio-box">
  20. <text>播放</text>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <!-- 筛选 -->
  26. <van-popup :show="showFilter" position="bottom" round>
  27. <view class="filter-wrap">
  28. <view class="flex top">
  29. <text style="color:#000">筛选</text>
  30. <text style="color:#E3B377" @click="showFilter=false">取消</text>
  31. </view>
  32. <view class="list-box">
  33. <van-row gutter="10">
  34. <van-col span="8" v-for="item in 17" :key="item">
  35. <view class="item active">item</view>
  36. </van-col>
  37. </van-row>
  38. </view>
  39. <view class="btn">完成</view>
  40. </view>
  41. </van-popup>
  42. </view>
  43. </template>
  44. <script>
  45. import searchBox from "./components/searchBox.vue";
  46. export default {
  47. components: {
  48. searchBox,
  49. },
  50. data() {
  51. return {
  52. searchVal: "",
  53. showFilter:true
  54. };
  55. },
  56. methods: {
  57. onChange(e) {
  58. this.searchVal = e;
  59. },
  60. onSearch() {
  61. console.log("搜索", this.searchVal);
  62. },
  63. },
  64. };
  65. </script>
  66. <style lang="scss" scoped>
  67. .search-wrap {
  68. background-color: #fff;
  69. padding: 30rpx 34rpx;
  70. align-items: center;
  71. .filter-box {
  72. image {
  73. width: 52rpx;
  74. height: 52rpx;
  75. vertical-align: middle;
  76. }
  77. text {
  78. vertical-align: middle;
  79. color: #e3b377;
  80. font-size: 32rpx;
  81. }
  82. }
  83. }
  84. .report-list-wrap {
  85. padding: 0 34rpx;
  86. .item {
  87. margin-bottom: 30rpx;
  88. .img {
  89. width: 120rpx;
  90. height: 160rpx;
  91. border-radius: 16rpx;
  92. background-color: #f5f5f5;
  93. flex-shrink: 0;
  94. margin-right: 20rpx;
  95. }
  96. .con {
  97. flex: 1;
  98. position: relative;
  99. .title {
  100. font-size: 32rpx;
  101. font-weight: bold;
  102. margin-bottom: 8rpx;
  103. }
  104. .tips {
  105. color: #666666;
  106. margin-bottom: 10rpx;
  107. }
  108. .time {
  109. color: #666666;
  110. }
  111. .audio-box {
  112. position: absolute;
  113. bottom: 0;
  114. right: 0;
  115. width: 99rpx;
  116. height: 39rpx;
  117. background: linear-gradient(100deg, #e3b377 0%, #ffddb1 100%);
  118. border-radius: 20rpx;
  119. color: #fff;
  120. font-size: 24rpx;
  121. }
  122. .grey-audio-box {
  123. background: linear-gradient(114deg, #b0b0b0 0%, #e5e2e2 100%);
  124. }
  125. }
  126. }
  127. }
  128. .filter-wrap{
  129. min-height: 30vh;
  130. background-color: #fff;
  131. padding-top: 53rpx;
  132. .top{
  133. font-size: 32rpx;
  134. justify-content: space-between;
  135. margin-bottom: 40rpx;
  136. padding: 0 34rpx;
  137. }
  138. .list-box{
  139. padding: 0 34rpx;
  140. .item{
  141. background-color: #F6F6F6;
  142. color: #000000;
  143. text-align: center;
  144. line-height: 76rpx;
  145. margin-bottom: 20rpx;
  146. }
  147. .active{
  148. background-color: #FAEEDE;
  149. }
  150. }
  151. .btn{
  152. text-align: center;
  153. color: #fff;
  154. font-size: 32rpx;
  155. background-color: #E6B77D;
  156. line-height: 80rpx;
  157. margin-top: 50rpx;
  158. }
  159. }
  160. </style>