details.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="cleared-details-container">
  3. <!-- 列表数据 -->
  4. <view class="cell-item-con">
  5. <view class="cell-item" v-for="(item, index) in listdata" :key="index">
  6. <view class="cell-item-c">
  7. <u-image class="cell-item-pic" src="/static/logo.jpg" width="140rpx" height="140rpx"></u-image>
  8. <view class="cell-item-info">
  9. <view class="cell-item-info-network">咸阳市秦都区文彩舫东区</view>
  10. <view class="cell-item-info-weight">清运总重量:<text>2568kg</text></view>
  11. </view>
  12. </view>
  13. <u-grid :col="4" :hover-class="none">
  14. <u-grid-item>
  15. <view class="cell-item-main">
  16. <text class="cell-item-number blue">26</text>
  17. <text class="cell-item-unit">个</text>
  18. </view>
  19. <view class="cell-item-exp">废旧衣物</view>
  20. </u-grid-item>
  21. <u-grid-item>
  22. <view class="cell-item-main">
  23. <text class="cell-item-number green">26</text>
  24. <text class="cell-item-unit">个</text>
  25. </view>
  26. <view class="cell-item-exp">废旧纸张</view>
  27. </u-grid-item>
  28. <u-grid-item>
  29. <view class="cell-item-main">
  30. <text class="cell-item-number red">26</text>
  31. <text class="cell-item-unit">kg</text>
  32. </view>
  33. <view class="cell-item-exp">废旧金属</view>
  34. </u-grid-item>
  35. <u-grid-item>
  36. <view class="cell-item-main">
  37. <text class="cell-item-number yellow">26</text>
  38. <text class="cell-item-unit">kg</text>
  39. </view>
  40. <view class="cell-item-exp">废旧玻璃</view>
  41. </u-grid-item>
  42. </u-grid>
  43. </view>
  44. </view>
  45. <u-empty class="nodata" :text="noDataText" v-if="listdata.length==0 && status!='loading'" mode="list"></u-empty>
  46. </view>
  47. </template>
  48. <script>
  49. export default{
  50. data(){
  51. return{
  52. listdata: [{},{}],
  53. noDataText: '暂无数据', // 列表请求状态提示语
  54. status: 'loadmore', // 加载中状态
  55. }
  56. },
  57. methods: {
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .cleared-details-container{
  63. width: 100%;
  64. .cell-item-con{
  65. .cell-item{
  66. margin: $uni-spacing-col-base $uni-spacing-row-base;
  67. background-color: #fff;
  68. border-radius: $uni-border-radius-base;
  69. color: $uni-text-color;
  70. font-size: $uni-font-size-base;
  71. box-shadow: 3rpx 3rpx 5rpx #eee;
  72. .cell-item-c{
  73. display: flex;
  74. align-items: center;
  75. padding: $uni-spacing-col-base $uni-spacing-row-base;
  76. .cell-item-pic{
  77. flex-shrink: 0;
  78. margin-right: 10rpx;
  79. }
  80. .cell-item-info{
  81. flex-grow: 1;
  82. .cell-item-info-network{
  83. word-break: break-all;
  84. margin-bottom: 10rpx;
  85. }
  86. .cell-item-info-weight{
  87. font-size: 26rpx;
  88. text{
  89. font-weight: bold;
  90. }
  91. }
  92. }
  93. }
  94. .cell-item-main{
  95. margin-bottom: 10rpx;
  96. .cell-item-number{
  97. margin-right: 5rpx;
  98. }
  99. .cell-item-unit{
  100. font-size: 26rpx;
  101. }
  102. .blue {
  103. color: #1890FF;
  104. }
  105. .green {
  106. color: #16b50e;
  107. }
  108. .red {
  109. color: red;
  110. }
  111. .yellow {
  112. color: #ff9900;
  113. }
  114. }
  115. }
  116. }
  117. }
  118. </style>