index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <view>
  3. <view class="content">
  4. <u-search placeholder="请输入搜索内容" @click="data" v-model="keyword"></u-search>
  5. </view>
  6. <view class="content-one" v-for="(item,index) in datalist" :key="index">
  7. <view class="content-one-view">
  8. </view>
  9. <view class="content-one-text">单号:20200609135904795 - 20753</view>
  10. <view class="content-one-time">2020-10-28</view>
  11. <view class="content-two">
  12. <view>
  13. 赛轮
  14. </view>
  15. <view>
  16. aaaaaaaaaaabbbbbbbbb
  17. </view>
  18. </view>
  19. <view class="content-two">
  20. <view>
  21. 赛轮
  22. </view>
  23. <view>
  24. aaaaaaaaaaabbbbbbbbb
  25. </view>
  26. </view>
  27. <view class="content-two">
  28. <view>
  29. 赛轮
  30. </view>
  31. <view>
  32. aaaaaaaaaaabbbbbbbbb
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. datalist: [
  43. {},
  44. {}
  45. ],
  46. keyword: ''
  47. }
  48. },
  49. methods: {
  50. data() {
  51. console.log("@@@")
  52. }
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. .content {
  58. margin-top: 30rpx;
  59. }
  60. .content-one {
  61. width: 690rpx;
  62. // height: 338rpx;
  63. background: #FFFFFF;
  64. box-shadow: 0px 0px 24px 0px rgba(101, 176, 249, 0.41);
  65. border-radius: 20px;
  66. margin: 0 auto;
  67. margin-top: 50rpx;
  68. }
  69. .content-one-view {
  70. width: 6rpx;
  71. height: 30rpx;
  72. background: #0292FD;
  73. position: relative;
  74. top: 20rpx;
  75. left: 30rpx;
  76. }
  77. .content-one-text {
  78. position: relative;
  79. top: -8rpx;
  80. left: 60rpx;
  81. font-size: 24rpx;
  82. font-weight: bold;
  83. color: #000;
  84. }
  85. .content-one-time {
  86. position: relative;
  87. top: -40rpx;
  88. left: 530rpx;
  89. font-size: 16rpx;
  90. color: #626262;
  91. }
  92. .content-two {
  93. display: flex;
  94. justify-content: space-between;
  95. width: 600rpx;
  96. margin: 0 auto;
  97. }
  98. .content-two>view:nth-child(2) {
  99. margin-bottom: 30rpx;
  100. }
  101. </style>