order.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <template>
  2. <view class="page">
  3. <view class="tab-sec">
  4. <view class="tab-wrap align-center justify-around">
  5. <view class="tab" :class="{ active: tabCurrentIndex === idx }" v-for="(item, idx) in tabs" :key="idx">{{ item.name }}</view>
  6. </view>
  7. </view>
  8. <view class="content-sec">
  9. <view class="item-wrap flex-col" v-for="(item, idx) in 3">
  10. <view class="flex-row justify-between group_3">
  11. <text class="text_5">订单号:M1569878</text>
  12. <text class="text_7">进行中</text>
  13. </view>
  14. <pro />
  15. <!-- 进行中
  16. <view class="flex-row justify-end group_8">
  17. <view class="flex-col items-center text-wrapper_1"><text class="text_21">申请退款</text></view>
  18. <view class="flex-col items-center text-wrapper_2"><text class="text_23">确认取货</text></view>
  19. </view>
  20. -->
  21. <!-- 已完成 未评价-->
  22. <view class="flex-row justify-end group_8">
  23. <view class="flex-col items-center text-wrapper_1"><text class="text_21">申请退款</text></view>
  24. <view class="flex-col items-center text-wrapper_2"><text class="text_23">去评价</text></view>
  25. </view>
  26. <!-- 已完成 已评价-->
  27. <!-- 退款成功 -->
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. import pro from './components/pro.vue'
  34. export default {
  35. components:{
  36. pro
  37. },
  38. data() {
  39. return {
  40. tabs: [
  41. { name: '全部', type: -1, loadingType: 'more', list: [], page: 1, loaded: false },
  42. { name: '进行中', type: -1, loadingType: 'more', list: [], page: 1, loaded: false },
  43. { name: '已完成', type: -1, loadingType: 'more', list: [], page: 1, loaded: false },
  44. { name: '已取消', type: -1, loadingType: 'more', list: [], page: 1, loaded: false }
  45. ],
  46. reqData: { type: '' },
  47. pageSize: 20,
  48. tabCurrentIndex: 0
  49. };
  50. }
  51. };
  52. </script>
  53. <style lang="scss">
  54. page {
  55. background-color: #f8f8f8;
  56. }
  57. .tab-sec {
  58. position: relative;
  59. height: 89rpx;
  60. }
  61. .tab-wrap {
  62. position: fixed;
  63. left: 0;
  64. top: calc(var(--window-top));
  65. z-index: 10;
  66. right: 0;
  67. height: 89rpx;
  68. background-color: #f8f8f8;
  69. .tab {
  70. height: 89rpx;
  71. line-height: 89rpx;
  72. font-size: 26rpx;
  73. font-family: PingFang SC;
  74. font-weight: 500;
  75. color: #333333;
  76. &.active {
  77. color: $base-color;
  78. &::after {
  79. content: '';
  80. left: 50%;
  81. transform: translateX(-50%);
  82. bottom: 24rpx;
  83. width: 27rpx;
  84. height: 3rpx;
  85. background: #92b99c;
  86. }
  87. }
  88. }
  89. }
  90. .content-sec {
  91. .item-wrap {
  92. width: 690rpx;
  93. margin: 0 auto 24rpx;
  94. padding-bottom: 24rpx;
  95. background-color: #ffffff;
  96. box-shadow: 0px 6rpx 10rpx #2a2a2a14;
  97. border-radius: 20rpx;
  98. }
  99. .item-wrap:not(:first-of-type) {
  100. margin-top: 24rpx;
  101. }
  102. .group_3 {
  103. padding: 24rpx 20rpx 24rpx 25rpx;
  104. border-bottom: solid 1rpx #0000000f;
  105. }
  106. .text_5 {
  107. margin-top: 9rpx;
  108. color: #333333;
  109. font-size: 30rpx;
  110. font-family: PingFang;
  111. line-height: 28rpx;
  112. }
  113. .text_7 {
  114. margin-bottom: 10rpx;
  115. color: #92b99c;
  116. font-size: 28rpx;
  117. font-family: PingFang;
  118. line-height: 27rpx;
  119. }
  120. .group_8 {
  121. margin-top: 32rpx;
  122. padding: 0 20rpx;
  123. }
  124. .text-wrapper_1 {
  125. margin-right: 23rpx;
  126. padding: 16rpx 0 19rpx;
  127. border-radius: 10rpx;
  128. width: 154rpx;
  129. height: 64rpx;
  130. border: solid 1rpx #92b99c;
  131. }
  132. .text_21 {
  133. color: #92b99c;
  134. font-size: 28rpx;
  135. font-family: PingFang;
  136. }
  137. .text-wrapper_2 {
  138. padding: 16rpx 0 19rpx;
  139. border-radius: 10rpx;
  140. width: 154rpx;
  141. height: 64rpx;
  142. border: solid 1rpx #92b99c;
  143. }
  144. .text_23 {
  145. color: #92b99c;
  146. font-size: 28rpx;
  147. font-family: PingFang;
  148. }
  149. }
  150. </style>