tdRecord.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <view class="content">
  3. <!-- 筛选弹框 -->
  4. <search-modal v-if="openScreen" :visible="openScreen" :defaultParams="searchForm" @refresh="refresh" @close="openScreen=false"></search-modal>
  5. <view class="page-head">
  6. 筛选
  7. <image class="filter-icon" src="@/static/filter.png" @tap="openScreen=true"></image>
  8. </view>
  9. <view class="list">
  10. <view class="list-box">
  11. <view class="list-time">2020-01-13 15:25:25</view>
  12. <view class="list-cons">
  13. <view class="list-imgs">
  14. <u-image width="80rpx" height="80rpx" src="/static/GLASS.png"></u-image>
  15. <view class="cls-names">废旧纸张</view>
  16. </view>
  17. <view class="list-md">
  18. <view>
  19. <text class="red">254</text> 克
  20. </view>
  21. <view>13709146191</view>
  22. </view>
  23. <view class="list-end">
  24. <text class="red">32</text> 乐豆
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import searchModal from './searchModal.vue'
  33. export default {
  34. components: { searchModal },
  35. data() {
  36. return {
  37. openScreen: false,
  38. searchForm: { // 查询条件
  39. beginDate: '', // 创建时间默认筛选近7天
  40. endDate: '', // 创建时间默认筛选近7天
  41. customerMobile: '' // 手机号
  42. },
  43. pageNo: 1, // 当前页码
  44. pageSize: 10, // 每页条数
  45. total: 0,
  46. listdata: []
  47. }
  48. },
  49. methods: {
  50. // 获取查询参数 刷新列表
  51. refresh(params){
  52. this.searchForm = params
  53. this.listdata = []
  54. this.total = 0
  55. this.searchHandle(1)
  56. },
  57. searchHandle(){
  58. }
  59. }
  60. }
  61. </script>
  62. <style lang="less">
  63. .content{
  64. width: 100%;
  65. padding: 20rpx;
  66. display: flex;
  67. flex-direction: column;
  68. height: 100vh;
  69. .page-head{
  70. padding: 20rpx;
  71. }
  72. .list{
  73. flex-grow: 1;
  74. }
  75. .list-box{
  76. background: #FFFFFF;
  77. border-radius: 10rpx;
  78. padding: 20rpx;
  79. box-shadow: 2rpx 2rpx 6rpx #eee;
  80. margin-bottom: 20rpx;
  81. .list-time{
  82. font-size: 28rpx;
  83. }
  84. .list-cons{
  85. display: flex;
  86. align-items: center;
  87. }
  88. .list-imgs{
  89. padding:20rpx 0 0;
  90. width: 220rpx;
  91. display: flex;
  92. align-items: center;
  93. flex-direction: column;
  94. justify-content: center;
  95. .cls-names{
  96. padding:10rpx 0;
  97. font-size: 28rpx;
  98. }
  99. }
  100. .list-md{
  101. flex-grow: 1;
  102. > view{
  103. padding:6rpx 0;
  104. display: flex;
  105. align-items: center;
  106. font-size: 30rpx;
  107. }
  108. }
  109. .list-end{
  110. padding:20rpx;
  111. font-size: 30rpx;
  112. display: flex;
  113. align-items: center;
  114. .red{
  115. font-size: 50rpx;
  116. color: #ff5500;
  117. }
  118. }
  119. .red{
  120. font-weight: bold;
  121. color: red;
  122. font-size: 40rpx;
  123. margin-right: 8rpx;
  124. }
  125. }
  126. }
  127. </style>