You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
2.3 KiB

  1. <template>
  2. <view class="app-container">
  3. <u-tabs :list="list" lineColor="#F52F3E" @click="change" lineWidth="160rpx" @change="change"
  4. itemStyle="padding-left: 0; padding-right: 0;width: 50%; height: 90rpx;font-size: 14px"
  5. lineHeight="2"
  6. :activeStyle="{
  7. color: '#F52F3E'
  8. }"
  9. ></u-tabs>
  10. <u-gap height="10rpx" bgColor="#F7F7F7"></u-gap>
  11. <view class="his-content">
  12. <view class="his-item u-border-bottom">
  13. <view class="hit-left">
  14. <view class="his-name">
  15. 李姐烧烤普罗旺斯店
  16. </view>
  17. </view>
  18. <view class="hit-right">
  19. 购买时排队<span class="text-style">10</span> 当前 2
  20. </view>
  21. </view>
  22. <view class="his-item u-border-bottom">
  23. <view class="hit-left">
  24. <view class="his-name">
  25. 李姐烧烤普罗旺斯店
  26. </view>
  27. </view>
  28. <view class="hit-right">
  29. 购买时排队<span class="text-style">10</span> 当前 2
  30. </view>
  31. </view>
  32. <view class="his-item u-border-bottom">
  33. <view class="hit-left">
  34. <view class="his-name">
  35. 李姐烧烤普罗旺斯店
  36. </view>
  37. </view>
  38. <view class="hit-right">
  39. 购买时排队<span class="text-style">10</span> 当前 2
  40. </view>
  41. </view>
  42. <view class="his-item u-border-bottom">
  43. <view class="hit-left">
  44. <view class="his-name">
  45. 李姐烧烤普罗旺斯店
  46. </view>
  47. </view>
  48. <view class="hit-right">
  49. 购买时排队<span class="text-style">10</span> 当前 2
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. </template>
  55. <script>
  56. export default {
  57. data() {
  58. return {
  59. list: [{
  60. name: '按时间排序'
  61. }, {
  62. name: '待最快排序'
  63. }],
  64. current: 0
  65. };
  66. },
  67. methods: {
  68. change(index) {
  69. this.current = Number(index);
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss">
  75. .his-content {
  76. padding: 0 30rpx;
  77. .his-item {
  78. display: flex;
  79. justify-content: space-between;
  80. align-items: center;
  81. border-bottom: 1rpx solid #eee;
  82. .hit-left {
  83. font-size: 24rpx;
  84. color: #454545;
  85. font-weight: bold;
  86. }
  87. .hit-right {
  88. height: 130rpx;
  89. line-height: 130rpx;
  90. font-size: 24rpx;
  91. color: #666;
  92. }
  93. span.text-style{
  94. font-size: 24rpx;
  95. color: #F52F3E;
  96. padding: 0 15rpx;
  97. font-weight: bold;
  98. }
  99. }
  100. .u-border-bottom,
  101. .u-border-top {
  102. border-color: #eee !important;
  103. }
  104. }
  105. </style>